Re: ** ERROR **: sigsegc caught




Nathan Whittacre <nwhit@whittrio.com> writes:

> I am new to Gtk, but not to Linux.  I am just trying to get familiar with
> the Gtk libraries by going through the tutorial, but every time I attempt
> to run a Gtk program I get the error messages : **ERROR**: sigsegv caught
> 
> I am running RedHat 5.0 with all the errata updates, Gtk+ version 1.0.0,
> compiled version, not rpm.  Kernel version 2.0.32, running X 3.3.2 and
> Enlightenment 0.13.3.  Any suggestions?

Well, the first thing to check to see if the testgtk program
that was built in the gtk/ subdirectory works. If it does, then
it probably has something to do with the way you are entering
or compiling the tutorial programs.

It is also possible that you are running into a bug in GTK+,
though it is known to work on similar configurations.

If you are writing GTK+ programs, you should compile GTK+ with the
--enable-debug option. That will often give more useful information
than a simple segfault.

You can get more information about where the segfault is occuring
by running it under the debugger. At the risk of stating the
obvious, this is done by:

 - compiling your program with the -g flag
 - running the program under gdb:

$ gdb myprog
(gdb) run
[... program crashes ...]
(gdb) bt  # shows the stack

Regards,
                                        Owen



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]