|
From: Eyal L. <ey...@ey...> - 2004-02-07 02:18:29
|
Running latest cvs. Debian 3.0r2, gcc 1.95.3, Linux 2.4.25-pre8 The following failure does not happen always. Actually, in most runs all is fine, but once in a while I get this failure. A program (sched) is execing another (init) which then spawns (fork/exec) another. The failure is always in this last execvp() before the target executable starts. All programs create a new thread as they start and this thread does everything. main() is just waiting on a join(). Is this a known problem? Anything I can try? valgrind: vg_proxylwp.c:972 (proxy_wait): Assertion `*status == proxy->exitcode' failed. ==17532== at 0xB802ACF8: vgPlain_skin_assert_fail (in /data2/usr/local/lib/valgrind/stage2) ==17532== by 0xB802ACF7: assert_fail (vg_mylibc.c:1157) ==17532== by 0xB802AD35: vgPlain_core_assert_fail (vg_mylibc.c:1168) ==17532== by 0xB802DCC3: proxy_wait (vg_proxylwp.c:972) ==17532== by 0xB802DEB1: vgPlain_proxy_delete (vg_proxylwp.c:1067) ==17532== by 0xB800E22C: vgPlain_nuke_all_threads_except (vg_scheduler.c:1451) ==17532== by 0xB803B80E: before_execve (vg_syscalls.c:1847) ==17532== by 0xB80419ED: vgPlain_pre_syscall (vg_syscalls.c:5351) ==17532== by 0xB800D535: sched_do_syscall (vg_scheduler.c:716) ==17532== by 0xB800DC25: vgPlain_scheduler (vg_scheduler.c:1149) ==17532== by 0xB8025DBB: main (vg_main.c:3005) sched status: Thread 2: status = Runnable, associated_mx = 0x0, associated_cv = 0x0 ==17532== at 0x3C917F06: execve (in /lib/libc-2.2.5.so) ==17532== by 0x3C9181F1: execvp (in /lib/libc-2.2.5.so) ==17532== by 0x3C7AE765: ??? (exec.c:294) ==17532== by 0x3C7AE982: skzz15 (exec.c:517) ==17532== by 0x3C7DF434: skspwn (spawn.c:420) ==17532== by 0x804E42C: ssa_main_local (init.c:1422) ==17532== by 0x3C7C28C6: ??? (main.c:860) ==17532== by 0x3C7E42E4: ??? (thread.c:651) ==17532== by 0x3C822D26: thread_wrapper (vg_libpthread.c:745) ==17532== by 0xB800F01F: (within /data2/usr/local/lib/valgrind/stage2) -- Eyal Lebedinsky (ey...@ey...) <http://samba.org/eyal/> |