Crash with Seg Fault

S

silverburgh.meryl

My program sometime crashes with Seg Fault, but it does not generate a
core dump. I am running on Linux Fedora 5. and my program compiles
with GCC 4.1.

Any idea how to trouble-shoot my problem?

Thank you.
 
P

Peter Jansson

My program sometime crashes with Seg Fault, but it does not generate a
core dump. I am running on Linux Fedora 5. and my program compiles
with GCC 4.1.

Any idea how to trouble-shoot my problem?

Thank you.

Is it written using C++? Then, a wild guess: Look at line 42 in your
code, maybe you have tried to access an un-touchable address...

Seriously, If you post your C++ code here, then maybe we can see if we
can find the error...

Regards,
Peter Jansson
 
?

=?ISO-8859-15?Q?Juli=E1n?= Albo

My program sometime crashes with Seg Fault, but it does not generate a
core dump. I am running on Linux Fedora 5. and my program compiles
with GCC 4.1.
Any idea how to trouble-shoot my problem?

What problem? The segfault, the non creation of the core, or the use of
Fedora?

For the first, post code that shows the problem. For the other, you can ask
in some linux and gcc related group.
 
D

dragoncoder

My program sometime crashes with Seg Fault, but it does not generate a
core dump. I am running on Linux Fedora 5. and my program compiles
with GCC 4.1.

Any idea how to trouble-shoot my problem?
Try ulimit on your system. The last time I encountered this problem was
because the maximum size of core file to be produced was set to zero.
You can try "ulimit -c 10000" and try to crash again.
 
S

Sohail Ahmed Siddiqui

Julián Albo said:
What problem? The segfault, the non creation of the core, or the use of
Fedora?

For the first, post code that shows the problem. For the other, you can
ask in some linux and gcc related group.

Hi,
if you want to get the core from your application, this might help you, just
type this in your terminal from where you are running your application or
set this in your startup script like .bashrc

ulimit -c unlimited

after you have a core, you can debug it to find the exact place where your
application is crashing

Br
Sohail
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top