Hi all,
I have been using a ARM device with 512MB ram and flash to send messages via Bluetooth to everyone in the proximity. I am doing this with OpenProximity (Python) and it worked for the last week, it did stop for two times but since I didn't have time to find the cause, I just rebooted it (Windows style
) and it worked again, but suddenly it stopped working again last Saturday.
When I did /etc/init.d/bluetooth restart it did not say it failed or something, but when I did /etc/init.d/bluetooth status it said "bluetooth is not running ... failed!".
This is what I got in the syslog:
Code:
Apr 27 13:52:45 debian bluetoothd[31243]: Bluetooth daemon 4.60
Apr 27 13:52:45 debian bluetoothd[31243]: Starting SDP server
Apr 27 13:52:45 debian bluetoothd[31243]: Starting experimental netlink support
Apr 27 13:52:45 debian bluetoothd[31243]: Failed to find Bluetooth netlink family
Apr 27 13:52:45 debian bluetoothd[31243]: Failed to init netlink plugin
Apr 27 13:52:45 debian bluetoothd[31243]: Can't create GN bridge
Apr 27 13:52:45 debian bluetoothd[31243]: HCI dev 0 registered
Apr 27 13:52:45 debian bluetoothd[31243]: HCI dev 0 up
Apr 27 13:52:45 debian bluetoothd[31243]: Starting security manager 0
Apr 27 13:52:45 debian bluetoothd[31243]: Parsing /etc/bluetooth/serial.conf failed: No such file or directory
Now this is not much help, so I started it manually with "bluetoothd -n -d" and I got a segfault:
Code:
bluetoothd[31343]: Bluetooth daemon 4.63
bluetoothd[31343]: Enabling debug information
bluetoothd[31343]: parsing main.conf
bluetoothd[31343]: discovto=0
bluetoothd[31343]: pairto=0
bluetoothd[31343]: pageto=8192
bluetoothd[31343]: name=%h-%d
bluetoothd[31343]: class=0x000100
bluetoothd[31343]: discov_interval=0
bluetoothd[31343]: Key file does not have key 'DeviceID'
bluetoothd[31343]: Starting SDP server
bluetoothd[31343]: Loading builtin plugins
bluetoothd[31343]: Loading audio plugin
bluetoothd[31343]: Loading input plugin
bluetoothd[31343]: Loading serial plugin
bluetoothd[31343]: Loading network plugin
bluetoothd[31343]: Loading service plugin
bluetoothd[31343]: Loading hciops plugin
bluetoothd[31343]: Loading hal plugin
bluetoothd[31343]: Loading storage plugin
bluetoothd[31343]: Loading plugins /usr/local/lib/bluetooth/plugins
bluetoothd[31343]: register_interface: path /org/bluez/31343/any
bluetoothd[31343]: Registered interface org.bluez.Service on path /org/bluez/31343/any
bluetoothd[31343]: /etc/bluetooth/network.conf: Key file does not have key 'Disable'
bluetoothd[31343]: /etc/bluetooth/network.conf: Key file does not have key 'DisableSecurity'
bluetoothd[31343]: /etc/bluetooth/network.conf: Key file does not have key 'Interface'
bluetoothd[31343]: /etc/bluetooth/network.conf: Key file does not have key 'Interface'
bluetoothd[31343]: /etc/bluetooth/network.conf: Key file does not have key 'Interface'
bluetoothd[31343]: Config options: InterfacePrefix=bnep%d, PANU_Script=(null), GN_Script=(null), NAP_Script=(null), GN_Interface=pan0, NAP_Interface=pan1, Security=true
bluetoothd[31343]: Can't create GN bridge
bluetoothd[31343]: input.conf: Key file does not have key 'IdleTimeout'
bluetoothd[31343]: Unix socket created: 9
bluetoothd[31343]: audio.conf: Key file does not have key 'AutoConnect'
bluetoothd[31343]: Telephony plugin initialized
bluetoothd[31343]: HFP AG features: "Ability to reject a call" "Enhanced call status" "Extended Error Result Codes"
bluetoothd[31343]: HCI dev 0 registered
bluetoothd[31343]: child 31344 forked
bluetoothd[31343]: btd_adapter_ref(0x2a065290): ref=1
bluetoothd[31343]: HCI dev 0 up
bluetoothd[31343]: Starting security manager 0
bluetoothd[31343]: Changing Major/Minor class to 0x000100
bluetoothd[31343]: Stopping Inquiry at adapter startup
bluetoothd[31343]: register_interface: path /org/bluez/31343/hci0
bluetoothd[31343]: Registered interface org.bluez.Service on path /org/bluez/31343/hci0
bluetoothd[31343]: network_server_probe: path /org/bluez/31343/hci0
bluetoothd[31343]: btd_adapter_ref(0x2a065290): ref=2
bluetoothd[31343]: Adding record with handle 0x10000
bluetoothd[31343]: Record pattern UUID 0000000f-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00001115-0000-1000-8000-00805f9
bluetoothd[31343]: register_server_record: got record id 0x10000
bluetoothd[31343]: Registered interface org.bluez.NetworkPeer on path /org/bluez/31343/hci0
bluetoothd[31343]: network_server_probe: path /org/bluez/31343/hci0
bluetoothd[31343]: Adding record with handle 0x10001
bluetoothd[31343]: Record pattern UUID 0000000f-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00001117-0000-1000-8000-00805f9
bluetoothd[31343]: register_server_record: got record id 0x10001
bluetoothd[31343]: Registered interface org.bluez.NetworkHub on path /org/bluez/31343/hci0
bluetoothd[31343]: network_server_probe: path /org/bluez/31343/hci0
bluetoothd[31343]: Adding record with handle 0x10002
bluetoothd[31343]: Record pattern UUID 0000000f-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00001116-0000-1000-8000-00805f9
bluetoothd[31343]: register_server_record: got record id 0x10002
bluetoothd[31343]: Registered interface org.bluez.NetworkRouter on path /org/bluez/31343/hci0
bluetoothd[31343]: proxy_probe: path /org/bluez/31343/hci0
bluetoothd[31343]: btd_adapter_ref(0x2a065290): ref=3
bluetoothd[31343]: Registered interface org.bluez.SerialProxyManager on path /org/bluez/31343/hci0
bluetoothd[31343]: Parsing /etc/bluetooth/serial.conf failed: No such file or directory
bluetoothd[31343]: btd_adapter_ref(0x2a065290): ref=4
bluetoothd[31343]: headset_server_probe: path /org/bluez/31343/hci0
bluetoothd[31343]: btd_adapter_ref(0x2a065290): ref=5
bluetoothd[31343]: audio_adapter_ref(0x2a066e20): ref=1
bluetoothd[31343]: audio.conf: Key file does not have key 'Master'
bluetoothd[31343]: Adding record with handle 0x10003
bluetoothd[31343]: Record pattern UUID 00000003-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00001108-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00001112-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00001203-0000-1000-8000-00805f9
bluetoothd[31343]: audio.conf: Key file does not have key 'SCORouting'
bluetoothd[31343]: Adding record with handle 0x10004
bluetoothd[31343]: Record pattern UUID 00000003-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 0000111e-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 0000111f-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00001203-0000-1000-8000-00805f9
bluetoothd[31343]: a2dp_server_probe: path /org/bluez/31343/hci0
bluetoothd[31343]: audio_adapter_ref(0x2a066e20): ref=2
bluetoothd[31343]: audio.conf: Key file does not have key 'Enable'
bluetoothd[31343]: audio.conf: Key file does not have key 'Disable'
bluetoothd[31343]: audio.conf: Key file does not have group 'A2DP'
bluetoothd[31343]: audio.conf: Key file does not have group 'A2DP'
bluetoothd[31343]: audio.conf: Key file does not have group 'A2DP'
bluetoothd[31343]: audio.conf: Key file does not have group 'A2DP'
bluetoothd[31343]: audio.conf: Key file does not have key 'Master'
bluetoothd[31343]: SEP 0x2a067838 registered: type:0 codec:0 seid:1
bluetoothd[31343]: Adding record with handle 0x10005
bluetoothd[31343]: Record pattern UUID 00000019-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 0000110a-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 0000110d-0000-1000-8000-00805f9
bluetoothd[31343]: avrcp_server_probe: path /org/bluez/31343/hci0
bluetoothd[31343]: audio_adapter_ref(0x2a066e20): ref=3
bluetoothd[31343]: audio.conf: Key file does not have key 'Master'
bluetoothd[31343]: Adding record with handle 0x10006
bluetoothd[31343]: Record pattern UUID 00000017-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 0000110c-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 0000110e-0000-1000-8000-00805f9
bluetoothd[31343]: Adding record with handle 0x10007
bluetoothd[31343]: Record pattern UUID 00000017-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[31343]: Record pattern UUID 0000110e-0000-1000-8000-00805f9
bluetoothd[31343]: Creating device /org/bluez/31343/hci0/dev_00_23_6C_A4_5D_EF
bluetoothd[31343]: btd_device_ref(0x2a068df8): ref=1
bluetoothd[31343]: Probe drivers for /org/bluez/31343/hci0/dev_00_23_6C_A4_5D_EF
bluetoothd[31343]: Creating device /org/bluez/31343/hci0/dev_00_23_12_4F_70_E5
bluetoothd[31343]: btd_device_ref(0x2a069138): ref=1
bluetoothd[31343]: Probe drivers for /org/bluez/31343/hci0/dev_00_23_12_4F_70_E5
bluetoothd[31343]: Creating device /org/bluez/31343/hci0/dev_00_02_76_FD_38_FB
bluetoothd[31343]: btd_device_ref(0x2a069390): ref=1
bluetoothd[31343]: Probe drivers for /org/bluez/31343/hci0/dev_00_02_76_FD_38_FB
Segmentation fault
You'll probably note that the first message is version 4.60 and the second one 4.63, this is because I tried to upgrade, but that did not work completely, but the error above is the same as first before the upgrade.
Don't know if it matters, but I am using Debian Squeeze and the output of uname -a is: Linux debian 2.6.32.2 #1 PREEMPT Fri Dec 18 22:54:28 MST 2009 armv5tel GNU/Linux
Hope someone know how this could happen suddenly, and even better, knows how to fix it
EDIT: Forgot to say, I am using a SENA Parani UD100 Bluetooth USB Adapter which uses the Toshiba Bluetooth stack.
UPDATE: It won't crash until the Bluetooth stick is inserted, so it should be a driver problem?