Floating point exception in TLegend

Dear Root Experts,

Bellow is the stack trace of a crash. The plotting macro I am using is rather complex and AliRoot dependent - unfortunately I couldn’t make a pure Root version which reproduces a crash :’(

Still perhaps somebody has an idea what’s wrong just by inspecting the stack trace bellow?

Thanks and cheers,
Ante

P.S. ROOT 5.27/06b (tags/v5-27-06b@36516, Nov 07 2010, 14:54:49 on linuxx8664gcc)

[color=#FF0000] *** Break *** floating point exception

===========================================================
There was a crash.
This is the entire stack trace of all threads:

#0 0x00000030e6c99fc5 in waitpid () from /lib64/libc.so.6
#1 0x00000030e6c3c331 in do_system () from /lib64/libc.so.6
#2 0x00002ac22a5fcd89 in TUnixSystem::StackTrace() ()
from /data/alice2/ab/trunk/root/lib/libCore.so
#3 0x00002ac22a5fa97a in TUnixSystem::DispatchSignals(ESignals) ()
from /data/alice2/ab/trunk/root/lib/libCore.so
#4
#5 0x00002ac22c45ae44 in TLegend::PaintPrimitives() ()
from /data/alice2/ab/trunk/root/lib/libGraf.so
#6 0x00002ac22cb1100f in TPad::PaintModified() ()
from /data/alice2/ab/trunk/root/lib/libGpad.so
#7 0x00002ac22cb10f80 in TPad::PaintModified() ()
from /data/alice2/ab/trunk/root/lib/libGpad.so
#8 0x00002ac22caf5005 in TCanvas::Update() ()
from /data/alice2/ab/trunk/root/lib/libGpad.so
#9 0x00002ac22a5bae9f in TCint::UpdateAllCanvases() ()
from /data/alice2/ab/trunk/root/lib/libCore.so
#10 0x00002ac22a5bbcd5 in TCint::ProcessLine(char const*, TInterpreter::EErrorCo
de*) () from /data/alice2/ab/trunk/root/lib/libCore.so
#11 0x00002ac22a5bbbc3 in TCint::ProcessLineSynch(char const*, TInterpreter::EEr
rorCode*) () from /data/alice2/ab/trunk/root/lib/libCore.so
#12 0x00002ac22d1ca773 in TRint::HandleTermInput() ()
from /data/alice2/ab/trunk/root/lib/libRint.so
#13 0x00002ac22d1c8ea7 in TTermInputHandler::Notify() ()
from /data/alice2/ab/trunk/root/lib/libRint.so
#14 0x00002ac22d1cafcd in TTermInputHandler::ReadNotify() ()
from /data/alice2/ab/trunk/root/lib/libRint.so
#15 0x00002ac22a5f9cf3 in TUnixSystem::CheckDescriptors() ()
from /data/alice2/ab/trunk/root/lib/libCore.so
#16 0x00002ac22a5fa39c in TUnixSystem::DispatchOneEvent(bool) ()
from /data/alice2/ab/trunk/root/lib/libCore.so
#17 0x00002ac22a579986 in TSystem::InnerLoop() ()
from /data/alice2/ab/trunk/root/lib/libCore.so
#18 0x00002ac22a57c2f1 in TSystem::Run() ()
from /data/alice2/ab/trunk/root/lib/libCore.so
#19 0x00002ac22a5203ef in TApplication::Run(bool) ()
from /data/alice2/ab/trunk/root/lib/libCore.so
#20 0x00002ac22d1cabd0 in TRint::Run(bool) ()
from /data/alice2/ab/trunk/root/lib/libRint.so
#21 0x0000000000401a91 in main (argc=1, argv=0x7fffd9040ba8)
at ALIROOT/aliroot.cxx:98

The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.

#5 0x00002ac22c45ae44 in TLegend::PaintPrimitives() ()
from /data/alice2/ab/trunk/root/lib/libGraf.so
#6 0x00002ac22cb1100f in TPad::PaintModified() ()
from /data/alice2/ab/trunk/root/lib/libGpad.so
#7 0x00002ac22cb10f80 in TPad::PaintModified() ()
from /data/alice2/ab/trunk/root/lib/libGpad.so
#8 0x00002ac22caf5005 in TCanvas::Update() ()
from /data/alice2/ab/trunk/root/lib/libGpad.so
#9 0x00002ac22a5bae9f in TCint::UpdateAllCanvases() ()
from /data/alice2/ab/trunk/root/lib/libCore.so
===========================================================[/color]

run your code under valgrind. It is likely that your TLegend object references invalid objects like histograms, functions.

Rene