buggnokii - Bugs: bug #25158, gnokii-0.6.27 crashes when...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #25158: gnokii-0.6.27 crashes when identifying Siemens S55 mobile phone via bluetooth

Submitted by:  Christian Weiske <cweiske>
Submitted on:  Tue 23 Dec 2008 10:43:26 AM UTC  
 
Category: gnokiiSeverity: 3 - Normal
Item Group: crashStatus: Invalid
Privacy: PublicAssigned to: Pawel Kot <pkot>
Open/Closed: Closed

Wed 24 Dec 2008 02:06:51 PM UTC, comment #4:

Everything is fine with bluez-libs 3.36

Christian Weiske <cweiske>
Wed 24 Dec 2008 01:38:12 PM UTC, comment #3:

I am using net-wireless/bluez-libs-2.2.5 (3.x isn't marked stable on gentoo).

The channel is -1:

(gdb) bt full
#0 0x00007f34023d6453 in sdp_close () from /usr/lib/libbluetooth.so.1
No symbol table info available.
#1 0x00007f34034bd2f1 in find_service_channel (adapter=0x7fff0b90afa0, device=0x7fff0b90b000, only_gnapplet=0, svclass_id=4353) at unixbluetooth.c:202
sdp = (sdp_session_t *) 0x0
search = (sdp_list_t *) 0x0
attrs = (sdp_list_t *) 0x0
recs = (sdp_list_t *) 0x0
tmp = (sdp_list_t *) 0x7f3403923bc0
browse_uuid = {type = 0 '\0', value = {uuid16 = 0, uuid32 = 0, uuid128 = {data = "\000\000\000\000�������\017\001\000\000"}}}
service_id = {type = 0 '\0', value = {uuid16 = 0, uuid32 = 0, uuid128 = {data = '\0' <repeats 13 times>, "�\220\v"}}}
range = 65535
channel = -1
#2 0x00007f34034bd33e in get_serial_channel (device=0x7fff0b90b000) at unixbluetooth.c:214
src = {b = "\000\000\000\000\000"}
channel = 32767
#3 0x00007f34034bd4bb in bluetooth_open (addr=0x6297c4 "00:0E:07:E4:F9:20", channel=0 '\0', state=0x629780) at unixbluetooth.c:260
bdaddr = {b = " ��\a\016"}
raddr = {rc_family = 31, rc_bdaddr = {b = " ��\a\016"}, rc_channel = 0 '\0'}
fd = 7

You were right that it would not crash when setting the channel to 1 or higher. I get an error message, but at least not a crash:

Using channel: 1
Can't connect: Der Rechner ist nicht aktiv
AT bus initialization failed (1)
Initialization failed (1)
Serial device: closing device
Telephone interface init failed: Command failed.

"Der Rechner ist nicht aktiv" means "the computer is not active/responding".
I'll try to upgrade bluez-libs to 3.36 now.

Christian Weiske <cweiske>
Tue 23 Dec 2008 07:08:41 PM UTC, comment #2:

I just found old S55 phone and connected it. And it works just fine. As said previously I think it is the problem with sdp installation on your PC. With Ubuntu 8.10 it works just fine. I have libbluetooth 3.0.2 from libbluetooth 4.12

See attached log for --identify.

(file #17128)

Pawel Kot <pkot>
Project AdministratorIn charge of this item.
Tue 23 Dec 2008 11:37:54 AM UTC, comment #1:

That looks more like bluez (sdp) bug than gnokii problem. There are few other things you could try:
- it would be good to know what argument (ss variable was passed to sdp_close()) - 'bt full' command should say that
- it would be good to know what was the run path inside find_service_channel()
- it would be good to know whether gnome-phone-manager runs with your phone -- our code is mostly taken from there
As the workaround you can specify the rfcomm channel in .gnokiirc. gnokii shouldn't segfault there.

Could you also tell which sdp version is installed?

Pawel Kot <pkot>
Project AdministratorIn charge of this item.
Tue 23 Dec 2008 10:43:26 AM UTC, original submission:

I get a segfault when trying to identify a Siemens S55 mobile phone via bluetooth. Identifying an Ericcson T630 works. I'm trying to identify the Siemens without the Ericsson having bluetooth enabled, so only the S55 is visible.
Attached is the gdb backtrace with debugging enabled from my gentoo system. I installed gnokii via gentoo's portage package manager.

Attached is the full backtrace inclusive debug messages and my /etc/gnokiirc config file.

Christian Weiske <cweiske>

 

Attached Files
file #17128:  s55-identify.txt added by pkot (4KiB - text/plain)
file #17123:  gnokii-bluetooth-crash.bt added by cweiske (2KiB - application/octet-stream)
file #17124:  gnokiirc added by cweiske (378B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pkot (Posted a comment)
  • -unavailable- added by cweiske (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 23 Dec 2008 07:08:41 PM UTCpkotAttached File-=>Added s55-identify.txt, #17128
      StatusNeed Info=>Invalid
      Assigned toNone=>pkot
      Open/ClosedOpen=>Closed
    Tue 23 Dec 2008 11:37:54 AM UTCpkotStatusNone=>Need Info
    Tue 23 Dec 2008 10:43:26 AM UTCcweiskeAttached File-=>Added gnokii-bluetooth-crash.bt, #17123
      Attached File-=>Added gnokiirc, #17124

    Back to the top


    Powered by Savane 3.1-cleanup1