Hi to all ROOT-ers,
I am running ROOT 5.12 on Fedora Linux, and on Ubuntu and I 've having the G__call_cppfunc for about a week now. The framework in which I obtain it is the following

ROOT ver: 5.12
Operating system: Fedora Linux, Ubuntu Linux
MAchines: P4 3.4 Ghz and P4 Dual core 3.0

Software: I have a biological model that has to simulate an ant colony with many individuals for 10.000 generations in a 3-D environment for reconstructing objects. The number of individuals in the generation can vary from 1 ro 500.000. the problem is that when I run it for a long time with many individuals (>250.000) at one point the program brakes. with the following error:

root [1] .x macros/testCTswithSnakeBorder.C() >file_10000.dat

*** Break *** segmentation violation
Generating stack trace…
0x00002b399e776ff2 in MonitorColony::EvolveColony(int, int) at /home/macco/magic5/ANTS/Queen.h:66 from /home/macco/magic5/lib/libMGAnts.so
0x00002b399e779e03 in MonitorColony::MonitorColony(bool, float, float, int, float, float, float, char*, int, float, MG3DMatrix, int, int*, int*, int, float, TString) at /home/macco/magic5/ANTS/MonitorColony.cc:68 from /home/macco/magic5/lib/libMGAnts.so
0x00002b399e7b863e in from /home/macco/magic5/lib/libMGAnts.so
0x00002b399ac08900 in G__call_cppfunc + 0x220 from /home/macco/root/lib/libCint.so
0x00002b399abe8b1a in G__interpret_func + 0xfda from /home/macco/root/lib/libCint.so
0x00002b399abdd102 in G__getfunction + 0x1c32 from /home/macco/root/lib/libCint.so
0x00002b399abfc032 in G__new_operator + 0x1482 from /home/macco/root/lib/libCint.so
0x00002b399abb7a13 in G__getexpr + 0x58c3 from /home/macco/root/lib/libCint.so
0x00002b399aba6da2 in G__define_var + 0x3302 from /home/macco/root/lib/libCint.so
0x00002b399ac54488 in G__defined_type + 0x1b8 from /home/macco/root/lib/libCint.so
0x00002b399ac1aada in G__exec_statement + 0x1c1a from /home/macco/root/lib/libCint.so
0x00002b399ac1d11a in G__exec_loop + 0x20a from /home/macco/root/lib/libCint.so
0x00002b399ac1d8fc in G__exec_for + 0x18c from /home/macco/root/lib/libCint.so
0x00002b399ac1addd in G__exec_statement + 0x1f1d from /home/macco/root/lib/libCint.so
0x00002b399abe99bc in G__interpret_func + 0x1e7c from /home/macco/root/lib/libCint.so
0x00002b399abdd236 in G__getfunction + 0x1d66 from /home/macco/root/lib/libCint.so
0x00002b399abb0ecf in G__getitem + 0x1af from /home/macco/root/lib/libCint.so
0x00002b399abb8092 in G__getexpr + 0x5f42 from /home/macco/root/lib/libCint.so
0x00002b399abc3228 in G__calc_internal + 0xe8 from /home/macco/root/lib/libCint.so
0x00002b399ac26ef9 in G__process_cmd + 0x4269 from /home/macco/root/lib/libCint.so
0x00002b399a348b96 in TCint::ProcessLine(char const*, TInterpreter::EErrorCode*) + 0x1e6 from /home/macco/root/lib/libCore.so
0x00002b399a2969f3 in TApplication::ProcessFile(char const*, int*) + 0x513 from /home/macco/root/lib/libCore.so
0x00002b399a293a86 in TApplication::ProcessLine(char const*, bool, int*) + 0x536 from /home/macco/root/lib/libCore.so
0x00002b399c226ac7 in TRint::HandleTermInput() + 0x197 from /home/macco/root/lib/libRint.so
0x00002b399c2261a7 in TTermInputHandler::Notify() + 0x17 from /home/macco/root/lib/libRint.so
0x00002b399c227a7d in TTermInputHandler::ReadNotify() + 0xd from /home/macco/root/lib/libRint.so
0x00002b399a3c0483 in TUnixSystem::CheckDescriptors() + 0x123 from /home/macco/root/lib/libCore.so
0x00002b399a3c0a0d in TUnixSystem::DispatchOneEvent(bool) + 0xcd from /home/macco/root/lib/libCore.so 0x00002b399a303296 in TSystem::InnerLoop() + 0x16 from /home/macco/root/lib/libCore.so
0x00002b399a3040ec in TSystem::Run() + 0x6c from /home/macco/root/lib/libCore.so
0x00002b399a292e8f in TApplication::Run(bool) + 0x1f from /home/macco/root/lib/libCore.so
0x00002b399c22778e in TRint::Run(bool) + 0x29e from /home/macco/root/lib/libRint.so
0x0000000000400ffd in main + 0x4d from /home/macco/root/bin/root.exe
0x0000003cf5b1d084 in __libc_start_main + 0xf4 from /lib64/libc.so.6
0x0000000000400f19 in TApplicationImp::ShowMembers(TMemberInspector&, char*) + 0x41 from /home/macco/root/bin/root.exe
Function testCTswithSnakeBorder() busy flag cleared

This happens on two different machines but the opint where it breaks is differnt in one case the point is a simple getter:

while on anothre machine I get the same error but at a differnt point :

where fPhCiteF and fHabitata are vector.
I know that the fHabitat is not NULL and that all the indices do not generate out of bounds errrors.
Also the memory I used is always stable and I do not have memory leaks as the counter of top stays around the same value.

the frustrating things is that it runs okay for a couple of hours and then it breaks, even more if simples images are used that does not imply a huge number of individuals, then the program finishes with problems.
I tried to look for the G__call_cppfunc on the forum but could not find a good explanation for what it actually means.

Can anybody help me or give me an idea of why the error is generated ?

Thank you very much … all replies will be much appreciated and venerated.

Sorin Cheran.

You seem to have a problem in your class
see traceback.
Compile your code in debug mode and proceed as indicated at:

If your code is compiled in debug mode, the gdb traceback will point you
to the faulty line number.