Re: Segmentation Fault
- From: John Vetterli <jvetterli linux ca>
- To: Sandeep KS <kssandeepa yahoo com>
- Cc: Gtk <gtk-app-devel-list gnome org>
- Subject: Re: Segmentation Fault
- Date: Tue, 4 Apr 2006 19:38:14 -0400 (EDT)
On Tue, 4 Apr 2006, Sandeep KS wrote:
I have written a program using GTK which executes some shellscripts in
the background...After the shellscripts complete executing, a window is
displayed showing the completion details.... At this time segmentation
fault occurs.
Is there anyway to trace the exact cause of the segmentation fault...
I tried gdb, but it didn't show any error while executing the code..The
segmentation fault occured when the execution went to loop after
displaying the final window and waiting for user's interaction...
How can i find the reason for the segmentation fault?
At the shell prompt, run "ulimit -c unlimited", then run your application.
When it segfaults, a file called "core" will be created in the
application's current working directory, containing the state of the
application when the segfault occurred. You can then inspect the core
file with gdb by running "gdb <myapp> core" where <myapp> is the name of
the application's binary file.
HTH
JV
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]