RE: [ROOT] error at loading library

From: Philippe Canal (pcanal@fnal.gov)
Date: Wed Sep 17 2003 - 17:58:51 MEST


Hi Vladimir,

Make sure that
	root was built with gcc 2.95.3 (this actually means that you have to have
compiled it yourself (or someone at your institution).
	the library is built with -I$ROOTSYS/include
	$ROOTSYS points to your root 3.01/05
	$LD_LIBRARY_PATH contains the value of $ROOTSYS/lib

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Vladimir Babintsev
Sent: Wednesday, September 17, 2003 7:22 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] error at loading library


Hello
I...............
 gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.95.3/specs
gcc version 2.95.3 20010315 (release)
................
 root-config --version
3.01/05
..................

I have
root [0]
gSystem->Load("/phenix/workarea/babinsev/wrk3/dir-v1/dir-lambda/insta$

 *** Break *** segmentation violation

The program worked  weel 1 month ago
My steps:
  I removed all contents from the main part of the program
and keep only name of function,  results the same:

...........................

root [0]
gSystem->Load("/phenix/workarea/babinsev/wrk3/dir-v1/dir-lambda/insta$

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 10934)]
0x40c3aba8 in _dl_close (_map=0x8805bc8) at dl-close.c:291
291 dl-close.c: No such file or directory.
 in dl-close.c
(gdb) bt
#0  0x40c3aba8 in _dl_close (_map=0x8805bc8) at dl-close.c:291
#1  0x40c3a820 in _dl_open (
    file=0x405cf7ea
"/phenix/workarea/babinsev/wrk3/dir-v1/dir-lambda/install/lib/libPhHadron.so
",
mode=142629832, caller=0x404d9641) at dl-open.c:434
#2  0x40a9ff55 in dlopen_doit (a=0xbffe6adc) at dlopenold.c:45
#3  0x4000d7b3 in _dl_catch_error (objname=0x843b110,
errstring=0x843b114,
    operate=0x40a9ff20 <dlopen_doit>, args=0xbffe6adc) at dl-error.c:152

#4  0x40a9f6fb in _dlerror_run (operate=0x40a9ff20 <dlopen_doit>,
    args=0xbffe6adc) at dlerror.c:130
#5  0x40a9ff04 in __dlopen_nocheck (
    file=0x405cf7ea
"/phenix/workarea/babinsev/wrk3/dir-v1/dir-lambda/install/lib/libPhHadron.so
",
mode=257) at dlopenold.c:62
#6  0x404d9641 in G__dlopen ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCint.
so

#7  0x404d9c8c in G__shl_load ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCint.
so

#8  0x4049b64f in G__loadfile ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCint.
so

#9  0x4010ccf6 in TSystem::Load ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libC---T
ype
<return> to continue, or q <return> to quit---
ore.so
#10 0x4015da4a in TUnixSystem::Load ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCore.
so

#11 0x40214aff in G__TSystem_Load_3_7 ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCore.
so

#12 0x404a11a1 in G__call_cppfunc ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCint.
so

#13 0x404909fb in G__interpret_func ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCint.
so

#14 0x40478b69 in G__getfunction ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCint.
so

#15 0x404fbd76 in G__getstructmem ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCint.
so

#16 0x404f5d10 in G__getvariable ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCint.
so

#17 0x40471c3d in G__getitem ()
---Type <return> to continue, or q <return> to quit---
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCint.
so

#18 0x40470633 in G__getexpr ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCint.
so

#19 0x404b6c50 in G__exec_function ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCint.
so

#20 0x404bd5c1 in G__exec_statement ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCint.
so

#21 0x40459f39 in G__exec_tempfile ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCint.
so

#22 0x404c529b in G__process_cmd ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCint.
so

#23 0x4012b128 in TCint::ProcessLine ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCore.
so

#24 0x400d2ef0 in TApplication::ProcessLine ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCore.
so

---Type <return> to continue, or q <return> to quit---
#25 0x40a7a81e in TRint::HandleTermInput ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libRint.
so

#26 0x40a79952 in TTermInputHandler::Notify ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libRint.
so

#27 0x40a8b121 in TTermInputHandler::ReadNotify ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libRint.
so

#28 0x4015ccae in TUnixSystem::CheckDescriptors ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCore.
so

#29 0x4015c413 in TUnixSystem::DispatchOneEvent ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCore.
so

#30 0x4010bbaa in TSystem::InnerLoop ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCore.
so

#31 0x4010bb27 in TSystem::Run ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libCore.
so

#32 0x400d38df in TApplication::Run ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libC---T
ype
<return> to continue, or q <return> to quit---
ore.so
#33 0x40a7a30e in TRint::Run ()
   from
/afs/rhic.bnl.gov/phenix/PHENIX_LIB/sys/i386_linux24/new.1/root/lib/libRint.
so

#34 0x08048869 in main ()
#35 0x40b3d627 in __libc_start_main (main=0x80487f0 <main>, argc=1,
    ubp_av=0xbfffd324, init=0x8048640 <_init>, fini=0x8048930 <_fini>,
    rtld_fini=0x4000dcc4 <_dl_fini>, stack_end=0xbfffd31c)
    at ../sysdeps/generic/libc-start.c:129
(gdb)

------------------------------------

 What should I do  ?

 Thank You, Vladimir



#################################################################
#################################################################
#################################################################
#####
#####
#####
#################################################################
#################################################################
#################################################################



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET