PDA

View Full Version : Segmentation fault



impeteperry
29th December 2008, 15:12
Any help on what it is and how I go about fixing it would be most appreciated
thanks

jpn
29th December 2008, 15:24
Use a debugger to get the backtrace. Search the forums for "debugger backtrace" or something similar.

impeteperry
29th December 2008, 16:16
Thanks.
I am using "Qdevelop" as a debuger and i get;

"Debug...
(gdb)
(gdb)
(gdb)
(gdb)
(gdb)
Starting program: /home/pete/Desktop/dg-working/new/dg/dg
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6df36c0 (LWP 24750)]
0xb75af489 in QObject::connect () from /usr/lib/libQtCore.so.4
(gdb) "

I don't know where from here.

jpn
29th December 2008, 16:42
That alone suggests that QObject::connect() gets probably called with an uninitialized pointer. Is there any window that shows the backtrace from gdb or can you type to the gdb window? The command is "bt" if you can. That would show where the call comes from.

impeteperry
29th December 2008, 18:12
Thanks
I got a whole bunch of stuff that didn't mean anything to me.

I am going back in the program and look for an
uninitialized pointeras you suggested earlier. Will let you know how I make out.
Thanks again

jpn
29th December 2008, 18:59
I got a whole bunch of stuff that didn't mean anything to me.
You may paste it here and we'll check it out.