Accessing .root file

Hi there,

I have been using a script on Windows 7 to access a .root file that contains a collection of histograms, but ROOT crashed. That script runs perfectly fine on my friend’s Windows (I think it’s Windows 8 ). Then I tried to run that script on Ubuntu through VMWare and here’s the result. Do you have any idea what might happen? I’m not sure if it is because of my laptop or not…

[code]root [5] .x PRF.C

*** Break *** segmentation violation

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

#0 0x00007f8476c78b4c in __libc_waitpid (pid=34240, stat_loc=stat_loc
entry=0x7fff001d2140, options=options
entry=0) at …/sysdeps/unix/sysv/linux/waitpid.c:31
#1 0x00007f8476bfe2e2 in do_system (line=) at …/sysdeps/posix/system.c:148
#2 0x00007f847792ef33 in TUnixSystem::StackTrace() () from /home/nhnguyen/root/lib/libCore.so
#3 0x00007f8477930c3c in TUnixSystem::DispatchSignals(ESignals) () from /home/nhnguyen/root/lib/libCore.so
#4
#5 0x00007f8476c26055 in _IO_new_fgetpos (fp=0x2754540, posp=0x7fff001d50a0) at iofgetpos.c:50
#6 0x00007f847630621e in G__interpret_func () from /home/nhnguyen/root/lib/libCint.so
#7 0x00007f84762f2d07 in G__getfunction () from /home/nhnguyen/root/lib/libCint.so
#8 0x00007f84762cd032 in G__getitem () from /home/nhnguyen/root/lib/libCint.so
#9 0x00007f84762d24d5 in G__getexpr () from /home/nhnguyen/root/lib/libCint.so
#10 0x00007f84762dddab in G__calc_internal () from /home/nhnguyen/root/lib/libCint.so
#11 0x00007f8476364bbf in G__process_cmd () from /home/nhnguyen/root/lib/libCint.so
#12 0x00007f84778f29e0 in TCint::ProcessLine(char const*, TInterpreter::EErrorCode*) () from /home/nhnguyen/root/lib/libCore.so
#13 0x00007f84778ef07b in TCint::ProcessLineSynch(char const*, TInterpreter::EErrorCode*) () from /home/nhnguyen/root/lib/libCore.so
#14 0x00007f847785cb2c in TApplication::ExecuteFile(char const*, int*, bool) () from /home/nhnguyen/root/lib/libCore.so
#15 0x00007f847785c060 in TApplication::ProcessLine(char const*, bool, int*) () from /home/nhnguyen/root/lib/libCore.so
#16 0x00007f84774a9239 in TRint::HandleTermInput() () from /home/nhnguyen/root/lib/libRint.so
#17 0x00007f8477930405 in TUnixSystem::CheckDescriptors() () from /home/nhnguyen/root/lib/libCore.so
#18 0x00007f8477930f2a in TUnixSystem::DispatchOneEvent(bool) () from /home/nhnguyen/root/lib/libCore.so
#19 0x00007f84778b3e86 in TSystem::InnerLoop() () from /home/nhnguyen/root/lib/libCore.so
#20 0x00007f84778b4a90 in TSystem::Run() () from /home/nhnguyen/root/lib/libCore.so
#21 0x00007f847785a25f in TApplication::Run(bool) () from /home/nhnguyen/root/lib/libCore.so
#22 0x00007f84774aa45e in TRint::Run(bool) () from /home/nhnguyen/root/lib/libRint.so
#23 0x0000000000400fdc in main ()

The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.

#5 0x00007f8476c26055 in _IO_new_fgetpos (fp=0x2754540, posp=0x7fff001d50a0) at iofgetpos.c:50

Root > Function PRF() busy flag cleared

*** Break *** keyboard interrupt /home/nhnguyen/root/macros/PRF.C:10:
Root >
[/code]

I’m afraid we need your PRF.C script and your .root file in order to reproduce your problem (i.e. a minimal running example).