Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-09 Thread Gea-Suan Lin
On Fri, Nov 09, 2007 at 09:23:46AM +0100, Dag-Erling Sm鷨grav wrote: Gea-Suan Lin [EMAIL PROTECTED] writes: okay I use SIGABRT now. If it still not able to generate, I'll try to use gdb generate-core-file command to generate it. One last thing to try: 'sysctl kern.coredump=1', though I

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-09 Thread Gea-Suan Lin
On Fri, Nov 09, 2007 at 09:50:31PM +0100, Dag-Erling Sm鷨grav wrote: Gea-Suan Lin [EMAIL PROTECTED] writes: Core file and execute file is in: http://mail.pixnet.tw/~gslin/tmp/varnishd.core http://mail.pixnet.tw/~gslin/tmp/varnishd That won't help; at the very least, I'd need all the

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Dag-Erling Smørgrav
Gea-Suan Lin [EMAIL PROTECTED] writes: Child said (2, 9802): Assert error in SES_Delete(), cache_session.c line 339: Condition((sp-obj) == 0) not true. errno = 0 (Unknown error: 0) See ticket #162, we're working on it. DES -- Dag-Erling Smørgrav Senior Software Developer Linpro AS -

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Gea-Suan Lin
On Thu, Nov 08, 2007 at 12:19:59PM +0100, Dag-Erling Sm鷨grav wrote: Gea-Suan Lin [EMAIL PROTECTED] writes: Child said (2, 9802): Assert error in SES_Delete(), cache_session.c line 339: Condition((sp-obj) == 0) not true. errno = 0 (Unknown error: 0) See ticket #162, we're working

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Gea-Suan Lin
On Thu, Nov 08, 2007 at 01:57:36PM +0100, Dag-Erling Sm鷨grav wrote: Gea-Suan Lin [EMAIL PROTECTED] writes: On Thu, Nov 08, 2007 at 12:19:59PM +0100, Dag-Erling Sm???rgrav wrote: Gea-Suan Lin [EMAIL PROTECTED] writes: Child said (2, 9802): Assert error in SES_Delete(), cache_session.c

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Gea-Suan Lin
On Thu, Nov 08, 2007 at 05:39:45PM +0100, Dag-Erling Sm鷨grav wrote: Gea-Suan Lin [EMAIL PROTECTED] writes: Is that ok to running 32 varnishd and use HAProxy to redirect to them ? 32 Varnish instances? Sounds like a lot. What kind of site is it? We're trying to serve images since the

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Dag-Erling Smørgrav
Gea-Suan Lin [EMAIL PROTECTED] writes: Is that ok to running 32 varnishd and use HAProxy to redirect to them ? 32 Varnish instances? Sounds like a lot. What kind of site is it? We found they will run out of memory. Hmm, you must be running 1.1; try switching to branches/1.2. It shouldn't

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Gea-Suan Lin
On Thu, Nov 08, 2007 at 05:39:45PM +0100, Dag-Erling Sm鷨grav wrote: Gea-Suan Lin [EMAIL PROTECTED] writes: We found they will run out of memory. Hmm, you must be running 1.1; try switching to branches/1.2. It shouldn't run out of memory. Here's a patch I think should help with the

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Gea-Suan Lin
On Fri, Nov 09, 2007 at 12:32:37AM +0100, Dag-Erling Sm鷨grav wrote: Gea-Suan Lin [EMAIL PROTECTED] writes: I've tried 4 times, but varnishd still not to generate dump file. Are you sure? It should be in the run-time state directory, most likely $PREFIX/var/varnish/$HOSTNAME. The core file

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Dag-Erling Smørgrav
Gea-Suan Lin [EMAIL PROTECTED] writes: I can see signal 3 (QUIT) from dmesg: pid 76061 (varnishd), uid 65534: exited on signal 3 pid 76187 (varnishd), uid 65534: exited on signal 3 but I cannot find coredump. I run the following command in /tmp with mode 1777: Read what I wrote earlier,

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Dag-Erling Smørgrav
Gea-Suan Lin [EMAIL PROTECTED] writes: Program received signal SIGKILL, Killed. Killed by the parent again. [Switching to Thread 0xbb4e200 (LWP 101321)] 0x000800c1716f in brk () from /lib/libc.so.6 (gdb) bt #0 0x000800c1716f in brk () from /lib/libc.so.6 #1 0x0c2f1000 in

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Gea-Suan Lin
On Thu, Nov 08, 2007 at 10:21:22PM +0100, Dag-Erling Sm鷨grav wrote: Gea-Suan Lin [EMAIL PROTECTED] writes: It crash again: Actually, it doesn't crash; the child get stuck somewhere and the parent kills it. I'd like to see an 'svn diff' of your tree. Also, if you change SIGKILL in

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Gea-Suan Lin
On Fri, Nov 09, 2007 at 12:55:57AM +0100, Dag-Erling Sm鷨grav wrote: Gea-Suan Lin [EMAIL PROTECTED] writes: [EMAIL PROTECTED] [~/tmp] (7:47) cat varnishd.sh #!/bin/sh ulimit -c unlimited /home/service/varnish/sbin/varnishd -a 60.199.247.118:80 -f /usr/local/etc/varnish/image.vcl -h

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Dag-Erling Smørgrav
Gea-Suan Lin [EMAIL PROTECTED] writes: [EMAIL PROTECTED] [~/tmp] (7:47) cat varnishd.sh #!/bin/sh ulimit -c unlimited /home/service/varnish/sbin/varnishd -a 60.199.247.118:80 -f /usr/local/etc/varnish/image.vcl -h classic,1048583 -P /var/run/varnishd.pid -s

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Gea-Suan Lin
On Fri, Nov 09, 2007 at 08:02:36AM +0800, Gea-Suan Lin wrote: On Fri, Nov 09, 2007 at 12:55:57AM +0100, Dag-Erling Sm鷨grav wrote: Gea-Suan Lin [EMAIL PROTECTED] writes: [EMAIL PROTECTED] [~/tmp] (7:47) cat varnishd.sh #!/bin/sh ulimit -c unlimited

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Gea-Suan Lin
On Thu, Nov 08, 2007 at 10:37:58PM +0100, Dag-Erling Sm鷨grav wrote: Gea-Suan Lin [EMAIL PROTECTED] writes: [EMAIL PROTECTED] [/tmp] (5:23) svn export ~/svn/varnish/varnish-cache varnish-cache.clean [EMAIL PROTECTED] [/tmp] (5:23) diff -ruN varnish-cache.clean varnish-cache

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Gea-Suan Lin
On Thu, Nov 08, 2007 at 09:16:22PM +0100, Dag-Erling Sm鷨grav wrote: The correct way to apply a patch is with /usr/bin/patch. Yes I do patch using system's patch this time. -- * Gea-Suan Lin (public key: Using https://keyserver.pgp.com/ to search) * If you cannot convince them, confuse them.

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Dag-Erling Smørgrav
Gea-Suan Lin [EMAIL PROTECTED] writes: When I want to try it again, I found it might be my fault :-) http://varnish.projects.linpro.no/attachment/ticket/162/cache_acceptor_kqueue.diff It should be patched to: AZ(kevent(kq, ki, nki, NULL, 0, NULL)); But I patched to:

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Dag-Erling Smørgrav
Gea-Suan Lin [EMAIL PROTECTED] writes: I checkout the latest version in trunk (r2231), apply the patch, and find no object being cached. (telnet to management port and use stats to check) I'm not psychic, you'll have to actually *show me* the stats. DES -- Dag-Erling Smørgrav Senior Software

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Gea-Suan Lin
On Fri, Nov 09, 2007 at 03:44:57AM +0800, Gea-Suan Lin wrote: On Thu, Nov 08, 2007 at 08:40:23PM +0100, Dag-Erling Sm鷨grav wrote: Gea-Suan Lin [EMAIL PROTECTED] writes: I checkout the latest version in trunk (r2231), apply the patch, and find no object being cached. (telnet to management

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Dag-Erling Smørgrav
Gea-Suan Lin [EMAIL PROTECTED] writes: [EMAIL PROTECTED] [/tmp] (5:23) svn export ~/svn/varnish/varnish-cache varnish-cache.clean [EMAIL PROTECTED] [/tmp] (5:23) diff -ruN varnish-cache.clean varnish-cache varnish-cache.diff This is *really* not useful. Please give me a simple 'svn diff',

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Gea-Suan Lin
On Thu, Nov 08, 2007 at 10:21:22PM +0100, Dag-Erling Sm鷨grav wrote: Gea-Suan Lin [EMAIL PROTECTED] writes: It crash again: Actually, it doesn't crash; the child get stuck somewhere and the parent kills it. I'd like to see an 'svn diff' of your tree. Also, if you change SIGKILL in

Re: Varnish crash (SIGABRT) about every 10 mins

2007-11-08 Thread Dag-Erling Smørgrav
Gea-Suan Lin [EMAIL PROTECTED] writes: I've tried 4 times, but varnishd still not to generate dump file. Are you sure? It should be in the run-time state directory, most likely $PREFIX/var/varnish/$HOSTNAME. DES -- Dag-Erling Smørgrav Senior Software Developer Linpro AS - www.linpro.no