Bug 220103

Summary: kbluetooth segfault upon receiving file via obex [ObexServerSessionFileTransfer::fileSize, ObexServerSession::disconnect, KBlueTray::slotServerSessionRemoved]
Product: [Unmaintained] kbluetooth Reporter: Javier Conti <javier.conti>
Component: generalAssignee: Alex Fiestas <afiestas>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: 0.4   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Javier Conti 2009-12-25 23:48:25 UTC
Application: kbluetooth (0.4)
KDE Platform Version: 4.3.85 (KDE 4.3.85 (KDE 4.4 Beta2)) "release 203"
Qt Version: 4.6.0
Operating System: Linux 2.6.31.5-0.1-default x86_64
Distribution: "openSUSE 11.2 (x86_64)"

-- Information about the crash:
I'm trying to send a file from a mobile phone (Android 1.6, Androbex) and as soon as I start the data transfer, everytime, kbluetooth segfaults.

The crash can be reproduced everytime.

 -- Backtrace:
Application: KBluetooth (kbluetooth), signal: Segmentation fault
[KCrash Handler]
#5  ObexServerSessionFileTransfer::fileSize (this=0x29000000000073) at /usr/src/debug/kbluetooth-0.4/src/obexserver/obexserversessionfiletransfer.cpp:136
#6  0x0000000000428107 in ObexServerSession::disconnect (this=0x8f2520) at /usr/src/debug/kbluetooth-0.4/src/obexserver/obexserversession.cpp:68
#7  0x000000000040f025 in KBlueTray::slotServerSessionRemoved (this=0x7fffe3401770) at /usr/src/debug/kbluetooth-0.4/src/trayicon.cpp:699
#8  0x000000000040e5c0 in KBlueTray::qt_metacall (this=0x7fffe3401770, _c=InvokeMetaMethod, _id=7232496, _a=0x7fffe3400a20) at /usr/src/debug/kbluetooth-0.4/build/src/moc_trayicon.cpp:173
#9  0x00007fe12f8982b3 in QMetaObject::activate (sender=0x9512e0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3294
#10 0x000000000040cf63 in ObexServer::sessionRemoved (this=0x29000000000073, _t1=<value optimized out>) at /usr/src/debug/kbluetooth-0.4/build/src/moc_obexserver.cpp:163
#11 0x0000000000424569 in ObexServer::slotSessionRemoved (this=0x9512e0, path=) at /usr/src/debug/kbluetooth-0.4/src/obexserver/obexserver.cpp:176
#12 0x000000000040d397 in ObexServer::qt_metacall (this=0x9512e0, _c=<value optimized out>, _id=<value optimized out>, _a=0x7fffe3400d20)
    at /usr/src/debug/kbluetooth-0.4/build/src/moc_obexserver.cpp:113
#13 0x00007fe12fbc14be in QDBusConnectionPrivate::deliverCall (this=<value optimized out>, object=<value optimized out>, msg=<value optimized out>, metaTypes=..., slotIdx=<value optimized out>)
    at qdbusintegrator.cpp:904
#14 0x00007fe12fbca14f in QDBusCallDeliveryEvent::placeMetaCall (this=0x1, object=0x1) at qdbusintegrator_p.h:101
#15 0x00007fe12f895209 in QObject::event (this=0x9512e0, e=0x907a40) at kernel/qobject.cpp:1260
#16 0x00007fe130465bcc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#17 0x00007fe13046c1ed in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#18 0x00007fe1318b4a76 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#19 0x00007fe12f88553c in QCoreApplication::notifyInternal (this=0x7fffe3401900, receiver=0x9512e0, event=0x907a40) at kernel/qcoreapplication.cpp:704
#20 0x00007fe12f887cb7 in sendEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.h:215
#21 QCoreApplicationPrivate::sendPostedEvents (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.cpp:1345
#22 0x00007fe12f8aefd3 in sendPostedEvents () at kernel/qcoreapplication.h:220
#23 postEventSourceDispatch () at kernel/qeventdispatcher_glib.cpp:276
#24 0x00007fe12bbb3dde in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#25 0x00007fe12bbb77a8 in ?? () from /usr/lib64/libglib-2.0.so.0
#26 0x00007fe12bbb78d0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#27 0x00007fe12f8aeb13 in QEventDispatcherGlib::processEvents (this=0x649210, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:407
#28 0x00007fe13051294e in ?? () from /usr/lib64/libQtGui.so.4
#29 0x00007fe12f883e52 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#30 0x00007fe12f88422c in QEventLoop::exec (this=0x7fffe34016d0, flags=) at kernel/qeventloop.cpp:201
#31 0x00007fe12f887f7b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#32 0x000000000040ee41 in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kbluetooth-0.4/src/main.cpp:71

Reported using DrKonqi
Comment 1 Alex Fiestas 2009-12-26 00:02:46 UTC
Hi
Can you test this with the svn version? I've an android too (1.6 + andro) and everything works just fine.

Thanks!
Comment 2 Javier Conti 2009-12-27 01:43:23 UTC
2009/12/26 Alex Fiestas <alex@eyeos.org>:
> https://bugs.kde.org/show_bug.cgi?id=220103
>
>
> Alex Fiestas <alex@eyeos.org> changed:
>
>           What    |Removed                     |Added
> ----------------------------------------------------------------------------
>             Status|UNCONFIRMED                 |NEEDSINFO
>         Resolution|                            |WAITINGFORINFO
>
>
>
>
> --- Comment #1 from Alex Fiestas <alex eyeos org>  2009-12-26 00:02:46 ---
> Hi
> Can you test this with the svn version? I've an android too (1.6 + andro) and
> everything works just fine.

Hi Alex,

unfortunately, I tried to download the svn version (via svn) but I'm
not able to build it.
I tried the most obvious things and the googled ones, but I'm not
familiar with building KDE apps and can't go further alone.

Anyway, just for the record, I have the same problem with other non
Android mobile phones.

Ciao, Javier

>
> Thanks!
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
>
Comment 3 Alex Fiestas 2009-12-28 00:22:36 UTC
Try to find some "one click install" for rc2 verison or svn. I'll try to test it with your same environment and give you my feedback.

Can you try to send a larger file? I fixed a bug related to small size files, which seems that is what is happening to you.

Thanks
Comment 4 Javier Conti 2009-12-28 14:35:41 UTC
I'll check, but a few minutes ago, I discovered an interesting thing:
the same (small) file can be sent without problems using "Bluetooth
File Transfer" instead of Androbex on my mobile phone.
I don't know what those two clients make different...

Anyway, as you guessed, on a bigger file Androbex works fine too.

Ciao, Javier


2009/12/28 Alex Fiestas <alex@eyeos.org>:
> https://bugs.kde.org/show_bug.cgi?id=220103
>
>
>
>
>
> --- Comment #3 from Alex Fiestas <alex eyeos org>  2009-12-28 00:22:36 ---
> Try to find some "one click install" for rc2 verison or svn. I'll try to test
> it with your same environment and give you my feedback.
>
> Can you try to send a larger file? I fixed a bug related to small size files,
> which seems that is what is happening to you.
>
> Thanks
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
>
Comment 5 Alex Fiestas 2010-01-31 22:28:47 UTC
Yep
Any new on this? is there any updated version of kbluetooth you can try?

Thanks!
Comment 6 Javier Conti 2010-01-31 23:19:00 UTC
Tried:

Qt: 4.6.1
KDE Development Platform: 4.3.95 (KDE 4.3.95 (KDE 4.4 RC2)) "release 214"
KBluetooth: 0.4

It works fine with small files too and with any program obex software I have on the Android, which includes Androbex, the one that crashed kbluetooth before.
Comment 7 Alex Fiestas 2010-01-31 23:40:17 UTC
Wo, perfect!

Thanks for all the feedback!