Using libthr causes SIGFPE when running Qt applications in gdb

Arjan van Leeuwen avleeuwen at gmail.com
Fri May 12 12:00:53 UTC 2006


When using libthr (mapped from libpthread via libmap.conf) on FreeBSD
6.1-RELEASE, I can't run any Qt applications from gdb. Any application I run
reports:

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 0x8c93000 (LWP 100120)]
0x2915ddb7 in QLocalePrivate::stringToDouble () from /usr/X11R6/lib/libqt-
mt.so.3
(gdb) bt
#0 0x2915ddb7 in QLocalePrivate::stringToDouble () from
/usr/X11R6/lib/libqt-mt.so.3
#1 0x2917308c in QString::toDouble () from /usr/X11R6/lib/libqt-mt.so.3
#2 0x28e8967b in QFont::fromString () from /usr/X11R6/lib/libqt-mt.so.3
#3 0x28e0d712 in QApplication::x11_apply_settings () from
/usr/X11R6/lib/libqt-mt.so.3
#4 0x28e0e63e in qt_set_x11_resources () from /usr/X11R6/lib/libqt-mt.so.3
#5 0x28e126fe in qt_init_internal () from /usr/X11R6/lib/libqt-mt.so.3
#6 0x28e14bac in qt_init () from /usr/X11R6/lib/libqt-mt.so.3
#7 0x28e74231 in QApplication::construct () from /usr/X11R6/lib/libqt-
mt.so.3
#8 0x28e7465c in QApplication::QApplication () from /usr/X11R6/lib/libqt-
mt.so.3

The applications run fine outside of gdb or when switching back to
libpthread. Is this a known problem? If so, is there also a known solution?
:)

Best regards,

Arjan van Leeuwen


More information about the freebsd-threads mailing list