Segmentation Break

Hi All,
I am running a program in Garfield++. On compilation it shows me error like this

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

#0  0x00007f5c70a2eb4c in __libc_waitpid (pid=4795, stat_loc=stat_loc
entry=0x7fffa0546c40, options=options
entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:31
#1  0x00007f5c709b42e2 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:148
#2  0x00007f5c72fbaec3 in TUnixSystem::StackTrace() () from /home/muzamil/products/root/lib/libCore.so
#3  0x00007f5c72fbcbcc in TUnixSystem::DispatchSignals(ESignals) () from /home/muzamil/products/root/lib/libCore.so
#4  <signal handler called>
#5  0x00007f5c71670419 in TGeoManager::GetElementTable() () from /home/muzamil/products/root/lib/libGeom.so
#6  0x000000000044b9bc in main ()

How to solve it.
Reply will be highly appreciated

Hi,

A crash in TGeoElement::GetElementTable is quite unlikely. Did you make sure that all library you are using (including possibly Garfield++) have been build and linked against the same version of ROOT?

If you did, can you run you failing example under valgrind:valgrind --suppressions=$ROOTSYS/etc/valgrind-root.supp executbale_name [args]

Cheers,
Philippe

You should add the code below to your own code:

TApplication app("app", &argc, argv);
plottingEngine.SetDefaultStyle();

 ------the main body of your code 

app.Run(kTRUE);

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.