473,387 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Crash with Seg Fault



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
4 2069
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
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

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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

48
by: Joseph | last post by:
Hi I'm writing a commercial program which must be reliable. It has to do some basic reading and writing to and from files on the hard disk, and also to a floppy. I have foreseen a potential...
8
by: Eric Brunel | last post by:
Hi all, I was creating a Tkinter widget in the style of the reversed tabs below Excel worksheets and I stepped in a serious problem: the code I made makes python crash with a seg fault, bus...
0
by: Thanvir | last post by:
We have an application that runs under Linux, solaris. The Application was developed in C++ under linux, it supports both Oracle and Informix database. For database connectivity in oracle it...
15
by: greenflame | last post by:
First of all I only have IE for testing. Ok. I have a script that is supposed to show, not evaluate, the indefinite integral of something. When I run the script it just craches IE. I have tried...
8
by: Adam Louis | last post by:
I would like help resolving this problem. I'm a novice who's been hired to query a hospital database and extract useful information, available to me only in a dynamically generated, downloadable...
4
by: arizvi | last post by:
Hi, My program crashes when it reaches a certain line. There is nothing wrong with that particular line as I have changed it to something simple like i=0, and it still crashes. If I remove...
9
by: Droopy | last post by:
Hi, I am running an application on 74 PC (1 instance on each PC). This morning, 2 applications crashes. There were neither popup windows signaling it nor dump file created. I only find in the...
34
by: NewToCPP | last post by:
Hi, Why does a C/C++ programs crash? When there is access to a null pointer or some thing like that programs crash, but why do they crash? Thanks.
110
by: alf | last post by:
Hi, is it possible that due to OS crash or mysql itself crash or some e.g. SCSI failure to lose all the data stored in the table (let's say million of 1KB rows). In other words what is the worst...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.