Hello Rene,
I’ve attacehed a sample program.
I’m using Borland’s CbuilderX so I don’t have makefile.
(but I guess it is easy to create one)
I’ve checked it on Ms Windows( root: last release) also, same problem.
Linux : Suse 9.2, gcc version 3.3.4, linux 2.6.8-24.11-smp
root CVS HEAD Version 4.03/03 1 March 2005
root-conf: QTDIR=/usr/lib/qt3 linux --build=debug --enable-qt --enable-table
Sincerely,
Tamas
bt output:
/////
tamas@linux:~/cbproject/test2/linux/root_build> gdb test2
GNU gdb 6.2.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type “show copying” to see the conditions.
There is absolutely no warranty for GDB. Type “show warranty” for details.
This GDB was configured as “i586-suse-linux”…Using host libthread_db library “/lib/tls/libthread_db.so.1”.
(gdb) run
Starting program: /home/tamas/cbproject/test2/linux/root_build/test2
[Thread debugging using libthread_db enabled]
[New Thread 1106338944 (LWP 9833)]
Detaching after fork from child process 9837.
Warning in TH1::Build: Replacing existing histogram: some data (Potential memory leak).
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1106338944 (LWP 9833)]
0x41d130c9 in memmove () from /lib/tls/libc.so.6
(gdb) bt
#0 0x41d130c9 in memmove () from /lib/tls/libc.so.6
#1 0x4019822c in TString::Replace (this=0xbfffeb20, pos=-154576836, n1=2, cs=0x0, n2=0)
at TString.cxx:633
#2 0x4019b768 in TString::Remove (this=0xbfffeb20, pos=-154576836, n=2) at TString.h:509
#3 0x42508045 in TH2Editor::DoAddBB (this=0x91e3338) at TH2Editor.cxx:1382
#4 0x42537726 in G__G__Ged_337_4_2 () from /usr/local/root/lib/libGed.so
#5 0x40867a9b in G__CallFunc::Exec (this=0x93038e8, pobject=0x91e3338)
at CallFunc.cxx:388
#6 0x40180488 in TQSlot::ExecuteMethod (this=0x93038c0, object=0x91e3338, param=1)
at TQConnection.cxx:227
#7 0x4017fec7 in TQConnection::ExecuteMethod (this=0x93037e0, param=1)
at TQConnection.cxx:509
#8 0x4018335b in TQObject::Emit (this=0x9219f38,
signal_name=0x416ce758 “Toggled(Bool_t)”, param=1) at TQObject.cxx:779
#9 0x4040da4c in TQObject::Emit () from /usr/local/root/lib/libCore.so
#10 0x414370ba in TGButton::Toggled (this=0x9219f10, on=true) at TGButton.h:125
#11 0x41432e37 in TGCheckButton::EmitSignals (this=0x9219f10) at TGButton.cxx:808
#12 0x41432ff3 in TGCheckButton::HandleButton (this=0x9219f10, event=0xbfffede0)
at TGButton.cxx:856
#13 0x41472f4e in TGFrame::HandleEvent (this=0x9219f10, event=0xbfffede0)
at TGFrame.cxx:455
#14 0x41446c4d in TGClient::HandleEvent (this=0x8c891e0, event=0xbfffede0)
at TGClient.cxx:741
#15 0x4144674c in TGClient::ProcessOneEvent (this=0x8c891e0) at TGClient.cxx:582
#16 0x414468b6 in TGClient::HandleInput (this=0x8c891e0) at TGClient.cxx:629
—Type to continue, or q to quit—
#17 0x41444881 in TGInputHandler::Notify (this=0x8c99f30) at TGClient.cxx:77
#18 0x402a4301 in TUnixSystem::DispatchOneEvent (this=0x8b81c40, pendingOnly=false)
at TUnixSystem.cxx:682
#19 0x401a635a in TSystem::InnerLoop (this=0x8b81c40) at TSystem.cxx:316
#20 0x401a62e8 in TSystem::Run (this=0x8b81c40) at TSystem.cxx:284
#21 0x4012264c in TApplication::Run (this=0xbffff090, retrn=false) at TApplication.cxx:830
#22 0x08049bc9 in main (argc=1, argv=0xbffff164) at test2.cpp:71
(gdb)
test2.cpp (4.16 KB)