By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,720 Members | 2,153 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,720 IT Pros & Developers. It's quick & easy.

Crash with Seg Fault

P: n/a


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.

Apr 20 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
si***************@gmail.com wrote:

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
Apr 20 '06 #2

P: n/a
si***************@gmail.com wrote:
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.

--
Salu2

Inviato da X-Privat.Org - Registrazione gratuita http://www.x-privat.org/join.php
Apr 20 '06 #3

P: n/a

si***************@gmail.com wrote:
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.

Apr 20 '06 #4

P: n/a
Juli√°n Albo wrote:
si***************@gmail.com wrote:
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.


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
May 5 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.