Package: zeroconf
Version: 0.6.1-1
Severity: important

zeroconf gets Bus Error on sparc. Default binary package is without debug info
so gdb didn't find anything. So I recompiled the package with debug and got
some crash info (below). It seems that &p.target_ip is not aligned to 32 bits
and this causes alignment trap. However, I fail to see why memcpy() needs
aligned adresses.

I'm using libc6-sparcv9 V9-optimized libc on Ultrasparc II (Sun Ultra 5 to be
exact), this might be relevant. Also, the gcc I recompiled the program is
4.0.2-8 package. Kernel is 2.6.16-rc2.

mandariin:~# /usr/sbin/zeroconf -i eth0
Bus error (core dumped)
mandariin:~# !gdb
gdb /usr/sbin/zeroconf core
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-linux-gnu"...Using host libthread_db library 
"/lib/v9/libthread_db.so.1".

Core was generated by `/usr/sbin/zeroconf -i eth0'.
Program terminated with signal 10, Bus error.
Reading symbols from /lib/v9/libc.so.6...done.
Loaded symbols for /lib/v9/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  arp (fd=-274875540, saddr=0x72, op=<value optimized out>, 
source_addr=0xef9dbc7a, source_ip={s_addr = 0},
    target_addr=0x225d8, target_ip={s_addr = 4020091952}) at zeroconf.c:140
140       memcpy(&p.target_ip, &target_ip, sizeof(p.target_ip));
(gdb) p target_ip
$1 = {s_addr = 4020091952}
(gdb) p p.target_ip
$2 = {s_addr = 0}
(gdb) p sizeof(p.target_ip)
$3 = 4
(gdb) bt
#0  arp (fd=-274875540, saddr=0x72, op=<value optimized out>, 
source_addr=0xef9dbc7a, source_ip={s_addr = 0},
    target_addr=0x225d8, target_ip={s_addr = 4020091952}) at zeroconf.c:140
#1  0x0001184c in main (argc=<value optimized out>, argv=<value optimized out>) 
at zeroconf.c:497
(gdb) p &target_ip
$4 = (struct in_addr *) 0xef9dbc0c
(gdb) p &p.target_ip
$5 = (struct in_addr *) 0xef9dbb92


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: sparc (sparc64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-rc2
Locale: LANG=et_EE, LC_CTYPE=et_EE (charmap=ISO-8859-15)

Versions of packages zeroconf depends on:
ii  ifupdown                      0.6.7      high level tools to configure netw
ii  iproute                       20051007-3 Professional tools to control the 
ii  libc6                         2.3.5-12   GNU C Library: Shared libraries an

zeroconf recommends no packages.

-- debconf-show failed


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to