FS#20161 - [bluez] service start fails

Attached to Project: Arch Linux
Opened by Roman Kosenko (kite) - Tuesday, 13 July 2010, 13:53 GMT
Last edited by Andrea Scarpino (BaSh) - Tuesday, 13 July 2010, 18:37 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description: in new version of bluez (4.68-1) I got following, while previous version (4.67-1) works fine...
# /etc/rc.d/bluetooth restart
:: Stopping bluetooth subsystem: pand dund rfcomm hidd bluetoothd [DONE]
:: Starting bluetooth subsystem: bluetoothd*** glibc detected *** /usr/sbin/bluetoothd: double free or corruption (!prev): 0x00007f0217f28100 *** [BUSY]
======= Backtrace: =========
/lib/libc.so.6(+0x716b6)[0x7f0215af86b6]
/lib/libc.so.6(cfree+0x6c)[0x7f0215afd3ac]
/usr/lib/libglib-2.0.so.0(g_option_group_free+0x2c)[0x7f021648b75c]
/usr/lib/libglib-2.0.so.0(g_option_context_free+0x30)[0x7f021648c8a0]
/usr/sbin/bluetoothd(+0x36933)[0x7f0216b94933]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f0215aa5c4d]
/usr/sbin/bluetoothd(+0xe339)[0x7f0216b6c339]
======= Memory map: ========
7f0210000000-7f0210021000 rw-p 00000000 00:00 0
7f0210021000-7f0214000000 ---p 00000000 00:00 0
7f0215434000-7f0215449000 r-xp 00000000 09:01 3715 /usr/lib/libgcc_s.so.1
7f0215449000-7f0215649000 ---p 00015000 09:01 3715 /usr/lib/libgcc_s.so.1
7f0215649000-7f021564a000 rw-p 00015000 09:01 3715 /usr/lib/libgcc_s.so.1
7f021564a000-7f0215651000 r-xp 00000000 09:01 131163 /lib/librt-2.12.so
7f0215651000-7f0215850000 ---p 00007000 09:01 131163 /lib/librt-2.12.so
7f0215850000-7f0215851000 r--p 00006000 09:01 131163 /lib/librt-2.12.so
7f0215851000-7f0215852000 rw-p 00007000 09:01 131163 /lib/librt-2.12.so
7f0215852000-7f0215887000 r-xp 00000000 09:01 131323 /lib/libpcre.so.0.0.1
7f0215887000-7f0215a86000 ---p 00035000 09:01 131323 /lib/libpcre.so.0.0.1
7f0215a86000-7f0215a87000 rw-p 00034000 09:01 131323 /lib/libpcre.so.0.0.1
7f0215a87000-7f0215bda000 r-xp 00000000 09:01 131182 /lib/libc-2.12.so
7f0215bda000-7f0215dd9000 ---p 00153000 09:01 131182 /lib/libc-2.12.so
7f0215dd9000-7f0215ddd000 r--p 00152000 09:01 131182 /lib/libc-2.12.so
7f0215ddd000-7f0215dde000 rw-p 00156000 09:01 131182 /lib/libc-2.12.so
7f0215dde000-7f0215de3000 rw-p 00000000 00:00 0
7f0215de3000-7f0215de5000 r-xp 00000000 09:01 131206 /lib/libdl-2.12.so
7f0215de5000-7f0215fe5000 ---p 00002000 09:01 131206 /lib/libdl-2.12.so
7f0215fe5000-7f0215fe6000 r--p 00002000 09:01 131206 /lib/libdl-2.12.so
7f0215fe6000-7f0215fe7000 rw-p 00003000 09:01 131206 /lib/libdl-2.12.so
7f0215fe7000-7f0215ffe000 r-xp 00000000 09:01 131180 /lib/libpthread-2.12.so
7f0215ffe000-7f02161fe000 ---p 00017000 09:01 131180 /lib/libpthread-2.12.so
7f02161fe000-7f02161ff000 r--p 00017000 09:01 131180 /lib/libpthread-2.12.so
7f02161ff000-7f0216200000 rw-p 00018000 09:01 131180 /lib/libpthread-2.12.so
7f0216200000-7f0216204000 rw-p 00000000 00:00 0
7f0216204000-7f0216242000 r-xp 00000000 09:01 3368 /usr/lib/libdbus-1.so.3.4.0
7f0216242000-7f0216441000 ---p 0003e000 09:01 3368 /usr/lib/libdbus-1.so.3.4.0
7f0216441000-7f0216442000 r--p 0003d000 09:01 3368 /usr/lib/libdbus-1.so.3.4.0
7f0216442000-7f0216443000 rw-p 0003e000 09:01 3368 /usr/lib/libdbus-1.so.3.4.0
7f0216443000-7f0216522000 r-xp 00000000 09:01 3446 /usr/lib/libglib-2.0.so.0.2400.1
7f0216522000-7f0216721000 ---p 000df000 09:01 3446 /usr/lib/libglib-2.0.so.0.2400.1
7f0216721000-7f0216723000 rw-p 000de000 09:01 3446 /usr/lib/libglib-2.0.so.0.2400.1
7f0216723000-7f021673b000 r-xp 00000000 09:01 23070 /usr/lib/libbluetooth.so.3.9.0
7f021673b000-7f021693a000 ---p 00018000 09:01 23070 /usr/lib/libbluetooth.so.3.9.0
7f021693a000-7f021693d000 rw-p 00017000 09:01 23070 /usr/lib/libbluetooth.so.3.9.0
7f021693d000-7f021695b000 r-xp 00000000 09:01 131205 /lib/ld-2.12.so
7f0216b36000-7f0216b3b000 rw-p 00000000 00:00 0
7f0216b5a000-7f0216b5b000 rw-p 00000000 00:00 0
7f0216b5b000-7f0216b5c000 r--p 0001e000 09:01 131205 /lib/ld-2.12.so
7f0216b5c000-7f0216b5d000 rw-p 0001f000 09:01 131205 /lib/ld-2.12.so
7f0216b5d000-7f0216b5e000 rw-p 00000000 00:00 0
7f0216b5e000-7f0216bce000 r-xp 00000000 09:01 21174 /usr/sbin/bluetoothd
7f0216dce000-7f0216dd4000 rw-p 00070000 09:01 21174 /usr/sbin/bluetoothd
7f0217f28000-7f0217f49000 rw-p 00000000 00:00 0 [heap]
7fff1e48b000-7fff1e4ac000 rw-p 00000000 00:00 0 [stack]
7fff1e5ff000-7fff1e600000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
/etc/rc.d/bluetooth: line 35: 3482 Aborted (core dumped) $DAEMON_EXEC
[DONE]

And take attention on the last line - there are no any processing of exit code in init script.
I have last versions of all packages and default config.
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Tuesday, 13 July 2010, 18:37 GMT
Reason for closing:  Fixed
Additional comments about closing:  downgraded to bluez 4.67
Comment by Ionut Biru (wonder) - Tuesday, 13 July 2010, 14:32 GMT
i confirm this
and running on gdb with proper compilations flags:

Temporary breakpoint 1 at 0x36850: file src/main.c, line 364.
Starting program: /usr/sbin/bluetoothd
[Thread debugging using libthread_db enabled]

Temporary breakpoint 1, main (argc=1, argv=0x7fffffffeb98) at src/main.c:364
364 src/main.c: No such file or directory.
in src/main.c
(gdb) bt full
#0 main (argc=1, argv=0x7fffffffeb98) at src/main.c:364
context = <value optimized out>
err = 0x7ffff7fe44d0
sa = {__sigaction_handler = {sa_handler = 0, sa_sigaction = 0}, sa_mask = {__val = {140737353671840, 140737488349824, 140737488349848, 8589929023,
1, 0, 140737353690442, 0, 5044973641, 0, 0, 140737488350120, 1970169159, 10, 140737354024144, 0}}, sa_flags = -134627789, sa_restorer = 0}
config = 0x7ffff7f9d310
__FUNCTION__ = "main"
Comment by Ionut Biru (wonder) - Tuesday, 13 July 2010, 14:36 GMT
seems that the developers know about this issue and they are preparing 4.69 release.

http://marc.info/?l=linux-bluetooth&m=127902175301776&w=2
Comment by Andreas Radke (AndyRTR) - Tuesday, 13 July 2010, 16:16 GMT
bluez 4.67 is still working well. we should probably downgrade for now.

Loading...