2006-06-14 12:24:39

by jblack

[permalink] [raw]
Subject: [Bluez-users] sdpd reliably crashes when scanned by Garmin iQue M5

Hello all!

I'm having a bit of a problem with sdpd (actually, have had for about two
yes). Each time I scan my laptop with my Garmin iQueue M5 (pocketpc), sdpd
seems to lock up. This problem doesn't show itself when I scan outwards
from the laptop to other bluetooth devices. obexftp seems to also work
fine. I can even connect to the 3G network over my cell phone to get on
the internet. But any time I launch BTExplorer and try and scan my laptop,
sdpd goes to 100% cpu usage.

System: Ubuntu Dapper
bluez-utils version: bluez-utils_2.24-0ubuntu6_i386.deb
Laptop: Sony Vaio VGN-T350P w/ Builtin Bluetooth
Kernel: 2.6.15-23-686 #1 SMP PREEMPT

I think the device is an internal usb device identified as:
Bus 003 Device 002: ID 044e:3007 Alps Electric Co., Ltd
(bDeviceProtocol is Bluetooth and the iProduct is "UGX"


Here is a systace of the last thing sdpd did before it ended up in a loop:

Process 5854 attached - interrupt to quit

select(3, [0 1 2], NULL, NULL, NULL) = 1 (in [0])
accept(0, {sa_family=AF_BLUETOOTH,
sa_data="\1\0E\2\1O\5\0\364\267\r\222\4\10"}, [10]) = 4
select(5, [0 1 2 4], NULL, NULL, NULL) = 1 (in [4])
recv(4, "\6\0\36\0\33", 5, MSG_PEEK) = 5
recv(4, "\6\0\36\0\0335\3\31\1\0\7\3505\21\t\0\1\t\0\4\t\0\t\t\0"..., 32,
0) = 32
getpeername(4, {sa_family=AF_BLUETOOTH,
sa_data="\1\0E\2\1O\5\0\364\267\r\222\4\10"}, [10]) = 0
getsockopt(4, SOL_TCP, TCP_NODELAY, "\0\10\240\2\377\377\0\0", [8]) = 0
getsockname(4, {sa_family=AF_BLUETOOTH,
sa_data="\1\0\335\320(J\1\0\0\10\240\2\377\377"}, [10]) = 0
brk(0x8090000) = 0x8090000
mmap2(NULL, 200704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7e18000
brk(0x8080000) = 0x8080000
mremap(0xb7e18000, 200704, 200704, MREMAP_MAYMOVE) = 0xb7e18000
mremap(0xb7e18000, 200704, 200704, MREMAP_MAYMOVE) = 0xb7e18000
mremap(0xb7e18000, 200704, 204800, MREMAP_MAYMOVE) = 0xb7de6000
mremap(0xb7de6000, 204800, 204800, MREMAP_MAYMOVE) = 0xb7de6000
mremap(0xb7de6000, 204800, 204800, MREMAP_MAYMOVE) = 0xb7de6000
mremap(0xb7de6000, 204800, 204800, MREMAP_MAYMOVE) = 0xb7de6000
mremap(0xb7de6000, 204800, 208896, MREMAP_MAYMOVE) = 0xb7de6000
mremap(0xb7de6000, 208896, 208896, MREMAP_MAYMOVE) = 0xb7de6000
mremap(0xb7de6000, 208896, 208896, MREMAP_MAYMOVE) = 0xb7de6000
mremap(0xb7de6000, 208896, 208896, MREMAP_MAYMOVE) = 0xb7de6000
Process 5854 detached


Thanks in advance and Regards,
James


--
My home page: <a href="http://jblack.linuxguru.net">James Blackwell</a>
Gnupg 06357400 F-print AAE4 8C76 58DA 5902 761D 247A 8A55 DA73 0635 7400


Attachments:
(No filename) (0.00 B)
(No filename) (0.00 B)
(No filename) (164.00 B)
Download all attachments

2006-06-17 10:24:16

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] sdpd reliably crashes when scanned by Garmin iQue M5

Hi James,

> I'm having a bit of a problem with sdpd (actually, have had for about two
> yes). Each time I scan my laptop with my Garmin iQueue M5 (pocketpc), sdpd
> seems to lock up. This problem doesn't show itself when I scan outwards
> from the laptop to other bluetooth devices. obexftp seems to also work
> fine. I can even connect to the 3G network over my cell phone to get on
> the internet. But any time I launch BTExplorer and try and scan my laptop,
> sdpd goes to 100% cpu usage.

we might have fixed that, but maybe we don't. Make sure that you run the
latest CVS version of bluez-libs and bluez-utils and start sdpd with gdb
in the foreground. If you see sdpd busy looping then stop it and get the
backtrace for it.

Regards

Marcel




_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users