GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat Aug 27, 2016 4:38 am

All times are UTC

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: debugging gtk applications
PostPosted: Mon Apr 23, 2012 10:52 am 
Familiar Face

Joined: Thu Mar 29, 2012 9:40 am
Posts: 14
Hi everyone!!! I get an error when I quit my gtk application. Everything works fine, but just when I close the application I get

Segmentation fault (core dumped)

I try to find the error using gdb, executing every instruction. But I get the error when I reach gtk_main_quit().

How can I debug gtk applications???

Thank you very very much!!

 Post subject: Re: debugging gtk applications
PostPosted: Tue Apr 24, 2012 6:07 am 
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 1048
Location: UK

You will need to enable all debugging symbols when you compile your source code. You will then need to work out from the back trace what has caused the segmentation fault. With that information you may need to do a lot of investigation to work out why and this could be easy or could take a lot of hunting around.

Without any other information we can not say what your problem could be. One possible cause could be a pointer being set to NULL or a memory area being de-allocated and that pointer then being used during the exit process.


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group