Re: gtk2 Segmentation faults



Kristian Peters <kristian peters korseby net> writes:

> Owen Taylor <otaylor redhat com> wrote:
> > Is your system Red Hat 7.2 in other ways?
> 
> No. I applied updates from errata only.
> 
> > Porbably something to do with config files or the set of files in your packages. Maybe you could try the i386.rpm 
> > from ftp.gtk.org; they are built against 7.2 with almost exactly the SRPMs as the ones in rawhide. (They
> > have debugging information, however.)
> > 
> >  * As Sven says, is anything printed on the console?
> >  * If you do a backtrace, where is it crashing?
> 
> $ ./test 
> Segmentation fault
> 
> ^^^ immediately after the first gtk-command. 
> 
> #include <gtk/gtk.h>
> 
>  int main( int   argc,
>            char *argv[] )
>  {
>      printf("1\n");
>      GtkWidget *window;
>      printf("2\n");
> [...]
> 
> reveals:
> 
> $ ./test 
> 1 
> Segmentation fault
> 
> No matter what gtk-statement I use.

Even if the statement is a variable declaration? :-)

I mean, get a backtrace in gdb:

 gdb ./mytestprog
 (gdb) r
 [ crashes ]
 (gdb) bt

Regards,
                                        Owen




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