Here is the output, but wouldn’t it be better to simply download the newest
cvs version of root?
Starting program: /Users/rabbitus/ROOT/root/bin/root.exe -b -l
Reading symbols for shared libraries warning: Trying to remove a section from the ordered section list that did not exist at 0x0.
+++++++++.... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
root [0] .L macroMyClassA.C
root [1] Init()
Reading symbols for shared libraries bfd_mach_o_scan_read_symtab_symbol: unable to read 12 bytes at 417104
. done
Program received signal EXC_BAD_INSTRUCTION, Illegal instruction/operand.
0x002bff20 in ZN8MyClassAC1Ev.eh ()
(gdb) Test()
Undefined command: "Test". Try "help".
(gdb) where
#0 0x002bff20 in ZN8MyClassAC1Ev.eh ()
#1 0x00277f8c in ROOT::GenerateInitInstance(MyClassA const*) ()
#2 0x002bdc68 in dyld_stub_wmemcpy ()
#3 0x002bdcf4 in dyld_stub_wmemcpy ()
#4 0x8fe17b38 in __dyld_call_module_initializers_for_objects ()
#5 0x8fe17600 in __dyld_call_module_initializers ()
#6 0x8fe118ac in __dyld_link_in_need_modules ()
#7 0x8fe134e4 in __dyld__dyld_link_module ()
#8 0x9003f5a8 in NSLinkModule ()
#9 0x900f86ec in loadModule ()
#10 0x900f8a74 in dlopen ()
#11 0x011066a4 in G__dlopen (path=0x12d27c6 "/Users/rabbitus/ROOT/rootcode/MyClassA/./libMyClassA.so") at cint/src/shl.c:239
#12 0x0110725c in G__shl_load (shlfile=0x12d27c6 "/Users/rabbitus/ROOT/rootcode/MyClassA/./libMyClassA.so") at cint/src/shl.c:912
#13 0x0108d810 in G__loadfile (filenamein=0x16134d0 "/Users/rabbitus/ROOT/rootcode/MyClassA/./libMyClassA.so") at cint/src/loadfile.c:2307
#14 0x03607c40 in TCint::Load(char const*, bool) (this=0x609ea0, filename=0x16134d0 "/Users/rabbitus/ROOT/rootcode/MyClassA/./libMyClassA.so", system=false) at meta/src/TCint.cxx:269
#15 0x035b4670 in TSystem::Load(char const*, char const*, bool) (this=0x6047f0, module=0x900040c "libMyClassA.so", entry=0x3aa7b68 "", system=false) at base/src/TSystem.cxx:1426
#16 0x03675600 in TUnixSystem::Load(char const*, char const*, bool) (this=0x6047f0, module=0x900040c "libMyClassA.so", entry=0x3aa7b68 "", system=false) at unix/src/TUnixSystem.cxx:2165
#17 0x0383a168 in G__G__Base2_258_1_10(G__value*, char const*, G__param*, int) () at /usr/include/gcc/darwin/3.3/c++/bits/basic_string.h:1123
#18 0x01095c98 in G__call_cppfunc (result7=0xbffdfa60, libp=0xbffe02b0, ifunc=0xa55fe00, ifn=1) at cint/src/newlink.c:576
#19 0x010791e0 in G__interpret_func (result7=0xbffdfa60, funcname=0xbffdfa80 "Load", libp=0xbffe02b0, hash=384, p_ifunc=0xa55fe00, funcmatch=1, memfunc_flag=1) at cint/src/ifunc.c:6946
#20 0x0104b9f4 in G__getfunction (item=0xbffe4349 "Load(\"libMyClassA.so\")", known3=0xbffe4c80, memfunc_flag=1) at cint/src/func.c:3367
#21 0x0114f314 in G__getstructmem (store_var_type=112, varname=0xbffe35e0 "", membername=0xbffe4349 "Load(\"libMyClassA.so\")", tagname=0xbffe4340 "gSystem", known2=0xbffe4c80, varglobal=0x12496b4, objptr=2) at cint/src/var.c:5170
#22 0x01140b90 in G__getvariable (item=0xbffe5f30 "gSystem->Load(\"libMyClassA.so\")", known2=0xbffe4c80, varglobal=0x12496b4, varlocal=0xbffe6d30) at cint/src/var.c:3722
#23 0x01039660 in G__getitem (item=0xbffe5f30 "gSystem->Load(\"libMyClassA.so\")") at cint/src/expr.c:2381
#24 0x01036e18 in G__getexpr (expression=0xbffe6750 "gSystem->Load(\"libMyClassA.so\")") at cint/src/expr.c:1713
#25 0x010be35c in G__exec_function (statement=0xbffe6750 "gSystem->Load(\"libMyClassA.so\")", pc=0xbffe6b50, piout=0xbffe6b5c, plargestep=0xbffe6b6c, presult=0xbffe6730) at cint/src/parse.c:548
#26 0x010cbcd4 in G__exec_statement () at cint/src/parse.c:4925
#27 0x0107c110 in G__interpret_func (result7=0xbfff0130, funcname=0xbfff0150 "Init", libp=0xbfff0980, hash=404, p_ifunc=0xa530c00, funcmatch=1, memfunc_flag=0) at cint/src/ifunc.c:7963
#28 0x0104c680 in G__getfunction (item=0xbfff4e60 "Init()", known3=0xbfff3bb0, memfunc_flag=0) at cint/src/func.c:3687
#29 0x01039694 in G__getitem (item=0xbfff4e60 "Init()") at cint/src/expr.c:2385
#30 0x01036e18 in G__getexpr (expression=0xbfff5680 "Init()") at cint/src/expr.c:1713
#31 0x010be35c in G__exec_function (statement=0xbfff5680 "Init()", pc=0xbfff5a80, piout=0xbfff5a8c, plargestep=0xbfff5a9c, presult=0xbfff5660) at cint/src/parse.c:548
#32 0x010cbcd4 in G__exec_statement () at cint/src/parse.c:4925
#33 0x0100f2f8 in G__exec_tempfile_core (file=0x0, fp=0xa538e0c) at cint/src/debug.c:390
#34 0x0100f65c in G__exec_tempfile_fp (fp=0xa538e0c) at cint/src/debug.c:476
#35 0x010d8b94 in G__process_cmd (line=0x161337c "Init()", prompt=0x609ec4 "", more=0x609ebc, err=0xbfffea70, rslt=0xbfffea50) at cint/src/pause.c:4252
#36 0x03607e10 in TCint::ProcessLine(char const*, TInterpreter::EErrorCode*) (this=0x609ea0, line=0x161337c "Init()", error=0x0) at meta/src/TCint.cxx:310
#37 0x0352ce68 in TApplication::ProcessLine(char const*, bool, int*) (this=0x6868f0, line=0x161337c "Init()", sync=false, err=0x0) at base/src/TApplication.cxx:701
#38 0x0038b938 in TRint::HandleTermInput() (this=0x6868f0) at rint/src/TRint.cxx:415
#39 0x0038a2d8 in TTermInputHandler::Notify() (this=0x160f6b0) at rint/src/TRint.cxx:102
#40 0x003eb9cc in TTermInputHandler::ReadNotify() (this=0x160f6b0) at rint/src/TRint.cxx:96
#41 0x03673368 in TUnixSystem::CheckDescriptors() (this=0x6047f0) at unix/src/TUnixSystem.cxx:995
#42 0x03672450 in TUnixSystem::DispatchOneEvent(bool) (this=0x6047f0, pendingOnly=false) at unix/src/TUnixSystem.cxx:712
#43 0x035b0cf8 in TSystem::InnerLoop() (this=0x6047f0) at base/src/TSystem.cxx:316
#44 0x035b0c1c in TSystem::Run() (this=0x6047f0) at base/src/TSystem.cxx:284
#45 0x0352d8bc in TApplication::Run(bool) (this=0x6868f0, retrn=false) at base/src/TApplication.cxx:830
#46 0x0038b08c in TRint::Run(bool) (this=0x6868f0, retrn=false) at rint/src/TRint.cxx:274
#47 0x000020d4 in main (argc=1, argv=0xbffffd7c) at main/src/rmain.cxx:29
(gdb) print varname
No symbol "varname" in current context.
(gdb) print theApp
No symbol "theApp" in current context.
(gdb) print handle
No symbol "handle" in current context.
(gdb)
Regards
Christian