how to solve this segment fault bug?

明覺 shi.minjue at gmail.com
Sun May 10 09:39:59 BST 2009


On Sun, May 10, 2009 at 1:53 PM, Esben Mose Hansen <kde at mosehansen.dk> wrote:
> On Saturday 09 May 2009 14:56:20 明覺 wrote:
>> I'm studying a software named k3dsurf, which is a kdevelop project,
>> here is the source code
>> http://kde-apps.org/content/show.php?content=25049.
>> I have built it by kdevelop 3.5.4 successfully, but when i start it,
>> it says segment fault, here is the gdb info:
>
> Most likely either psc or psc->driScreen is null. Start the program with gdb
> (you can find lots of tutorials on the net about gdb) to find out which one.
here is more detailed info from gdb:
-------------------------------------------------------------
(gdb) break glxcmds.c:660
No source file named glxcmds.c.
Make breakpoint pending on future shared library load? (y or [n]) y

Breakpoint 1 (glxcmds.c:660) pending.
(gdb) run
Starting program: /root/workspace/C2/k3dsurf/k3dsurf-0.6.2/bin/k3dsurf
[Thread debugging using libthread_db enabled]

Breakpoint 1, glXWaitX () at glxcmds.c:660
660	glxcmds.c: No such file or directory.
	in glxcmds.c
Current language:  auto; currently c
(gdb) print psc
$1 = (__GLXscreenConfigs * const) 0x7ffff5d6da60
(gdb) print pdraw
$2 = <value optimized out>
(gdb) print *psc->driScreen
$3 = {destroyScreen = 0x7ffff5d6da90, createContext = 0x7ffff5d6da90,
  createDrawable = 0x7ffff5d6daa0, swapBuffers = 0x7ffff5d6daa0,
  copySubBuffer = 0x7ffff5d6dab0, waitX = 0x7ffff5d6dab0, waitGL =
    0x7ffff5d6dac0}
(gdb) step

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5d6da60 in ?? () from /lib/libc.so.6
(gdb)
-------------------------------------------------------------
what's the problem? thanks

>
> --
> Kind regards, Esben
>
> _______________________________________________
> kdevelop mailing list
> kdevelop at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop
>



-- 
我的操作系統是Gnu/Linux Debian-sid-amd64/gNewSense Gnome Mozilla
Gmail/Evolution Gtkmm/Clutter/Anjuta Scim Totem Pidgin.




More information about the KDevelop mailing list