gdavl seems not to be 64bit ready. Compiled on amd64 I get this warnings: gdavl.c: In function 'parse_tcnts': gdavl.c:274: warning: comparison is always false due to limited range of data type gdavl.c: In function 'output_tag_value': gdavl.c:978: warning: comparison is always false due to limited range of data type gdavl.c: In function 'chk_result_line': gdavl.c:1553: warning: comparison is always false due to limited range of data type gdavl.c:1577: warning: large integer implicitly truncated to unsigned type gdavl.c:1580: warning: comparison is always false due to limited range of data type gdavl.c: In function 'prev_diff_chk': gdavl.c:1685: warning: comparison is always false due to limited range of data type gdavl.c:1685: warning: comparison is always true due to limited range of data type gdavl.c:1687: warning: comparison is always true due to limited range of data type gdavl.c:1687: warning: comparison is always false due to limited range of data type gdavl.c:1691: warning: comparison is always false due to limited range of data type gdavl.c:1691: warning: comparison is always false due to limited range of data type gdavl.c: In function 'on_input': gdavl.c:1759: warning: passing argument 4 of 'g_io_channel_read' from incompatible pointer type gdavl.c: In function 'fdReadToGstr': gdavl.c:1842: warning: field precision should have type 'int', but argument 3 has type 'ssize_t' if.c: In function 'get_main_menu': if.c:52: warning: cast from pointer to integer of different size Trying to run it results in a segfault. Compiled with -m32 there is only one warning left: gdavl.c: In function 'on_input': gdavl.c:1759: warning: passing argument 4 of 'g_io_channel_read' from incompatible pointer type The resulting 32bit app works fine. Reproducible: Always
I don't anything like gdavl in the official tree.
gdavl is part of sys-fs/davl which is in portage
He's right, i have the same problem. [~] $ gdavl Segmentation fault [~] $ emerge info *** Deprecated use of action 'info', use '--info' instead Portage 2.1.2.9 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r3, 2.6.19-gentoo-r5 x86_64) ================================================================= System uname: 2.6.19-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ Gentoo Base System release 1.12.10 Timestamp of tree: Thu, 07 Jun 2007 23:50:01 +0000 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -msse3" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=athlon64 -O2 -pipe -msse3" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.zie.pg.gda.pl ftp://mirror.icis.pcz.pl/gentoo/ http://gentoo.prz.rzeszow.pl http://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.mneisen.org/" LANG="en_GB.UTF-8" LC_ALL="en_GB.UTF-8" LINGUAS="en_GB pl" MAKEOPTS="-j5 -s" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="cvs://rane@cvs.gentoo.org:/var/cvsroot" USE="X aac acl alsa amd64 automount berkdb bitmap-fonts cdr cli cracklib crypt cups curl dvd firefox fortran gdbm gif gnome gpm iconv isdnlog jpeg kde libg++ midi mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre perl png ppds pppd python qt3 qt4 rar readline reflection session spl ssl tcpd truetype-fonts type1-fonts unicode xine xorg xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB pl" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
This seems to be the SIGSEV cause: in src/gdavl/if.c:52 menu_items[i].callback_action = (guint)p; menu_items is a list of "GtkItemFactoryEntry" objects that declare the callback field as "guint" == "unsigned int". Unfortunately I don't know how to fix this. The warnings seems to come from the use of ULONG_MAX which isn't the correct size on != 32bit systems. armin: Hope I didn't do anything wrong in adding you to CC.
I guess the keyword should be dropped, then.
Dropped keyword. armin76 says on IRC that this was never meant for amd64, so *shrug*