Debugging
I wanted to try to figure out why AOLServer gets so large when generating
pages with a lot of data (when the CVS browser generates a large page the AOLServer binary can grow by 100MB or so -- not a great thing to have happen).
Anyway, I fired up GDB and was trying to figure out what was going
on and had no success at all. I could not even set a breakpoint...
It turns out that on gentoo (and some others, like Mandrake 9), libpthread is stripped which means GDB can't do anything useful when debugging threaded programs.
If you see
/lib/libpthread-0.10.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), strippedor get the error
Program received signal SIG32, Real-time event 32. 0x40163834 in pthread_getconcurrency () from /lib/libpthread.so.0when trying to debug a threaded program, then you will need to get an unstripped version of libpthread, or rebuild it on gentoo with
FEATURES="nostrip" emerge glibc
11:53 AM, 27 Jun 2004 by Jeff Davis Permalink | Comments (0)
Archive
| June 2004 | ||||||
| S | M | T | W | T | F | S |
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | |||
March 2005
February 2005
June 2004
May 2004
April 2004
March 2004
February 2004
December 2003
November 2003
October 2003
September 2003
July 2003
June 2003
April 2003
March 2003
February 2003
January 2003
December 2002
November 2002
October 2002
