[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to compile glibc with debugging info?
From: |
Jesse Marlin |
Subject: |
How to compile glibc with debugging info? |
Date: |
Fri, 12 Oct 2001 15:17:56 -0400 |
I am experiencing some weird problems with read() and fork() and am
trying to determine where the problem lies. I am currently running
glibc 2.2.2 with kernel 2.4.10 and would like to compile glibc 2.2.4
with debugging turned on. Is there a nice neat way to do that? I have
seen some configure scripts where exporting CFLAGS=-g would do it.
In case anyone has seen this:
I have a program that forks a child, and immediately on the read a
SIGSTOP is sent to the parent. By putting the parent in the foreground
the process continues, but the child gets stuck in a call to read. Here
is stack trace:
(gdb) where
#0 0x4030cf04 in read () from /lib/libc.so.6
#1 0x403d149c in __DTOR_END__ () from /lib/libpthread.so.0
#2 0x402b5cfa in _IO_file_read () from /lib/libc.so.6
#3 0x402b50b1 in _IO_new_file_underflow () from /lib/libc.so.6
#4 0x402b73db in _IO_default_uflow () from /lib/libc.so.6
#5 0x402b6573 in __uflow () from /lib/libc.so.6
#6 0x402ad5c5 in _IO_getline_info () from /lib/libc.so.6
#7 0x402ad623 in _IO_getline () from /lib/libc.so.6
#8 0x402ac673 in fgets () from /lib/libc.so.6
#9 0x804fca4 in read_in_line () at cgdc_compiler.c:1761
#10 0x8050065 in get_a_char () at cgdc_compiler.c:1888
#11 0x80503ad in yylex () at cgdc_compiler.c:2056
#12 0x804abc0 in yyparse () at /usr/local/share/bison.simple:387
#13 0x804e62d in main (argc=3, argv=0xbfffcd44)
#14 0x40262c6f in __libc_start_main () from /lib/libc.so.6
If this is a mailing I am not subscribed to it, so could you email
me directly. Thanks for any help.
--
Jesse Marlin
Intec Telecom Systems
Software Engineer
Main 404-705-2800
Ph 404-705-2912
Fax 404-705-2805
Email address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- How to compile glibc with debugging info?,
Jesse Marlin <=