Message: Re: Segmentation fault(core dumped) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Segmentation fault(core dumped) 

Keywords: core dumped
Forum: Run Management
Re: Question Segmentation fault(core dumped)
Date: 04 May, 2004
From: Trevor MacPhail <tmmacpha@triumf.ca>

Segmentation fault indicates that you tried to access memory you didnt have access to. Typically by dereferencing a pointer that didnt point to what you thought it did. I suggest first trying gdb to try and find where it occured.

The coredump caused a file. Often called core (may have process numbers appended)

$ gdb ./program corefile

(gdb) backtrace

You will hopefully see a list of function names. The one at the top is where the segmentation fault occured.

If debug information was on at compile time you may even see something about what line it occured on. If not, then you then should go back to your strategy of using G4cout to narrow it down.

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

 Add Message Add Message
to: "Re: Segmentation fault(core dumped)"

 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 ]