Message: Re: Geant4.10.02 successful compile, immediate seg-fault Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: Geant4.10.02 successful compile, immediate seg-fault 

Forum: Installation and Configuration
Re: Question Geant4.10.02 successful compile, immediate seg-fault (Anthony Villano)
Date: 13 Jan, 2016
From: Anthony Villano <Anthony Villano>

Vaclav Stepan kindly suggested using gdb to find the stack trace. I did this and got:

(gdb) file exampleB1 Reading symbols from exampleB1...(no debugging symbols found)...done. (gdb) run Starting program: /home/phys/villaa/geant4_test/B1-build/exampleB1 exampleB1 Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.166.el6_7.3.x86_64

Program received signal SIGSEGV, Segmentation fault. 0x0000003c26c0fcfd in _dl_check_map_versions () from /lib64/ld-linux-x86-64.so.2 (gdb) bt

#0  0x0000003c26c0fcfd in _dl_check_map_versions () from /lib64/ld-linux-x86-64.so.2
#1  0x0000003c26c10126 in _dl_check_all_versions () from /lib64/ld-linux-x86-64.so.2
#2  0x0000003c26c025e8 in version_check_doit () from /lib64/ld-linux-x86-64.so.2
#3  0x0000003c26c0e1f1 in _dl_receive_error () from /lib64/ld-linux-x86-64.so.2
#4  0x0000003c26c03588 in dl_main () from /lib64/ld-linux-x86-64.so.2
#5  0x0000003c26c160ae in _dl_sysdep_start () from /lib64/ld-linux-x86-64.so.2
#6  0x0000003c26c014a4 in _dl_start () from /lib64/ld-linux-x86-64.so.2
#7  0x0000003c26c00b08 in _start () from /lib64/ld-linux-x86-64.so.2
#8  0x0000000000000002 in ?? ()
#9  0x00007fffffffce6c in ?? ()
#10 0x00007fffffffce9d in ?? ()
#11 0x0000000000000000 in ?? ()

Yikes, looks like the linker might be at fault here. For more info I tried to see what the linker thinks of my executable:

$ldd exampleB1

/usr/bin/ldd: line 118: 166464 Segmentation fault (core dumped) LD_TRACE_LOADED_OBJECTS=1 LD_WARN= LD_BIND_NOW= LD_LIBRARY_VERSION=$verify_out LD_VERBOSE= "$@"

Ok, not sure what this is telling me but I think it must be a problem that the linker doesn't report to me the (shared) libraries it thinks are linked. Does ld need to be compiled with C++11 support as well? Maybe I'm not using the one from the same gcc suite, since it was loaded via a module (perhaps error there).

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Geant4.10.02 successful compile, immediate seg-fault   (Anthony Villano - 14 Jan, 2016)
(_ None: Re: Geant4.10.02 successful compile, immediate seg-fault   (Ben Morgan - 15 Jan, 2016)
(_ None: Re: Geant4.10.02 successful compile, immediate seg-fault   (Anthony Villano - 16 Jan, 2016)
 Add Message Add Message
to: "Re: Geant4.10.02 successful compile, immediate seg-fault"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]