GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Nov 28, 2014 7:19 pm

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 
Offline
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

Code:
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!!


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

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

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.

_________________
E.


Top
 Profile  
 
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: No registered users and 2 guests


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