Bug 344024 - Spurious crash of Kbluetooth when resuming from suspend
Summary: Spurious crash of Kbluetooth when resuming from suspend
Status: RESOLVED NOT A BUG
Alias: None
Product: solid
Classification: Frameworks and Libraries
Component: bluetooth (show other bugs)
Version: 2.0.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-02-11 09:33 UTC by Ivan Topolsky
Modified: 2015-02-19 20:07 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (1.56 KB, text/plain)
2015-02-16 19:38 UTC, Ivan Topolsky
Details
New crash information added by DrKonqi (5.09 KB, text/plain)
2015-02-17 09:00 UTC, Ivan Topolsky
Details
New crash information added by DrKonqi (2.17 KB, text/plain)
2015-02-17 09:04 UTC, Ivan Topolsky
Details
New crash information added by DrKonqi (1.43 KB, text/plain)
2015-02-17 09:06 UTC, Ivan Topolsky
Details
New crash information added by DrKonqi (9.15 KB, text/plain)
2015-02-19 19:52 UTC, Ivan Topolsky
Details
New crash information added by DrKonqi (1.18 KB, text/plain)
2015-02-19 19:55 UTC, Ivan Topolsky
Details
New crash information added by DrKonqi (3.30 KB, text/plain)
2015-02-19 19:58 UTC, Ivan Topolsky
Details
New crash information added by DrKonqi (3.45 KB, text/plain)
2015-02-19 20:00 UTC, Ivan Topolsky
Details
New crash information added by DrKonqi (4.12 KB, text/plain)
2015-02-19 20:01 UTC, Ivan Topolsky
Details
New crash information added by DrKonqi (4.67 KB, text/plain)
2015-02-19 20:02 UTC, Ivan Topolsky
Details
New crash information added by DrKonqi (2.77 KB, text/plain)
2015-02-19 20:05 UTC, Ivan Topolsky
Details
New crash information added by DrKonqi (2.69 KB, text/plain)
2015-02-19 20:07 UTC, Ivan Topolsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Topolsky 2015-02-11 09:33:57 UTC
Application: bluedevil-monolithic (2.0.0)
KDE Platform Version: 4.14.4
Qt Version: 4.8.6
Operating System: Linux 3.16.7-7-desktop x86_64
Distribution: "openSUSE 13.2 (Harlequin) (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:
Resuming laptop from suspend-to-ram state.

- Unusual behavior I noticed:
On resume (generally Kbluebooth, sometime other similar tasks) and on quitting KDE, (not only Kbluetooth, but KWallet, Klipper, and tons of other similar), application crashes in group.

Distribution: 
- OpenSuse 13.2
- stock KDE from opensuse
- 3rd party repos: Packman (but that shouldn't cause any problem with Kbluetooth)

The crash can be reproduced sometimes.

-- Backtrace:
Application: Bluetooth (bluedevil-monolithic), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[KCrash Handler]
#5  0x00007fa341f9d87d in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#6  0x00007fa341f9dc48 in  () at /usr/lib64/libglib-2.0.so.0
#7  0x00007fa341f9dcec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#8  0x00007fa34744b0be in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#9  0x00007fa346854676 in  () at /usr/lib64/libQtGui.so.4
#10 0x00007fa34741ce6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#11 0x00007fa34741d165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#12 0x00007fa3474225b9 in QCoreApplication::exec() () at /usr/lib64/libQtCore.so.4
#13 0x0000000000404c4b in  ()
#14 0x00007fa345f4bb05 in __libc_start_main () at /lib64/libc.so.6
#15 0x0000000000404c9c in _start ()

Reported using DrKonqi
Comment 1 David Rosca 2015-02-12 19:45:28 UTC
From looking at the backtrace and the fact that also other apps are crashing, this seems like an issue with your installation.

I'm not really sure this would have any effect, but can you try latest Bluedevil 2.1?
Comment 2 Ivan Topolsky 2015-02-16 10:44:04 UTC
I haven't been able to test bluedevil 2.1 yet (it's not in the base repo of my distribution and I try to run stock when possible)

On the other hand, I've noticed something:
- All these crashes have started after the recent update of glib to 2.42.1-5 from opensuse's official update repo.
- In the dump of each crash, the offending thread is either in glib itself (like this dump, see #5) or in a function called further down in the call stack from glib.

The problem might come from a corrupted glib library.

I've filed a bug at opensuse, too:
https://bugzilla.opensuse.org/show_bug.cgi?id=918051
Comment 3 Ivan Topolsky 2015-02-16 19:38:57 UTC
Created attachment 91111 [details]
New crash information added by DrKonqi

bluedevil-monolithic (2.0.0) on KDE Platform 4.14.4 using Qt 4.8.6

- What I was doing when the application crashed:
Again, resuming from "Suspend-to-RAM"

- Unusual behavior I noticed:
Other KDE component (like KDE Plasma Workspace) keep crashing in similar way.
As always, libglib is mentionned in the backtrace of the offending thread.

-- Backtrace (Reduced):
#5  0x00007fe2672b487d in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#6  0x00007fe2672b4c48 in  () at /usr/lib64/libglib-2.0.so.0
#7  0x00007fe2672b4cec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#8  0x00007fe26c7620be in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#9  0x00007fe26bb6b676 in  () at /usr/lib64/libQtGui.so.4
Comment 4 Ivan Topolsky 2015-02-17 09:00:45 UTC
Created attachment 91123 [details]
New crash information added by DrKonqi

plasma-desktop (4.11.15) on KDE Platform 4.14.4 using Qt 4.8.6

- Unusual behavior I noticed:
This time systemd seemed to have crashed too.

Crash of several component at the same time.

-- Backtrace (Reduced):
#5  0x00007fec48cb8a70 in QDeclarativePropertyPrivate::writeValueProperty(QVariant const&, QFlags<QDeclarativePropertyPrivate::WriteFlag>) () at /usr/lib64/libQtDeclarative.so.4
#6  0x00007fec48cb8c82 in QDeclarativePropertyPrivate::write(QDeclarativeProperty const&, QVariant const&, QFlags<QDeclarativePropertyPrivate::WriteFlag>) () at /usr/lib64/libQtDeclarative.so.4
#7  0x00007fec48cb29e7 in QDeclarativeBinding::update(QFlags<QDeclarativePropertyPrivate::WriteFlag>) () at /usr/lib64/libQtDeclarative.so.4
#8  0x00007fec48cb184b in  () at /usr/lib64/libQtDeclarative.so.4
#9  0x00007fec48cb15d3 in QDeclarativeExpression::qt_metacall(QMetaObject::Call, int, void**) () at /usr/lib64/libQtDeclarative.so.4
Comment 5 Ivan Topolsky 2015-02-17 09:04:46 UTC
Created attachment 91124 [details]
New crash information added by DrKonqi

kwin (4.11.15) on KDE Platform 4.14.4 using Qt 4.8.6

- What I was doing when the application crashed:
Switching desktops to another active window

- Unusual behavior I noticed:
Crashed together with Plasma desktops (see above) and bluetooth (see next report)

Note: This one DID NOT have "glib" in the backtrace. On the other hand it happened simultaneously with the various other KDE crashes, so I think they are related.

-- Backtrace (Reduced):
#5  0x00007fe00a70a169 in  () at /usr/lib64/libQtScript.so.4
#6  0x00007fe00a69c335 in  () at /usr/lib64/libQtScript.so.4
#7  0x00007fe00a69ed09 in  () at /usr/lib64/libQtScript.so.4
#8  0x00007fe00a742423 in  () at /usr/lib64/libQtScript.so.4
#9  0x00007fe00a75d9b9 in QScriptValue::setProperty(unsigned int, QScriptValue const&, QFlags<QScriptValue::PropertyFlag> const&) () at /usr/lib64/libQtScript.so.4
Comment 6 Ivan Topolsky 2015-02-17 09:06:58 UTC
Created attachment 91125 [details]
New crash information added by DrKonqi

bluedevil-monolithic (2.0.0) on KDE Platform 4.14.4 using Qt 4.8.6

- What I was doing when the application crashed:
Switching active window

- Unusual behavior I noticed:
Same "wave" of crashes as above

-- Backtrace (Reduced):
#5  0x00007f46d7e7c87d in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#6  0x00007f46d7e7cc48 in  () at /usr/lib64/libglib-2.0.so.0
#7  0x00007f46d7e7ccec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#8  0x00007f46dd32a0be in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#9  0x00007f46dc733676 in  () at /usr/lib64/libQtGui.so.4
Comment 7 Ivan Topolsky 2015-02-19 19:52:01 UTC
Created attachment 91176 [details]
New crash information added by DrKonqi

krunner (4.11.15) on KDE Platform 4.14.4 using Qt 4.8.6

- What I was doing when the application crashed:
Quitting the KDE session.

- Unusual behavior I noticed:
Simultaneous crash of other software too (see the whole series)

-- Backtrace (Reduced):
#7  0x00007fac727350c4 in  () at /lib64/libc.so.6
#8  0x00007fac7273a92e in malloc_printerr () at /lib64/libc.so.6
#9  0x00007fac7273b636 in _int_free () at /lib64/libc.so.6
#10 0x00007fac73cfedea in QMapData::continueFreeData(int) () at /usr/lib64/libQtCore.so.4
#11 0x00007fac73d95b89 in  () at /usr/lib64/libQtCore.so.4
Comment 8 Ivan Topolsky 2015-02-19 19:55:05 UTC
Created attachment 91177 [details]
New crash information added by DrKonqi

akonadi_archivemail_agent (4.14) on KDE Platform 4.14.4 using Qt 4.8.6

- What I was doing when the application crashed:
Shutting down KDE

- Unusual behavior I noticed:
Simultaneous crash of several other programs

-- Backtrace (Reduced):
#7  0x00007f4a00ccb0c4 in  () at /lib64/libc.so.6
#8  0x00007f4a00cd092e in malloc_printerr () at /lib64/libc.so.6
#9  0x00007f4a00cd1636 in _int_free () at /lib64/libc.so.6
#10 0x00007f4a022a9a48 in QString::free(QString::Data*) () at /usr/lib64/libQtCore.so.4
#11 0x00007f49f2e67e16 in  () at /usr/lib64/libkgapi2.so.2
Comment 9 Ivan Topolsky 2015-02-19 19:58:00 UTC
Created attachment 91178 [details]
New crash information added by DrKonqi

konsole (2.14.2) on KDE Platform 4.14.4 using Qt 4.8.6

- What I was doing when the application crashed:
Shutting down KDE

- Unusual behavior I noticed:
Simultaneous crash of several programms.

-- Backtrace (Reduced):
#7  0x00007fac727350c4 in  () at /lib64/libc.so.6
#8  0x00007fac7273a92e in malloc_printerr () at /lib64/libc.so.6
#9  0x00007fac7273b636 in _int_free () at /lib64/libc.so.6
#10 0x00007fac73d19a48 in QString::free(QString::Data*) () at /usr/lib64/libQtCore.so.4
#11 0x00007fac73d930cb in  () at /usr/lib64/libQtCore.so.4
Comment 10 David Rosca 2015-02-19 19:58:42 UTC
Please don't post new crash reports. They are all almost useless (not to mention some are not even from Bluedevil) and I'm pretty sure the problem is not in Bluedevil.

As you suggested, this is an issue with your distribution and the glib update.
Comment 11 Ivan Topolsky 2015-02-19 20:00:02 UTC
Created attachment 91179 [details]
New crash information added by DrKonqi

akonadi_baloo_indexer (4.14) on KDE Platform 4.14.4 using Qt 4.8.6

- What I was doing when the application crashed:
Shutting down KDE

- Unusual behavior I noticed:
Simultaneous crash of several programms

-- Backtrace (Reduced):
#7  0x00007f7fe231b0c4 in  () at /lib64/libc.so.6
#8  0x00007f7fe232092e in malloc_printerr () at /lib64/libc.so.6
#9  0x00007f7fe2321636 in _int_free () at /lib64/libc.so.6
#10 0x00007f7fe5fd0a48 in QString::free(QString::Data*) () at /usr/lib64/libQtCore.so.4
#11 0x00007f7fe5f81c63 in  () at /usr/lib64/libQtCore.so.4
Comment 12 Ivan Topolsky 2015-02-19 20:01:24 UTC
Created attachment 91180 [details]
New crash information added by DrKonqi

polkit-kde-authentication-agent-1 (0.99.0) on KDE Platform 4.14.4 using Qt 4.8.6

- What I was doing when the application crashed:
Shutting down KDE

- Unusual behavior I noticed:
Simultaneous crash of several programm

-- Backtrace (Reduced):
#7  0x00007ff49fb580c4 in  () at /lib64/libc.so.6
#8  0x00007ff49fb5d92e in malloc_printerr () at /lib64/libc.so.6
#9  0x00007ff49fb5e636 in _int_free () at /lib64/libc.so.6
#10 0x00007ff4a0f1fa48 in QString::free(QString::Data*) () at /usr/lib64/libQtCore.so.4
#11 0x00007ff4a05a79c9 in  () at /usr/lib64/libQtGui.so.4
Comment 13 Ivan Topolsky 2015-02-19 20:02:58 UTC
Created attachment 91181 [details]
New crash information added by DrKonqi

kate (3.14.4) on KDE Platform 4.14.4 using Qt 4.8.6

- What I was doing when the application crashed:
Shutting down KDE

- Unusual behavior I noticed:
Simultaneous crash of several programms

-- Backtrace (Reduced):
#7  0x00007fac727350c4 in  () at /lib64/libc.so.6
#8  0x00007fac7273a92e in malloc_printerr () at /lib64/libc.so.6
#9  0x00007fac73ceca64 in QHashData::free_helper(void (*)(QHashData::Node*)) () at /usr/lib64/libQtCore.so.4
#10 0x00007fac6adf104a in KIO::UDSEntry::~UDSEntry() () at /usr/lib64/libkio.so.5
#11 0x00007fac6ad80cf3 in KFileItem::~KFileItem() () at /usr/lib64/libkio.so.5
Comment 14 Ivan Topolsky 2015-02-19 20:05:05 UTC
Created attachment 91182 [details]
New crash information added by DrKonqi

kwalletmanager (2.0) on KDE Platform 4.14.4 using Qt 4.8.6

- What I was doing when the application crashed:
Shutting down KDE

- Unusual behavior I noticed:
Simultaneous crash of multiple programms

-- Backtrace (Reduced):
#7  0x00007fe2389910c4 in  () at /lib64/libc.so.6
#8  0x00007fe23899692e in malloc_printerr () at /lib64/libc.so.6
#9  0x00007fe238997636 in _int_free () at /lib64/libc.so.6
#10 0x00007fe2393e0941 in  () at /usr/lib64/libQtGui.so.4
#11 0x00007fe238955bf9 in __run_exit_handlers () at /lib64/libc.so.6
Comment 15 Ivan Topolsky 2015-02-19 20:07:10 UTC
Created attachment 91183 [details]
New crash information added by DrKonqi

klipper (0.9.7) on KDE Platform 4.14.4 using Qt 4.8.6

- What I was doing when the application crashed:
Shutting down KDE

- Unusual behavior I noticed:
Simultaneous crash of multiple programs

-- Backtrace (Reduced):
#5  0x00007fac742a6c18 in  () at /usr/lib64/libkdecore.so.5
#6  0x00007fac73ceca59 in QHashData::free_helper(void (*)(QHashData::Node*)) () at /usr/lib64/libQtCore.so.4
#7  0x00007fac74312770 in  () at /usr/lib64/libkdecore.so.5
#8  0x00007fac7430b729 in  () at /usr/lib64/libkdecore.so.5
#9  0x00007fac726f9bf9 in __run_exit_handlers () at /lib64/libc.so.6