Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 480670 - x11-libs/fltk-1.3.0-r1 - fluid: Floating point exception (integer division) in src/Fl_Text_Display.cxx:339
Summary: x11-libs/fltk-1.3.0-r1 - fluid: Floating point exception (integer division) i...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-11 21:12 UTC by Toralf Förster
Modified: 2013-09-21 17:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
strace -o strace.out fluid 2>&1 (strace.out,61.96 KB, text/plain)
2013-08-11 21:16 UTC, Toralf Förster
Details
strace -s100 -o strace.log fluid (strace.log,82.09 KB, text/plain)
2013-09-21 17:59 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2013-08-11 21:12:24 UTC
tfoerste@n22 ~ $ fluid
Floating point exception


tfoerste@n22 ~ $ emerge --info x11-libs/fltk
Portage 2.1.12.2 (default/linux/x86/13.0/desktop/kde, gcc-4.6.3, glibc-2.15-r3, 3.10.5 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.10.5-i686-Intel-R-_Core-TM-_i5-2540M_CPU_@_2.60GHz-with-gentoo-2.2
KiB Mem:     8174280 total,   2794248 free
KiB Swap:    9767516 total,   9695760 free
Timestamp of tree: Sun, 11 Aug 2013 18:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5, 3.2.5-r1
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo toralf
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --keep-going=y --nospinner --tree --quiet-build --deep"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.mirror.dkm.cz/pub/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 berkdb bittorrent branding bzip2 cairo cdda cdr classic cli consolekit corefonts cracklib crypt css cups cxx dbus declarative dri dts dvb dvd dvdr emboss encode exif fam fastbuild ffmpeg firefox flac fontconfig fortran g3dvl gdbm gif git gmp gnuplot gphoto2 gpm gtk hyphenation iconv ipv6 java jpeg kde kipi kqemu kvm lcms ldap libnotify logrotate mad mbox mmx mng modules mp3 mp4 mpeg mudflap mysql mysqli ncurses nls nptl nsplugin ntfs ogg opengl openmp pam pango pcre pdf phonon pkcs11 plasma png policykit ppds qemu qt3support qt4 rdesktop readline sdl semantic-desktop session sna spell spice sse sse2 sse4_1 ssl ssse3 startup-notification svg tcpd thinkpad threads tiff tk transparent-proxy truetype udev udisks uml unicode upower usb uxa v4l vaapi vim-syntax vnc vorbis wxwidgets x264 x86 xa xcb xcomposite xinerama xml xpm xscreensaver xv xvid xvmc zlib" ABI_X86="32" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

x11-libs/fltk-1.3.0-r1 was built with the following:
USE="cairo (consolekit) opengl pdf (policykit) test threads xinerama -debug -doc -examples -games -static-libs -xft"
Comment 1 Toralf Förster gentoo-dev 2013-08-11 21:16:08 UTC
Created attachment 355716 [details]
strace -o strace.out fluid 2>&1
Comment 2 Jeroen Roovers gentoo-dev 2013-09-21 15:11:41 UTC
Could you please attach a gdb backtrace? strace's output is of little to no use here.
Comment 3 Toralf Förster gentoo-dev 2013-09-21 15:37:35 UTC
tfoerste@n22 ~ $ gdb fluid
GNU gdb (Gentoo 7.5.1 p2) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/fluid...Reading symbols from /usr/lib/debug/usr/bin/fluid.debug...done.
done.
(gdb) run
Starting program: /usr/bin/fluid
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".

Program received signal SIGFPE, Arithmetic exception.
0xb7f247bd in Fl_Text_Display::resize (this=0x80ceb80, X=12, Y=12, W=<optimized out>, H=371) at Fl_Text_Display.cxx:339
339     Fl_Text_Display.cxx: No such file or directory.
(gdb) bt
#0  0xb7f247bd in Fl_Text_Display::resize (this=0x80ceb80, X=12, Y=12, W=<optimized out>, H=371) at Fl_Text_Display.cxx:339
#1  0xb7f2146e in Fl_Text_Display::buffer_modified_cb (pos=0, nInserted=0, nDeleted=0, nRestyled=0, deletedText=0x0, cbArg=0x80ceb80)
    at Fl_Text_Display.cxx:1480
#2  0xb7f218dc in Fl_Text_Display::buffer (this=0x80ceb80, buf=0x80cee08) at Fl_Text_Display.cxx:214
#3  0x0807babc in make_shell_window () at alignment_panel.cxx:372
#4  0x08089f40 in make_main_window () at fluid.cxx:1817
#5  0x08059cb3 in main (argc=1, argv=0xbfffec54) at fluid.cxx:2386
(gdb) quit
A debugging session is active.

        Inferior 1 [process 30393] will be killed.

Quit anyway? (y or n) y
Comment 4 Jeroen Roovers gentoo-dev 2013-09-21 16:36:58 UTC
src/Fl_Text_Display.cxx:339:    int nvlines = (text_area.h + mMaxsize - 1) / mMaxsize;

It would be interesting to find out which font it is trying to use. From the strace output, that would appear to be adobe-helvetica-medium-r-normal which would indicate media-fonts/font-adobe-*dpi...
Comment 5 Toralf Förster gentoo-dev 2013-09-21 16:48:41 UTC
(In reply to Jeroen Roovers from comment #4)
> src/Fl_Text_Display.cxx:339:    int nvlines = (text_area.h + mMaxsize - 1) /
> mMaxsize;
> 
> It would be interesting to find out which font it is trying to use. From the
> strace output, that would appear to be adobe-helvetica-medium-r-normal which
> would indicate media-fonts/font-adobe-*dpi...

Ah, and I do not have any media-fonts/font-adobe* installed ...
Comment 6 Jeroen Roovers gentoo-dev 2013-09-21 17:40:17 UTC
(In reply to Toralf Förster from comment #5)
> (In reply to Jeroen Roovers from comment #4)
> > src/Fl_Text_Display.cxx:339:    int nvlines = (text_area.h + mMaxsize - 1) /
> > mMaxsize;
> > 
> > It would be interesting to find out which font it is trying to use. From the
> > strace output, that would appear to be adobe-helvetica-medium-r-normal which
> > would indicate media-fonts/font-adobe-*dpi...
> 
> Ah, and I do not have any media-fonts/font-adobe* installed ...

No problem. The last syscall is a recv on a socket connecting to the X server. You might need to do some more digging into the server's font configuration to see if it sends an invalid font height. Setting strace -s100 might help obtain the full string the server sent...
Comment 7 Toralf Förster gentoo-dev 2013-09-21 17:59:27 UTC
Created attachment 359192 [details]
strace -s100 -o strace.log fluid

well - here it is