2006-08-22 20:08:59

by sean

[permalink] [raw]
Subject: [Bluez-devel] recursive locking on pairing: 2.6.18-rc4

I'm trying to pair my nokia 770 with my desktop which is
running fc6t2, kernel-2.6.18-rc4. bluez-libs-3.0. Using a
zonet usb dongle.

The 770 returns a "no services" message. On the desktop,
/var/log/messages:

Aug 22 15:41:57 localhost hcid[24880]: pin_code_request
(sba=00:02:72:C4:26:F1, dba=00:12:37:46:DB:31)
Aug 22 15:41:57 localhost hcid[24880]: link_key_notify
(sba=00:02:72:C4:26:F1, dba=00:12:37:46:DB:31)
Aug 22 15:41:59 localhost kernel:
Aug 22 15:41:59 localhost kernel:
=============================================
Aug 22 15:41:59 localhost kernel: [ INFO: possible recursive
locking detected ]
Aug 22 15:41:59 localhost kernel: 2.6.17-1.2573.fc6 #1
Aug 22 15:41:59 localhost kernel:
---------------------------------------------
Aug 22 15:41:59 localhost kernel: sdpd/24884 is trying to
acquire lock:
Aug 22 15:41:59 localhost kernel:
(sk_lock-AF_BLUETOOTH){--..}, at: [<ffffffff885622b8>]
bt_accept_dequeue+0x37/0xfa [bluetooth]
Aug 22 15:41:59 localhost kernel:
Aug 22 15:41:59 localhost kernel: but task is already
holding lock:
Aug 22 15:41:59 localhost kernel:
(sk_lock-AF_BLUETOOTH){--..}, at: [<ffffffff88584464>]
l2cap_sock_accept+0x52/0x162 [l2cap]
Aug 22 15:41:59 localhost kernel:
Aug 22 15:41:59 localhost kernel: other info that might help
us debug this:
Aug 22 15:41:59 localhost kernel: 1 lock held by sdpd/24884:
Aug 22 15:41:59 localhost kernel: #0:
(sk_lock-AF_BLUETOOTH){--..}, at: [<ffffffff88584464>]
l2cap_sock_accept+0x52/0x162 [l2cap]
Aug 22 15:41:59 localhost kernel:
Aug 22 15:41:59 localhost kernel: stack backtrace:
Aug 22 15:41:59 localhost kernel:
Aug 22 15:41:59 localhost kernel: Call Trace:
Aug 22 15:41:59 localhost kernel: [<ffffffff8026e8fd>]
show_trace+0xae/0x319
Aug 22 15:41:59 localhost kernel: [<ffffffff8026eb7d>]
dump_stack+0x15/0x17
Aug 22 15:41:59 localhost kernel: [<ffffffff802a8278>]
__lock_acquire+0x135/0xa64
Aug 22 15:41:59 localhost kernel: [<ffffffff802a914a>]
lock_acquire+0x4b/0x69
Aug 22 15:41:59 localhost kernel: [<ffffffff802360ca>]
lock_sock+0xd5/0xe7
Aug 22 15:41:59 localhost kernel: [<ffffffff885622b8>]
:bluetooth:bt_accept_dequeue+0x37/0xfa
Aug 22 15:41:59 localhost kernel: [<ffffffff88584528>]
:l2cap:l2cap_sock_accept+0x116/0x162
Aug 22 15:41:59 localhost kernel: [<ffffffff8041f9cd>]
sys_accept+0x102/0x1af
Aug 22 15:41:59 localhost kernel: [<ffffffff8026058e>]
system_call+0x7e/0x83
Aug 22 15:41:59 localhost kernel: DWARF2 unwinder stuck at
system_call+0x7e/0x83
Aug 22 15:41:59 localhost kernel: Leftover inexact backtrace:
Aug 22 15:41:59 localhost kernel:

sean


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2006-08-22 22:03:39

by sean

[permalink] [raw]
Subject: Re: [Bluez-devel] recursive locking on pairing: 2.6.18-rc4

Johan Hedberg wrote:
> Hi sean,
>
> On Tue, Aug 22, 2006, sean wrote:
>
>>I'm trying to pair my nokia 770 with my desktop which is
>>running fc6t2, kernel-2.6.18-rc4. bluez-libs-3.0. Using a
>>zonet usb dongle.
>>
>>The 770 returns a "no services" message. On the desktop,
>>/var/log/messages:
>
>
> I can't say anything about the desktop side problems, but the reason you
> get "no services" is that the 770 will only pair with devices that have
> either a Dial-up Networking (DUN) or OBEX File Transfer profile service
> records (or both) in its SDP server. So if you e.g. do a "sdptool add
> DUN" and "sdptool add FTP" on the desktop side you shouldn't get that
> error message.
>
> Johan
>

That was it. Once I sdptool add FTP , pairing succeeded,
without any kernel error messages.

sean


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-08-22 21:10:38

by Johan Hedberg

[permalink] [raw]
Subject: Re: [Bluez-devel] recursive locking on pairing: 2.6.18-rc4

Hi sean,

On Tue, Aug 22, 2006, sean wrote:
> I'm trying to pair my nokia 770 with my desktop which is
> running fc6t2, kernel-2.6.18-rc4. bluez-libs-3.0. Using a
> zonet usb dongle.
>
> The 770 returns a "no services" message. On the desktop,
> /var/log/messages:

I can't say anything about the desktop side problems, but the reason you
get "no services" is that the 770 will only pair with devices that have
either a Dial-up Networking (DUN) or OBEX File Transfer profile service
records (or both) in its SDP server. So if you e.g. do a "sdptool add
DUN" and "sdptool add FTP" on the desktop side you shouldn't get that
error message.

Johan

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel