Keep Alive piles up

Grzegorz Nosek grzegorz.nosek at gmail.com
Fri Jun 26 22:03:56 MSD 2009


On Fri, Jun 26, 2009 at 01:17:28PM -0400, meto wrote:
> (gdb) bt
> #0  0x000000000045dae4 in ?? ()
> #1  0x0000000000454a00 in ?? ()
> #2  0x000000000049386d in ?? ()
> #3  0x000000000043e7b4 in ?? ()
> #4  0x000000000043d56c in ?? ()
> #5  0x000000000043d4e8 in ?? ()
> #6  0x000000000044a87e in ?? ()
> #7  0x00000000004492b3 in ?? ()
> #8  0x0000000000448ac3 in ?? ()
> #9  0x0000000000447f9e in ?? ()
> #10 0x0000000000427aec in ?? ()
> #11 0x00000000004258a9 in ?? ()
> #12 0x0000000000431caa in ?? ()
> #13 0x000000000042eb31 in ?? ()
> #14 0x0000000000430ac9 in ?? ()
> #15 0x000000000043021a in ?? ()
> #16 0x00000000004054ee in ?? ()
> #17 0x00007f293036a1c4 in __libc_start_main () from /lib/libc.so.6
> #18 0x0000000000404fd9 in ?? ()
> #19 0x00007fff3970f7c8 in ?? ()
> #20 0x0000000000000000 in ?? ()
> 
> 
> Crap. Does that mean that it didn't compile with -G0? :(

Apparently. Go to your source directory, say 'make clean' and rebuild
Nginx from scratch, i.e.:

./configure --with-cc-opt="-g3 -O0" ... (all other options you used)
make

You should notice the compiled binary is much bigger now (for me it's
2,2M with default options and 13,3M with -g3 -O0) and your stack traces
should become meaningful.

BTW, if you're using Polish locales (or anything other than C) you may
wish to say:
export LANG=C
before building Nginx. Otherwise it doesn't detect you're using gcc (gcc
-v doesn't say "gcc version", at least on some Ubuntu versions; 8.10
looks fine, 7.10 or 8.04 IIRC wasn't).

Best regards,
 Grzegorz Nosek





More information about the nginx mailing list