Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 394859 - fatal error when running media-radio/fldigi-3.21.33
Summary: fatal error when running media-radio/fldigi-3.21.33
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High major with 2 votes (vote)
Assignee: Thomas Beierlein
URL:
Whiteboard:
Keywords:
Depends on: 394303 395747
Blocks:
  Show dependency tree
 
Reported: 2011-12-15 21:23 UTC by Teun Blok
Modified: 2012-01-05 16:19 UTC (History)
0 users

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


Attachments
file with emerge --info (emerge --info,4.53 KB, text/plain)
2011-12-15 21:23 UTC, Teun Blok
Details
fatal error fldigi-3.21.33.bin (fatal error with fldigi-3.21.33.bin,36.17 KB, text/plain)
2011-12-19 20:25 UTC, Teun Blok
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Teun Blok 2011-12-15 21:23:17 UTC
Created attachment 295959 [details]
file with emerge --info

Today I discovered that media-radio/fldigi-3.21.33 ~x86 does not run on my Gentoo Linux box. In a terminal (commandline) I receive a fatal error and the program hangs. Compiling etc is ok but it won't run. No xwindow's, only in a terminal you see the error.

I downgrade to media-radio/fldigi-3.21.12 x86 and that version gives me the same fatal error. It must by due to an update after emerge --sync and emerge -u --deep --newuse world because last sunday I used fldigi on hf and then I did not have problems. I just don't now which update is the cause of this fatal error.

Can someone give a hint...

TIA

Teun


teun@i5-750 ~ $ fldigi
I: main: CPU speed factor=174.794887: setting slowcpu=false,
sample_converter="Best Sinc Interpolator"

Caught signal 11
Aborting fldigi due to a fatal error.
Please report this to:   fldigi-devel@lists.berlios.de
or file a bug report at: https://fedorahosted.org/fldigi/newticket

****** Stack trace:
fldigi[0x816361d]
[0xb78c9400]
/lib/libc.so.6(+0x7007a)[0xb722d07a]
/lib/libc.so.6(cfree+0x6e)[0xb723046e]
/usr/lib/libpng15.so.15(png_free_default+0x30)[0xb787af30]

****** Version information:
fldigi 3.21.33
Copyright (C) 2007-2010 Dave Freese, Stelios Bounanos, Leigh Klotz, Remi
Chateauneu, and others.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl-3.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

****** Build information:
Build information:
  built          : Thu Dec 15 19:37:24 CET 2011 by root@i5-750 on
i686-pc-linux-gnu for i686-pc-linux-gnu

  configure flags: '--prefix=/usr' '--build=i686-pc-linux-gnu'
'--host=i686-pc-linux-gnu' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc'
'--localstatedir=/var/lib' '--with-sndfile' '--without-portaudio'
'--without-hamlib' '--enable-nls' '--with-pulseaudio' '--with-xmlrpc'
'--without-asciidoc' 'build_alias=i686-pc-linux-gnu'
'host_alias=i686-pc-linux-gnu' 'CXXFLAGS=-march=native -O2 -pipe
-fomit-frame-pointer' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'
'CFLAGS=-march=native -O2 -pipe -fomit-frame-pointer'

  compiler       : gcc version 4.5.3 (Gentoo 4.5.3-r1 p1.0, pie-0.4.5)

  compiler flags : -I$(srcdir) -I$(srcdir)/include -I$(srcdir)/irrxml
-I$(srcdir)/fileselector -I$(srcdir)/xmlrpcpp -I/usr/include/fltk-1
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-D_THREAD_SAFE -D_REENTRANT -D_REENTRANT -I/usr/include/libpng15
-I/usr/include -pipe -Wall -fexceptions -O2 -ffast-math
-finline-functions -DNDEBUG

  linker flags   : -L/usr/lib/fltk-1 -Wl,-O1 -Wl,--as-needed
-lfltk_images -lpng -lz -ljpeg -lfltk -lXft -lpthread -ldl -lm -lXext
-lX11 -lX11 -lsndfile -lsamplerate -lpulse-simple -lpulse -lpng15
-L/usr/lib -lxmlrpc_server_abyss++ -lxmlrpc_server++
-lxmlrpc_server_abyss -lxmlrpc_server -lxmlrpc_abyss -lxmlrpc++ -lxmlrpc
-lxmlrpc_util -lxml2 -lz -lm -ldl -lrt -lpthread

  libraries      : FLTK 1.1.10
                   libsamplerate 0.1.7
                   libsndfile 1.0.25
                   PulseAudio 0.9.22
                   XMLRPC-C 1.18.2


Runtime information:
  system         : Linux i5-750 3.0.6-gentoo #2 SMP Tue Nov 8 18:50:05
CET 2011 i686

  libraries      : libsamplerate-0.1.7 (c) 2002-2008 Erik de Castro Lopo
                   libsndfile-1.0.25
                   Pulseaudio 0.9.22
^C
teun@i5-750 ~ $
Comment 1 Thomas Beierlein gentoo-dev 2011-12-16 14:16:40 UTC
Thanks for reporting Teun.

I can confirm the problem on one of my x86 systems. Another x86 and also one amd64 systems are running fine.

I will look into it.

Please provide your 'emerge --info' and do a revdep-rebuild to make sure the system is well.
Comment 2 Teun Blok 2011-12-17 11:46:42 UTC
teun@i5-750 ~ $ emerge --info
Portage 2.1.10.11 (default/linux/x86/10.0/desktop/gnome, gcc-4.5.3, glibc-2.13-r4, 3.0.6-gentoo i686)
=================================================================
System uname: Linux-3.0.6-gentoo-i686-Intel-R-_Core-TM-_i5_CPU_750_@_2.67GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 17 Dec 2011 09:30:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en nl de en_US"
MAKEOPTS="-j5 -l5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gdu gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv ipv6 java jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg mudflap nautilus ncurses networkmanager nls nouveau nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds pppd pulseaudio python qt3support qt4 readline scanner sdl session socialweb spell ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb v4l v4l2 vorbis x264 x86 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="virtuoso" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 stage tables krita karbon braindump" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en nl de en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

teun@i5-750 ~ $
Comment 3 Teun Blok 2011-12-17 15:09:17 UTC
Tom,
Another piece of info about debugging fldigi

teun@i5-750 ~ $ gdb fldigi 
GNU gdb (Gentoo 7.2 p1) 7.2
Copyright (C) 2010 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/fldigi...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/fldigi 
[Thread debugging using libthread_db enabled]
I: main: CPU speed factor=177.657977: setting slowcpu=false, sample_converter="Best Sinc Interpolator"

Program received signal SIGSEGV, Segmentation fault.
0xb794407a in ?? () from /lib/libc.so.6
(gdb) where
#0  0xb794407a in ?? () from /lib/libc.so.6
#1  0xb794746e in free () from /lib/libc.so.6
#2  0xb7f91d10 in png_free_default () from /usr/lib/libpng15.so.15
#3  0x0846d6e0 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)
Comment 4 Thomas Beierlein gentoo-dev 2011-12-18 08:17:14 UTC
Thanks for information Teun. 

In meantime I see the bug on some (but not all) of my amd64 machines too. It is not clear yet where the differences are. I have to look further.

The segfault appears in the fltk function 'load_system_icons'.
Comment 5 Teun Blok 2011-12-19 20:23:00 UTC
I tried the binary of fldigi (fldigi-3.21.33.bin) and it's the same error. See attachment.
Comment 6 Teun Blok 2011-12-19 20:25:00 UTC
Created attachment 296387 [details]
fatal error fldigi-3.21.33.bin
Comment 7 Teun Blok 2011-12-20 07:05:31 UTC
Correction: ignore comment 5 and 6
Comment 8 Thomas Beierlein gentoo-dev 2011-12-20 15:13:18 UTC
Sounds weird, but for me it crashes on machines where libreoffice is installed. 

Do you have that installed? If so can you please deinstall it and test fldigi again?
Comment 9 Teun Blok 2011-12-20 16:14:40 UTC
Tom,

It's really weird but that solved it!!!

I have unmerged libreoffice-3.4.3.2-r1 x86, did a emerge --depclean and that removed 34 packages and of course a revdep-rebuild (no actions taken). After that emerge --sync (<<accidentically), emerge -u -deep --newuse world, emerge --depclean and again a revdep-rebuild. No libreoffice anymore.... ;-) Then I emerged fldigi and 19x packages (deps). 
In a terminal:

teun@i5-750 ~ $ fldigi
I: main: CPU speed factor=177.956949: setting slowcpu=false, sample_converter="Best Sinc Interpolator"
I: testCommPorts: Found serial port /dev/ttyS0
I: testCommPorts: Found serial port /dev/ttyS1
I: testCommPorts: Found serial port /dev/ttyS2
I: testCommPorts: Found serial port /dev/ttyS3
teun@i5-750 ~ $ 

Xwindow Fldigi appeared and after filling in my name etc it works. Not yet tried on HF but this works now.

Now I will emerge libreoffice source again. This takes an hour, so early evening I will give you the results.

Teun
Comment 10 Teun Blok 2011-12-20 20:16:37 UTC
Tom,

First I emerged the source of libreoffice-3.3.4 x86 and after that Fldigi-3.21.33 still worked. I had to mark libreoffice (/etc/portage/package.mask: >app-office/libreoffice-3.3.4) for this. I was glad that I had a working Fldigi and Libreoffice. So I tried a update from libreoffice-3.3.4 to libreoffice-3.4.3.2-r1 x86 (also source, this took a while and I had to remove package.mask).
A you wrote before: Fldigi refused to work when libreoffice-3.4.3.2-r1 is installed. What now?

I have noticed that libreoffice-3.4.3.2-r1 has many deps, far more then libreoffice-3.3.4. Is it because of one of these deps?

I don't know, you?

TIA

Teun
Comment 11 Thomas Beierlein gentoo-dev 2011-12-20 21:03:13 UTC
Thanks for the final confirmation. 

Please see bug #394303 comment #4 for some more information. For the moment please stay with the 3.4.3 version of libreoffice.
Comment 12 Krellan 2011-12-27 00:39:23 UTC
I have the same problem, after a freshly compiled fldigi 3.21.33 from source.

Here's a more detailed backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff386e090 in _int_free (av=0x7ffff3b77e80, p=0xa9aae0) at malloc.c:4973
4973	malloc.c: No such file or directory.
	in malloc.c
(gdb) bt
#0  0x00007ffff386e090 in _int_free (av=0x7ffff3b77e80, p=0xa9aae0) at malloc.c:4973
#1  0x00007ffff387171c in *__GI___libc_free (mem=<optimized out>) at malloc.c:3738
#2  0x00007ffff79a5bdc in png_free_data (png_ptr=0xa9ddf0, info_ptr=0xa982c0, mask=32767, num=-1) at png.c:367
#3  0x00007ffff79a5e0c in png_info_destroy (png_ptr=0xa9ddf0, info_ptr=0xa982c0) at png.c:540
#4  0x00007ffff79ae179 in png_read_destroy (png_ptr=0xa9ddf0, info_ptr=<optimized out>, end_info_ptr=0x0) at pngread.c:1155
#5  0x00007ffff79ae38a in png_destroy_read_struct (png_ptr_ptr=0x7fffffff9a58, info_ptr_ptr=0x7fffffff9a50, end_info_ptr_ptr=0x0)
    at pngread.c:1092
#6  0x00007ffff7bd94fa in Fl_PNG_Image::Fl_PNG_Image (this=<optimized out>, png=<optimized out>) at Fl_PNG_Image.cxx:143
#7  0x00007ffff7bd234a in fl_check_images (
    name=0xa9e510 "/usr/share/icons/hicolor/16x16/mimetypes/libreoffice-oasis-spreadsheet-template.png", header=<optimized out>)
    at fl_images_core.cxx:86
#8  0x00007ffff72ff8d4 in Fl_Shared_Image::reload (this=0xa9e820) at Fl_Shared_Image.cxx:241
#9  0x00007ffff72ffe77 in Fl_Shared_Image::get (
    n=0x7fffffff9c90 "/usr/share/icons/hicolor/16x16/mimetypes/libreoffice-oasis-spreadsheet-template.png", W=0, H=0)
    at Fl_Shared_Image.cxx:387
#10 0x00007ffff7bd44dd in Fl_File_Icon::load_image (this=0xa9c080, ifile=0x7ffff3b77e80 "\001") at Fl_File_Icon2.cxx:353
#11 0x00007ffff7bd5267 in Fl_File_Icon::load (this=0xa9c080, 
    f=0x7fffffff9c90 "/usr/share/icons/hicolor/16x16/mimetypes/libreoffice-oasis-spreadsheet-template.png") at Fl_File_Icon2.cxx:116
#12 0x00007ffff7bd551c in load_kde_mimelnk (icondir=<optimized out>, filename=<optimized out>) at Fl_File_Icon2.cxx:959
#13 load_kde_icons (directory=<optimized out>, icondir=<optimized out>) at Fl_File_Icon2.cxx:818
#14 0x00007ffff7bd5355 in load_kde_icons (directory=<optimized out>, icondir=<optimized out>) at Fl_File_Icon2.cxx:817
#15 0x00007ffff7bd5a0d in Fl_File_Icon::load_system_icons () at Fl_File_Icon2.cxx:714
#16 0x0000000000491b25 in load_system_icons (this=<optimized out>) at ./fileselector/FL/Fl_Native_File_Chooser_FLTK.H:63
#17 Fl_Native_File_Chooser::Fl_Native_File_Chooser (this=0xa95900, val=0) at fileselector/Fl_Native_File_Chooser_FLTK.cxx:64
#18 0x0000000000492494 in FSEL (this=0xa94e90) at fileselector/fileselect.cxx:77
#19 FSEL::create () at fileselector/fileselect.cxx:63
#20 0x00000000004c5858 in main (argc=1, argv=0x7fffffffda38) at main.cxx:376

Still no luck fixing this bug.  I don't want to give up LibreOffice in order to use fldigi, is there a way to have both coexist?

Josh
Comment 13 Krellan 2011-12-27 00:46:17 UTC
Described in another bug, there's a workaround!

https://bugs.gentoo.org/show_bug.cgi?id=394303#c4

Just delete (or move out of the way) the 6 icon files listed in this comment, and then, fldigi started right up.

They are unimportant icons, so deleting them shouldn't be a problem (I was able to continue to run LibreOffice after removing these files, but your mileage may vary).

It's good to know there's a workaround.
Comment 14 Thomas Beierlein gentoo-dev 2012-01-05 16:19:22 UTC
Fixed with fldigi-3.21.35_pre1 if compiled for fltk-1.3.