Re: segmentation violations with 5.30.00

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Wed, 6 Jul 2011 11:23:42 -0500


Hi Thiemo,

Either way, running your example through valgrind should pin-point the issue (which appear to be a read after delete and/or double delete).

Cheers,
Philippe.

On 7/6/11 11:08 AM, Thiemo Nagel wrote:
> Dear ROOTers,
>
> I'm seeing crashes in the COMPASS PHAST software package when using ROOT 5.30.00. Compiling against ROOT 5.28.00e, everything
> works well.
>
> The crash (type A) is mostly reproducible but it seems to happen at random intervals, so far I've seen it after opening and
> closing 1532, 134 and 166 files, respectively.
>
> Sometimes, there's also a crash (type B) upon exit.
>
> What do you think about this? Is it a problem with ROOT? Or is it me, somehow clobbering ROOT's memory?
>
> Cheers,
> Thiemo
>
>
> A)
>
> ===========================================================
> #0 0xb78a3424 in __kernel_vsyscall ()
> #1 0xb4bb7003 in __waitpid_nocancel ()
> at ../sysdeps/unix/syscall-template.S:82
> #2 0xb4b58e63 in do_system (line=<value optimized out>)
> at ../sysdeps/posix/system.c:149
> #3 0xb4c753bd in system (
> line=0x9d9cba0 "/usr/local/root/root_v5.30.00/etc/gdb-backtrace.sh 30449 1>&2") at pt-system.c:29
> #4 0xb55c84ed in TUnixSystem::Exec(char const*) ()
> from /usr/local/root/root_v5.30.00/lib/libCore.so.5.30
> #5 0xb55cf29b in TUnixSystem::StackTrace() ()
> from /usr/local/root/root_v5.30.00/lib/libCore.so.5.30
> #6 0xb55cdadf in TUnixSystem::DispatchSignals(ESignals) ()
> from /usr/local/root/root_v5.30.00/lib/libCore.so.5.30
> #7 0xb55cdbed in ?? () from /usr/local/root/root_v5.30.00/lib/libCore.so.5.30
> #8 0xb55c4f22 in ?? () from /usr/local/root/root_v5.30.00/lib/libCore.so.5.30
> #9 <signal handler called>
> #10 0xb55733f4 in TList::RecursiveRemove(TObject*) ()
> from /usr/local/root/root_v5.30.00/lib/libCore.so.5.30
> #11 0xb5570d79 in THashList::RecursiveRemove(TObject*) ()
> from /usr/local/root/root_v5.30.00/lib/libCore.so.5.30
> #12 0xb54fe351 in TObject::~TObject() ()
> from /usr/local/root/root_v5.30.00/lib/libCore.so.5.30
> #13 0xb64979e1 in TTree::~TTree() ()
> from /usr/local/root/root_v5.30.00/lib/libTree.so.5.30
> #14 0xb556dfb3 in TCollection::GarbageCollect(TObject*) ()
> from /usr/local/root/root_v5.30.00/lib/libCore.so.5.30
> #15 0xb5574e98 in TList::Delete(char const*) ()
> from /usr/local/root/root_v5.30.00/lib/libCore.so.5.30
> #16 0xb5570e5e in THashList::Delete(char const*) ()
> from /usr/local/root/root_v5.30.00/lib/libCore.so.5.30
> #17 0xb5cdb958 in TDirectoryFile::Close(char const*) ()
> from /usr/local/root/root_v5.30.00/lib/libRIO.so.5.30
> #18 0xb5cf34bf in TFile::Close(char const*) ()
> from /usr/local/root/root_v5.30.00/lib/libRIO.so.5.30
> #19 0x0805a2fb in main ()
> ===========================================================
>
>
> B)
>
> ===========================================================
> #10 0xb544cfb0 in TCollection::GarbageCollect(TObject*) ()
> from /usr/local/root/root_v5.30.00/lib/libCore.so.5.30
> #11 0xb5453e30 in TList::Delete(char const*) ()
> from /usr/local/root/root_v5.30.00/lib/libCore.so.5.30
> #12 0xb53faafc in TROOT::~TROOT() ()
> from /usr/local/root/root_v5.30.00/lib/libCore.so.5.30
> #13 0xb4a2f688 in __cxa_finalize (d=0xb59820e0) at cxa_finalize.c:56
> #14 0xb53a5644 in ?? () from /usr/local/root/root_v5.30.00/lib/libCore.so.5.30
> #15 0xb583e580 in _fini ()
> from /usr/local/root/root_v5.30.00/lib/libCore.so.5.30
> #16 0xb7791226 in _dl_fini () at dl-fini.c:248
> #17 0xb4a2f2bf in __run_exit_handlers (status=0, listp=0xb4b42304,
> run_list_atexit=true) at exit.c:78
> #18 0xb4a2f32f in *__GI_exit (status=0) at exit.c:100
> #19 0xb4a16c7e in __libc_start_main (main=0x8054270 <main>, argc=2007,
> ubp_av=0xbfd8b2e4, init=0x8066870 <__libc_csu_init>,
> fini=0x8066860 <__libc_csu_fini>, rtld_fini=0xb7791040 <_dl_fini>,
> stack_end=0xbfd8b2dc) at libc-start.c:260
> #20 0x08051f21 in _start ()
> ===========================================================
>
Received on Wed Jul 06 2011 - 18:23:52 CEST

This archive was generated by hypermail 2.2.0 : Wed Jul 06 2011 - 23:50:03 CEST