Re: Troubleshooting segfault
- From: Baurzhan Ismagulov <ibr radix50 net>
- To: gtk-list gnome org
- Subject: Re: Troubleshooting segfault
- Date: Thu, 4 Aug 2005 21:47:29 +0200
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]