From: Jeremy F. <je...@go...> - 2003-04-02 19:22:31
|
On Wed, 2003-04-02 at 10:28, David Eriksson wrote: > Strace stops in poll, and if I attach to the server process with gdb I > get this stacktrace: > > (gdb) bt > #0 0x40183272 in vgPlain_do_syscall () from > /usr/local/lib/valgrind/valgrind.so > #1 0x4023c4d0 in __JCR_LIST__ () from /usr/lib/libglib-1.2.so.0 > #2 0x40170c97 in poll (__fds=0x4223bf3c, __nfds=0x2, __timeout=0xea60) > at vg_intercept.c:194 > #3 0x4022a3cb in g_main_poll () from /usr/lib/libglib-1.2.so.0 > #4 0x40229c95 in g_main_iterate () from /usr/lib/libglib-1.2.so.0 > #5 0x4022a0f4 in g_main_run () from /usr/lib/libglib-1.2.so.0 > #6 0x0804c671 in main (argc=0x0, argv=0xbfffe8e4) at smaccd.c:616 > #7 0x403d3907 in __libc_start_main () from /lib/libc.so.6 Hm, looks like the vg_intercept stuff isn't working - it's catching poll, but it isn't passing it into the threads library properly. What does ldd <your program> say? What is in /proc/<pid>/maps when you run it? What does the link command line look like? Did you manage to get a small standalone program to reproduce the problem? J |