Hello, I'm using root-4.03/03 on linux Fedora Core-3 (gcc 3.4.2 20041017).
I'm trying to use the TMapFile class as described in the root tutorials
(see attached macros). These macros work correctly with root-3.10/02 on
Scientific Linux-3.03 (gcc 3.2.3 20030502), but only if I use the
"rootn.exe" executable instead of "root".
When I try to run the producer on root-4.03/03 I obtain the output
reported in the end of this message (complete stack trace).
I tried to comment the line "mfile->Update();" in the producer source
code and the producer runs, but the consumer can't find anything inside
the "mapfile".
I thank you in advance for you help, cheers
Diego
root [0] .x Producer1.C++
Info in <TUnixSystem::ACLiC>: creating shared library
/home/finuda/root_tests/SharedMemories/./Producer1_C.so
mfile is: 0xf5879008
Memory mapped file: hsimple.map
Title: Demo memory mapped file with histograms
Option: CREATE
Mapped Memory region: 0xf5875000 - 0xf588e000 (0.10 MB)
Current breakval: 0xf587d000
Object Class Size
hpx (null) 0
hpxpy (null) 0
hprof (null) 0
- Break *** illegal instruction
Generating stack trace...
/usr/bin/addr2line: 'rootn.exe': No such file
/usr/bin/addr2line: 'rootn.exe': No such file
0xf588fa26 in <unknown function>
0xf588fb40 in <unknown function>
0xf67cd506 in G__call_cppfunc + 0x264 from
/usr/local/fndprg/root/lib/libCint.so
0xf67bc313 in G__interpret_func + 0x7ac from
/usr/local/fndprg/root/lib/libCint.so
0xf679f953 in G__getfunction + 0x1bd5 from
/usr/local/fndprg/root/lib/libCint.so
0xf6795931 in G__getitem + 0x656 from
/usr/local/fndprg/root/lib/libCint.so
0xf679420e in G__getexpr + 0x834e from
/usr/local/fndprg/root/lib/libCint.so
0xf678bb6b in G__calc_internal + 0x2c8 from
/usr/local/fndprg/root/lib/libCint.so
0xf67f2598 in G__process_cmd + 0x22dc from
/usr/local/fndprg/root/lib/libCint.so
0xf6af13b1 in TCint::ProcessLine(char const*, TInterpreter::EErrorCode*)
+ 0xaf from /usr/local/fndprg/root/lib/libCore.so
0xf6af14bc in TCint::ProcessLineSynch(char const*,
TInterpreter::EErrorCode*) + 0x46 from
/usr/local/fndprg/root/lib/libCore.so
0xf6a48c42 in TApplication::ProcessFile(char const*, int*) + 0x6fa from
/usr/local/fndprg/root/lib/libCore.so
0xf6a484cd in TApplication::ProcessLine(char const*, bool, int*) + 0x623
from /usr/local/fndprg/root/lib/libCore.so
0xf5f1ef30 in TRint::HandleTermInput() + 0x234 from
/usr/local/fndprg/root/lib/libRint.so
0xf5f1dbbe in TTermInputHandler::Notify() + 0x24 from
/usr/local/fndprg/root/lib/libRint.so
0xf5f1f3ac in TTermInputHandler::ReadNotify() + 0x12 from
/usr/local/fndprg/root/lib/libRint.so
0xf6b96ae6 in TUnixSystem::CheckDescriptors() + 0x152 from
/usr/local/fndprg/root/lib/libCore.so
0xf6b959ec in TUnixSystem::DispatchOneEvent(bool) + 0x184 from
/usr/local/fndprg/root/lib/libCore.so
0xf6ab13e2 in TSystem::InnerLoop() + 0x18 from
/usr/local/fndprg/root/lib/libCore.so
0xf6ab1382 in TSystem::Run() + 0x7a from
/usr/local/fndprg/root/lib/libCore.so
0xf6a48d74 in TApplication::Run(bool) + 0x32 from
/usr/local/fndprg/root/lib/libCore.so
0xf5f1e96c in TRint::Run(bool) + 0x364 from
/usr/local/fndprg/root/lib/libRint.so
0x08048d3b in main + 0x67 from rootn.exe
0x00868e33 in __libc_start_main + 0xe3 from /lib/tls/libc.so.6
0x08048c4d in TApplicationImp::ShowMembers(TMemberInspector&, char*) +
0x31 from rootn.exe
Root >
- Break *** segmentation violation
Generating stack trace...
0xf588e024 in <unknown function>
Root > Segmentation fault
Received on Mon Feb 28 2005 - 18:26:11 MET