This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jan 20 14:20:10 varnish2 varnishd[9955]: Child (10755) Panic message: Assert error in vca_cond_modadd(), cache_waiter_epoll.c line 94: Condition((epoll_ctl(epfd, 3, fd, &sp->ev)) == 0) not true. errno = 2 (No such file or directory) thread = (cache-epoll) Backtrace: 0x421588: pan_ic+88 0x40aaed: vca_main+45d 0x33e0406367: _end+33dfd96f87 0x33dfcd2f7d: _end+33df663b9d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int mprint(char *s) { | |
return ((*s ? mprint((s+1)):0) ? putchar (*s) : 1); | |
} | |
int main() { | |
mprint("reverse my string!"); | |
return putchar('\n'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/varnish-cache/bin/varnishncsa/varnishncsa.c b/varnish-cache/bin/varnishncsa/varnishncsa.c | |
index 4d54d4e..69662b4 100644 | |
--- a/varnish-cache/bin/varnishncsa/varnishncsa.c | |
+++ b/varnish-cache/bin/varnishncsa/varnishncsa.c | |
@@ -553,6 +553,13 @@ main(int argc, char *argv[]) | |
case 'w': | |
w_arg = optarg; | |
break; | |
+ case 'b': | |
+ fprintf(stderr, "-b is not valid for varnishncsa\n"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int sumToN (int n) { | |
if (n == 0) | |
return 0; | |
else | |
return n + sumToN(n-1); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int rs(char *s) | |
{ | |
return (*s ? rs(s+1) : 0) ? putchar (*s) : 1; | |
} | |
int main() | |
{ | |
rs("reverse my string!"); | |
return putchar('\n') != '\n'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Compare an IPv4 backend to a IPv4 addr/len */ | |
static int | |
vdi_dns_comp_addrinfo4(struct backend *bp, | |
const struct sockaddr_in *addr, | |
const socklen_t len) | |
{ | |
uint32_t u, p; | |
struct sockaddr_in *bps = (struct sockaddr_in *) bp->ipv4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
biggs:/home/kristian/Varnish/varnish-cache# varnishd -a :80 -b kit.kristian.int:80 -s malloc,50M -d | |
storage_malloc: max size 50 MB. | |
Using old SHMFILE | |
Varnish on Linux,2.6.26-2-amd64,x86_64,-smalloc,-hcritbit | |
200 193 | |
----------------------------- | |
Varnish HTTP accelerator CLI. | |
----------------------------- | |
Type 'help' for command list. | |
Type 'quit' to close CLI session. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Child (24995) died signal=6 | |
Child (24995) Panic message: Assert error in hcb_cleaner(), hash_critbit.c line 362: | |
Condition((oh->refcnt) == 0) not true. | |
thread = (hcb_cleaner) | |
ident = Linux,2.6.26-2-amd64,x86_64,-smalloc,-hcritbit,epoll | |
Backtrace: | |
0x4247f3: varnishd [0x4247f3] | |
0x431471: varnishd [0x431471] | |
0x7f538bf27fc7: /lib/libpthread.so.0 [0x7f538bf27fc7] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main(){ | |
int x=99,b[x][x]; | |
while(gets(b[--x])); | |
x++; | |
while(x<99) | |
puts(b[x++]); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main(){ | |
int s[9]; | |
if(gets(s)){ | |
main(); | |
puts(s); | |
} | |
} |
OlderNewer