|
From: Josef W. <Jos...@gm...> - 2007-06-13 09:03:33
|
On Wednesday 13 June 2007, Christoph Bartoschek wrote: > Hi, > > I have a valgrind run that aborts with the following message: > > Callgrind: threads.c:273 (vgCallgrind_post_signal): Assertion > '*(vgCallgrind_cur > rent_fn_stack.top) == 0' failed. > ==22230== at 0x38018B1A: report_and_quit (m_libcassert.c:136) > ==22230== by 0x38018E7D: vgPlain_assert_fail (m_libcassert.c:200) > ==22230== by 0x38016855: vgCallgrind_post_signal (threads.c:273) > ==22230== by 0x380542FE: vgPlain_sigframe_destroy > (sigframe-amd64-linux.c:615) > ==22230== by 0x38056E29: vgSysWrap_amd64_linux_sys_rt_sigreturn_before > (syswrap-amd64-linux.c:470) > ==22230== by 0x38048AB3: vgPlain_client_syscall (syswrap-main.c:719) > ==22230== by 0x38036F0F: vgPlain_scheduler (scheduler.c:721) > ==22230== by 0x38052799: run_a_thread_NORETURN (syswrap-linux.c:87) > > sched status: > running_tid=1 > > Thread 1: status = VgTs_Runnable > ==22230== at 0x35F3DBD0C5: tcgetattr (in /lib64/tls/libc-2.3.4.so) > ==22230== by 0x35F3DB917B: isatty (in /lib64/tls/libc-2.3.4.so) > > > Is this a known problem? That assertion showed already a few bugs which where fixed in the past. What version are you using? Do you have any idea what signal handler was running in your application? The assertion tells that there is a synchronization error among real stack and callgrinds shadow stack when leaving a signal handler... I think the real problem is that I have no truely robust strategy for synchronizing the 2 stacks at the end of a signal handler (signal handlers can execute in a nested way). Can you send me the last few hundred lines of the debug log of this run when started with --ct-verbose=2 (Warning: huge amounts!) ? Josef > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > |