Creating a TBrowser with root 6.00/00

Hello,

I found a bug concerning the use of the TBrowser class.
Using root 6.00/00 in interactive mode, when doing:

> root -l
root [0] TBrowser s;

if I then close the TBrowser (by clicking on the cross in the upper left corner), root crashes, the first output lines being:

root [1] *** glibc detected *** /AtlasDisk/home/tpelzer/Software/root/root_v6.00.00/bin/root.exe: double free or corruption (out): 0x00002ab255e350b0 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3b0567174f]
/lib64/libc.so.6(cfree+0x4b)[0x3b05675a4b]
[0x2ab250ec3a54]
======= Memory map: ========
00400000-00402000 r-xp 00000000 00:1a 19047311                           /AtlasDisk/home/tpelzer/Software/root/root_v6.00.00/bin/root.exe
00601000-00602000 rw-p 00001000 00:1a 19047311                           /AtlasDisk/home/tpelzer/Software/root/root_v6.00.00/bin/root.exe
1719b000-1961d000 rw-p 1719b000 00:00 0                                  [heap]
3b05200000-3b0521c000 r-xp 00000000 08:07 1441838                        /lib64/ld-2.5.so

However, if I use the new operator:

> root -l
root [0] new TBrowser;

then closing the TBrowser the same way does not causes any crash.

Cheers,
Timothée

I just tried on MacOSX 10.9. And I do not see this problem.
Which platform are you using ?

Hi,

I’m using it on linux, more specifically the 6.00.00-x86_64-slc6-gcc48-opt version available from lxplus:

source /afs/cern.ch/sw/lcg/contrib/gcc/4.8.1/x86_64-slc6-gcc48-opt/setup.sh source /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/6.00.00-x86_64-slc6-gcc48-opt/bin/thisroot.sh

EDIT: The second line can be replaced by the non-ATLAS-specific:

Cheers,
Timothée

Hi,

It’s a problem with the GUI vs deletion of a static; Bertrand is looking into it.

Axel.

Hi,

This has been fixed in git. Thanks for the report, and sorry for the trouble…

Cheers, Bertrand.