GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Symbol G__exception is not defined in current scope
Symbol G__exception is not defined in current scope [message #7386] Wed, 08 October 2008 18:26 Go to next message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: *gsi.de
Hi to everybody,


during running my analysis macro( writeMicro.C at macro/fsim) and aftre 15000 ev(i have 50000)
the run breaks
with this error message,
Does anybody knows what it 's going wrong?

alicia.

Error: Symbol G__exception is not defined in current scope writeMicro.C:107:
Error: type G__exception not defined FILE:/d/panda02/asanchez/fairsoft_jul08/pandaroot/trunk/macro/fsim/./wri teMicro.C LINE:107
*** Interpreter error recovered ***
root [1] .q

*** Break *** segmentation violation
Using host libthread_db library "/lib/libthread_db.so.1".
Attaching to program: /proc/22289/exe, process 22289
Failed to read a valid object file image from memory.
done.
done.
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 22289)]
done.
done.
done.
done.
done.
done.
done.
done.
done.
0x40ca9788 in waitpid () from /lib/libc.so.6
#1 0x40d318c0 in __DTOR_END__ () from /lib/libc.so.6
#2 0x40c42442 in do_system () from /lib/libc.so.6
#3 0x40bbcc5f in system () from /lib/libpthread.so.0
#4 0x401fa79f in TUnixSystem::Exec () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libCore.so.5.18
#5 0x401fac63 in TUnixSystem::StackTrace () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libCore.so.5.18
#6 0x401f85cc in TUnixSystem::DispatchSignals () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libCore.so.5.18
#7 0x401f63a8 in SigHandler () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libCore.so.5.18
#8 0x401fdefe in sighandler () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libCore.so.5.18
#9 0x40bbb825 in __pthread_sighandler () from /lib/libpthread.so.0
#10 <signal handler called>
#11 0x40c794eb in memset () from /lib/libc.so.6
#12 0x40206feb in deflateInit2_ () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libCore.so.5.18
#13 0x40206e25 in deflateInit_ () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libCore.so.5.18
#14 0x40202fb0 in R__zip () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libCore.so.5.18
#15 0x40e029c5 in TKey::TKey () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libRIO.so
#16 0x40defbb8 in TFile::WriteStreamerInfo () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libRIO.so
#17 0x40dea4de in TFile::Close () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libRIO.so
#18 0x40de8894 in TFile::~TFile () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libRIO.so
#19 0x401b48ac in TCollection::GarbageCollect () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libCore.so.5.18
#20 0x401b8e98 in TList::Delete () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libCore.so.5.18
#21 0x401fa87c in TUnixSystem::Exit () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libCore.so.5.18
#22 0x40b4910b in TRint::Terminate () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libRint.so.5.18
#23 0x40120202 in TApplication::ProcessLine () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libCore.so.5.18
#24 0x40b48e4d in TRint::HandleTermInput () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libRint.so.5.18
#25 0x40b471a7 in TTermInputHandler::Notify () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libRint.so.5.18
#26 0x40b49e04 in TTermInputHandler::ReadNotify () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libRint.so.5.18
#27 0x401f89d5 in TUnixSystem::CheckDescriptors () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libCore.so.5.18
#28 0x401f7c7d in TUnixSystem::DispatchOneEvent () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libCore.so.5.18
#29 0x40180fa0 in TSystem::InnerLoop () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libCore.so.5.18
#30 0x40180d61 in TSystem::Run () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libCore.so.5.18
#31 0x40121567 in TApplication::Run () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libCore.so.5.18
#32 0x40b486d9 in TRint::Run () from /misc/cbmsoft/Sarge32/mar08/fairsoft/tools/root/lib/libRint.so.5.18
#33 0x08048e2e in main ()
Root >
Re: Symbol G__exception is not defined in current scope [message #7387 is a reply to message #7386] Thu, 09 October 2008 09:16 Go to previous messageGo to next message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
Hi,

Can you tell me how to reproduce this! are your files available on the GSI cluster?

Mohammad

[Updated on: Thu, 09 October 2008 09:24]

Report message to a moderator

Re: Symbol G__exception is not defined in current scope [message #7424 is a reply to message #7387] Thu, 16 October 2008 17:17 Go to previous messageGo to next message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: *kph.uni-mainz.de
Hi Mohammad, have you been already able to solve
the problem concerning the memory leak?

Sorry for bothering you, but

i have to apply several analysis methods
and i need to be able to read my reco files.

thanks in advance

Alicia.
Re: Symbol G__exception is not defined in current scope [message #7460 is a reply to message #7424] Wed, 22 October 2008 22:00 Go to previous messageGo to next message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *dip.t-dialin.net
Hi,

Although the problem is solved, I think it worth documenting it! the Finish() method in CbmTask is called at the end of the task and not for each event, in the PndMicroWriter task, the TClonesArray->Delete() is called in Finish(), which led to the memory leak because the Tracks where never deleted!

Mohammad


Re: Symbol G__exception is not defined in current scope [message #7461 is a reply to message #7460] Thu, 23 October 2008 11:54 Go to previous messageGo to next message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: *gsi.de
Hi Mohammad,
thanks again for your help.
So now what are your advices?
Should i call anyway the Finish()
method at the end of the Exec in every task?

I know that for the Track objects is specially
dangerous, not to delete the TObjectArray at the end of the event.

Therefore i#m using the call ofFinish() at the end of the exec
for every Task where i read a track object.

best regards
and i owe you a cake Surprised
Alicia.
Re: Symbol G__exception is not defined in current scope [message #7565 is a reply to message #7386] Wed, 26 November 2008 10:24 Go to previous messageGo to next message
Vishwajeet Jha is currently offline  Vishwajeet Jha
Messages: 9
Registered: August 2008
occasional visitor
From: *ikp.kfa-juelich.de
Can you please explain the solution ,

I face the similar problem when running ../macro/fsim/runReco.C for more than 2000 events

>Error: Symbol G__exception is not defined in current scope runReco.C:180:
>Error: type G__exception not defined FILE:../pandaroot/macro/fsim/./runReco.C LINE:180
>*** Interpreter error recovered ***

Regards,
Vishwajeet Jha
Re: Symbol G__exception is not defined in current scope [message #7566 is a reply to message #7565] Wed, 26 November 2008 13:04 Go to previous message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: *gsi.de
Hi try to add
fTrackArray->Delete()
at the of the Exec method
of the PndMicroWriter.Task

and at /genfit directory
if you go to the class Track.cxx
at the line 26
add the line
delete trackReps

Track::~Track() {
22 if(trackReps!=NULL){
23 for(int i=0;i<getNumReps();i++) {
24 delete trackReps->At(i);
25 }
26 delete trackReps; }
27 for(unsigned int i=0;i<hits.size();i++) {
28 delete hits[i];
29 }
30 }

compile everything again
and try to run thr runReco.C.

I hope it works
best regards
alicia.
Previous Topic: New PandaRoot release is out: nov08
Next Topic: Limits on nEvents in CbmRunAna missing
Goto Forum:
  


Current Time: Tue Apr 30 06:20:49 CEST 2024

Total time taken to generate the page: 0.00962 seconds