Re: Troubleshooting segfault

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

 



Hello Jonathan,

On Thu, Aug 04, 2005 at 02:34:50PM -0500, Jonathan Hayward wrote:
> I've been developing an application, and now it crashes shortly after 
> starting; it segfaults (secondary damage?) either on the first attempt to 
> strncpy() from a text input, or gtk_image_new_from_pixbuf(). Both of these 
> were working reliably, and I haven't touched that area of code (but double 
> checked just in case).
> 
> How should I go about troubleshooting a segfault early on in execution? What 
> kind of problems should I be looking for?The code is at 
> http://haywardfamily.org/jonathan/gtk_tms.tgz .

1. Analyse core with gdb.

2. Use valgrind to see whether you corrupt memory before the crash.

With kind regards,
Baurzhan.
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux