gnu/95691: GDB segfaults on my programme in both FreeBSD 6 and 5
v.haisman at sh.cvut.cz
Thu Apr 13 13:20:12 UTC 2006
>Synopsis: GDB segfaults on my programme in both FreeBSD 6 and 5
>Arrival-Date: Thu Apr 13 13:20:07 GMT 2006
>Originator: Vaclav Haisman
>Release: FreeBSD 6
FreeBSD logout.sh.cvut.cz 6.0-STABLE FreeBSD 6.0-STABLE #0: Tue Jan 3 01:20:59 CET 2006 root at logout.sh.cvut.cz:/usr/obj/usr/src/sys/LOGOUT i386
This is my programme: http://logout.sh.cvut.cz/~wilx/imgcmp
This executable (linked against math/fftw3 and graphics/gd) crashes GDB with segmentation fault when it is loading it:
logout::wilx:~/imgcmp> gdb ./imgcmp
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...zsh: segmentation fault (core dumped) gdb ./imgcmp
When I compile the source on FreeBSD 5 I get the same segfault. This is pretty bad problem for me because I cannot debug the programme (I know it is buggy.).
I can attach the source code if it shows to be necessary to find out the root cause and to fix it.
More information about the freebsd-bugs