kbat
March 27, 2007, 4:11pm
1
Hello,
I’m failed to run $ROOTSYS/tutorials/hist/hstack.C with ROOT 5.15/04 while the same script works fine with ROOT 5.12. I get the following error message:
*** Break *** segmentation violation
Attaching to program: /proc/16253/exe, process 16253
[New Thread 1087305408 (LWP 16253)]
0xffffe002 in ?? ()
Thread 1 (Thread 1087305408 (LWP 16253)):
#0 0xffffe002 in ?? ()
#1 0x40cbd6ef in system () from /lib/tls/libpthread.so.0
#2 0x401c318d in TUnixSystem::Exec(char const*) () from /home/users/batkov/usr/local/root/lib/root/libCore.so
#3 0x401c35a7 in TUnixSystem::StackTrace() () from /home/users/batkov/usr/local/root/lib/root/libCore.so
#4 0x401c16b3 in TUnixSystem::DispatchSignals(ESignals) ()
from /home/users/batkov/usr/local/root/lib/root/libCore.so
#5 0x401bf7bb in SigHandler(ESignals) () from /home/users/batkov/usr/local/root/lib/root/libCore.so
#6 0x401c5dd7 in sighandler(int) () from /home/users/batkov/usr/local/root/lib/root/libCore.so
#7
#8 0x40152ee2 in TString::TString(char const*) () from /home/users/batkov/usr/local/root/lib/root/libCore.so
#9 0x4018cc32 in TList::NewOptLink(TObject*, char const*, TObjLink*) ()
from /home/users/batkov/usr/local/root/lib/root/libCore.so
#10 0x4018c2ac in TList::AddLast(TObject*, char const*) ()
from /home/users/batkov/usr/local/root/lib/root/libCore.so
#11 0x40141dac in TList::Add(TObject*, char const*) ()
from /home/users/batkov/usr/local/root/lib/root/libCore.so
#12 0x401355d8 in TObject::AppendPad(char const*) ()
from /home/users/batkov/usr/local/root/lib/root/libCore.so
#13 0x412ac371 in THStack::Paint(char const*) () from /home/users/batkov/usr/local/root/lib/root/libHist.so
#14 0x41760099 in TPad::PaintModified() () from /home/users/batkov/usr/local/root/lib/root/libGpad.so
#15 0x4175ffc8 in TPad::PaintModified() () from /home/users/batkov/usr/local/root/lib/root/libGpad.so
#16 0x41747f3d in TCanvas::Update() () from /home/users/batkov/usr/local/root/lib/root/libGpad.so
#17 0x4019c0e4 in TCint::UpdateAllCanvases() () from /home/users/batkov/usr/local/root/lib/root/libCore.so
#18 0x40197d30 in TCint::ProcessLine(char const*, TInterpreter::EErrorCode*) ()
from /home/users/batkov/usr/local/root/lib/root/libCore.so
#19 0x40197eb0 in TCint::ProcessLineSynch(char const*, TInterpreter::EErrorCode*) ()
from /home/users/batkov/usr/local/root/lib/root/libCore.so
#20 0x401976f3 in TCint::EndOfLineAction() () from /home/users/batkov/usr/local/root/lib/root/libCore.so
#21 0x40ba5623 in TRint::Run(bool) () from /home/users/batkov/usr/local/root/lib/root/libRint.so
#22 0x08048825 in main ()
#23 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6
#0 0xffffe002 in ?? ()
Root >
I think the problem is in the line hs->Draw()
with empty parameter. Everything works fine if I put “nostack” there.
gcc version 3.2.2
linux RH9
pcanal
March 27, 2007, 4:21pm
2
Hi,
We fixed this problem in CVS a few hours ago
Cheers,
Philippe.
Does that mean that the downloadable versions
(I mean pre-compiled) are corrupted ?
pcanal
March 29, 2007, 10:17am
4
Indeed, with the binary for the development release 5.15/04, you can not draw a THStack.
Philippe
dhertz
April 16, 2007, 12:23am
5
This may be a stupid question, but is the source for 5.15/04 that I download and compile, as linked from the front page free of any problems?
I’m getting some strange features in with my 1D stacked histograms where I have an odd extra feature showing up on my pad when I try to plot stacked histograms since I upgraded to 5.15/04 as shown in the attached plot.
How would I go about downloading a more recent and thus potentially safer version?
couet
April 17, 2007, 1:22pm
6
Can you send a small macro reproducing the problem ?