Package: obexpushd
Version: 0.5-4
Severity: important

When running obexpushd without any arguments it terminates immediately,
only printing a "0".

When run with the -d or -n switch however it segfaults after printing a
"1" and some output. I tracked that down to obexpush-sdp.c:97 where the 
return value of sdp_connect is not checked. (In my case it returns NULL
with the Connection refused error.) Weird is, that this error does not
occur without the switches.

Here's the backtrace.

Starting program: /usr/bin/obexpushd -d
1
obexpushd 0.5 Copyright (C) 2006,2007 Hendrik Sattler
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions.
Listening on bluetooth channel 9

Program received signal SIGSEGV, Segmentation fault.
sdp_device_record_register_binary (session=0x0, device=0xbf89c7de,
data=0x804ff90 "5\177\t", size=129, flags=0 '\0', handle=0xbf89c7a8) at
sdp.c:2446
2446            if (!session->local) {
(gdb) bt
#0  sdp_device_record_register_binary (session=0x0, device=0xbf89c7de,
data=0x804ff90 "5\177\t", size=129, flags=0 '\0', handle=0xbf89c7a8)
    at sdp.c:2446
    #1  0xb7edca33 in sdp_device_record_register (session=0x0,
    device=0xbf89c7de, rec=0x804f948, flags=<value optimized out>) at
    sdp.c:2524
    #2  0xb7edcb1b in sdp_record_register (session=0x0, rec=0x804f948,
    flags=<value optimized out>) at sdp.c:2540
    #3  0x0804cdf8 in bt_sdp_session_open (channel=9 '\t') at
    obexpush-sdp.c:102
    #4  0x0804afa6 in bluetooth_listen (channel=9 '\t') at
    obexpushd.c:781
    #5  0x0804b842 in main (argc=622389, argv=0xbf89cab4) at
    obexpushd.c:943


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (600, 'testing'), (300, 'unstable'), (250, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-2-k7 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages obexpushd depends on:
ii  libbluetooth2                 3.20-1     Library to use the BlueZ Linux Blu
ii  libc6                         2.6.1-1+b1 GNU C Library: Shared libraries
ii  libopenobex1                  1.3-3      OBEX protocol library

obexpushd recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to