FS#7556 - avahi-daemon segfaulting

Attached to Project: Arch Linux
Opened by Erwin Van de Velde (evdvelde) - Tuesday, 03 July 2007, 22:31 GMT
Last edited by Travis Willard (Cerebral) - Wednesday, 11 July 2007, 01:11 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Travis Willard (Cerebral)
Architecture i686
Severity High
Priority Normal
Reported Version 2007.05 Duke
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
avahi-daemon crashing on start with segfault

Additional info:
* package version(s): avahi 0.6.20-1, system up-to-date on 3rd of July



Steps to reproduce:
/etc/rc.d/avahi-daemon restart
or avahi-daemon -D

Backtrace in gdb:
(gdb) bt
#0 0xb7da96e2 in malloc_consolidate () from /lib/libc.so.6
#1 0xb7dab450 in _int_malloc () from /lib/libc.so.6
#2 0xb7dace47 in malloc () from /lib/libc.so.6
#3 0xb7dccee7 in __alloc_dir () from /lib/libc.so.6
#4 0xb7dccfd3 in opendir () from /lib/libc.so.6
#5 0xb7ef3732 in daemon_close_allv () from /usr/lib/libdaemon.so.0
#6 0xb7ef3932 in daemon_close_all () from /usr/lib/libdaemon.so.0
#7 0x0804e214 in ?? ()
#8 0xffffffff in ?? ()
#9 0x0805cde3 in ?? ()
#10 0x0000000a in ?? ()
#11 0x00000000 in ?? ()
This task depends upon

Closed by  Travis Willard (Cerebral)
Wednesday, 11 July 2007, 01:11 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in libdaemon-0.12-1
Comment by Andreas Radke (AndyRTR) - Tuesday, 03 July 2007, 23:27 GMT
what architecture?
Comment by Erwin Van de Velde (evdvelde) - Wednesday, 04 July 2007, 07:54 GMT
Sorry, forgot that: i686
Comment by Andreas Radke (AndyRTR) - Wednesday, 04 July 2007, 10:39 GMT
x86_64 works here. no segfault.
Comment by Travis Willard (Cerebral) - Wednesday, 04 July 2007, 14:58 GMT
I'm at work now - I'll see what I can find when I get home.
Comment by Travis Willard (Cerebral) - Sunday, 08 July 2007, 13:05 GMT
Try as I might, I can't reproduce this on my own system. It seems your crash is happening in libdaemon - what version of that do you have installed?

$ pacman -Q avahi libdaemon
avahi 0.6.20-1
libdaemon 0.11-1

Comment by hurne (hurne) - Monday, 09 July 2007, 11:46 GMT
I'm also experiencing this bug on i686:

(gdb) run
Starting program: /usr/sbin/avahi-daemon
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1210325312 (LWP 8391)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210325312 (LWP 8391)]
0xb7e3c6e2 in malloc_consolidate () from /lib/libc.so.6
(gdb) bt
#0 0xb7e3c6e2 in malloc_consolidate () from /lib/libc.so.6
#1 0xb7e3e450 in _int_malloc () from /lib/libc.so.6
#2 0xb7e3fe47 in malloc () from /lib/libc.so.6
#3 0xb7e5fee7 in __alloc_dir () from /lib/libc.so.6
#4 0xb7e5ffd3 in opendir () from /lib/libc.so.6
#5 0xb7f30732 in daemon_close_allv () from /usr/lib/libdaemon.so.0
#6 0xb7f30932 in daemon_close_all () from /usr/lib/libdaemon.so.0
#7 0x0804e214 in ?? ()
#8 0xffffffff in ?? ()
#9 0x0805cdfe in ?? ()
#10 0x0000000a in ?? ()
#11 0x00000000 in ?? ()


$ pacman -Q avahi libdaemon
avahi 0.6.20-1
libdaemon 0.11-1
Comment by Travis Willard (Cerebral) - Monday, 09 July 2007, 12:12 GMT
Hm. I still can't reproduce. I've uploaded a package with symbols to http://www.archlinux.org/~travis/avahi-0.6.20-2-i686.pkg.tar.gz - install that and get a stack trace without all those question marks. ;) I'll see if I can track down any solution - it might be worth it for you guys to directly ask the avahi people about this.
Comment by Damjan Georgievski (damjan) - Tuesday, 10 July 2007, 08:58 GMT
This is a known bug in libdaemon-0.11, the patch is here
http://beast.luon.net/~sjoerd/libdaemon.patch
Comment by Travis Willard (Cerebral) - Tuesday, 10 July 2007, 12:19 GMT
Thanks damjan - I've uploaded libdaemon-0.11-2 to extra. Can those of you with this bug download it and test?
Comment by Damjan Georgievski (damjan) - Tuesday, 10 July 2007, 13:41 GMT
confirmed that it (libdaemon-0.11-2) works... BTW a new libdaemon release is expected soon

Loading...