<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>181248</bug_id>
          
          <creation_ts>2007-06-07 21:17 0000</creation_ts>
          <short_desc>sys-fs/davl-1.2.1 gdavl segfaults on amd64</short_desc>
          <delta_ts>2007-10-29 17:01:32 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>johannes-hirte@web.de</reporter>
          <assigned_to>amd64@gentoo.org</assigned_to>
          <cc>armin76@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>johannes-hirte@web.de</who>
            <bug_when>2007-06-07 21:17:52 0000</bug_when>
            <thetext>gdavl seems not to be 64bit ready. Compiled on amd64 I get this warnings:

gdavl.c: In function &apos;parse_tcnts&apos;:
gdavl.c:274: warning: comparison is always false due to limited range of data type
gdavl.c: In function &apos;output_tag_value&apos;:
gdavl.c:978: warning: comparison is always false due to limited range of data type
gdavl.c: In function &apos;chk_result_line&apos;:
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 &apos;prev_diff_chk&apos;:
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 &apos;on_input&apos;:
gdavl.c:1759: warning: passing argument 4 of &apos;g_io_channel_read&apos; from incompatible pointer type
gdavl.c: In function &apos;fdReadToGstr&apos;:
gdavl.c:1842: warning: field precision should have type &apos;int&apos;, but argument 3 has type &apos;ssize_t&apos;
if.c: In function &apos;get_main_menu&apos;:
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 &apos;on_input&apos;:
gdavl.c:1759: warning: passing argument 4 of &apos;g_io_channel_read&apos; from incompatible pointer type

The resulting 32bit app works fine.

Reproducible: Always</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-06-07 21:19:49 0000</bug_when>
            <thetext>I don&apos;t anything like gdavl in the official tree.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>johannes-hirte@web.de</who>
            <bug_when>2007-06-07 21:28:41 0000</bug_when>
            <thetext>gdavl is part of sys-fs/davl which is in portage</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rane@gentoo.org</who>
            <bug_when>2007-06-08 01:02:25 0000</bug_when>
            <thetext>He&apos;s right, i have the same problem.

[~] $ gdavl 
Segmentation fault

[~] $ emerge info
*** Deprecated use of action &apos;info&apos;, use &apos;--info&apos; 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=&quot;amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;x86_64-pc-linux-gnu&quot;
CFLAGS=&quot;-march=athlon64 -O2 -pipe -msse3&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo&quot;
CXXFLAGS=&quot;-march=athlon64 -O2 -pipe -msse3&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;distlocks metadata-transfer parallel-fetch sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;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/&quot;
LANG=&quot;en_GB.UTF-8&quot;
LC_ALL=&quot;en_GB.UTF-8&quot;
LINGUAS=&quot;en_GB pl&quot;
MAKEOPTS=&quot;-j5 -s&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--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-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;cvs://rane@cvs.gentoo.org:/var/cvsroot&quot;
USE=&quot;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&quot; ALSA_CARDS=&quot;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&quot; ALSA_PCM_PLUGINS=&quot;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&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;en_GB pl&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;nvidia&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>togge.gentoo@gmail.com</who>
            <bug_when>2007-06-23 18:34:34 0000</bug_when>
            <thetext>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 &quot;GtkItemFactoryEntry&quot; objects that declare the callback field as &quot;guint&quot; == &quot;unsigned int&quot;.
Unfortunately I don&apos;t know how to fix this.

The warnings seems to come from the use of ULONG_MAX which isn&apos;t the correct size on != 32bit systems.

armin: Hope I didn&apos;t do anything wrong in adding you to CC.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-10-08 14:00:38 0000</bug_when>
            <thetext>I guess the keyword should be dropped, then.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>welp@gentoo.org</who>
            <bug_when>2007-10-29 17:01:32 0000</bug_when>
            <thetext>Dropped keyword. armin76 says on IRC that this was never meant for amd64, so *shrug*</thetext>
          </long_desc>
      
    </bug>

</bugzilla>