Bug 315009 - Segfault after updating KDE to 4.10
Summary: Segfault after updating KDE to 4.10
Status: RESOLVED FIXED
Alias: None
Product: apper
Classification: Applications
Component: general (show other bugs)
Version: 0.8.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Daniel Nicoletti
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-12 18:01 UTC by Peter Huyoff
Modified: 2013-03-08 21:04 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
.xsession-errors after first login (67.15 KB, text/plain)
2013-02-15 17:00 UTC, Peter Huyoff
Details
.xsessio-errors after second login (28.31 KB, text/plain)
2013-02-15 17:01 UTC, Peter Huyoff
Details
New crash information added by DrKonqi (5.47 KB, text/plain)
2013-02-18 19:45 UTC, Peter Huyoff
Details
New crash information added by DrKonqi (5.41 KB, text/plain)
2013-02-20 17:43 UTC, Peter Huyoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Huyoff 2013-02-12 18:01:20 UTC
Application: kded4 ($Id$)
KDE Platform Version: 4.10.00 "release 546"
Qt Version: 4.8.4
Operating System: Linux 3.4.28-2.20-desktop x86_64
Distribution: "openSUSE 12.2 (x86_64)"

-- Information about the crash:
- Unusual behavior I noticed:

Sice updating KDE to 4.10, this segfault occures, when kde comes up after login. Then the desktop environment runs stable, but jbidwatcher (http://www.jbidwatcher.com/) must be started manually. Maybe this program causes the segfault, when it starts automatically.

The crash can be reproduced every time.

-- Backtrace:
Application: KDE-Dienst (kdeinit4), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f9bbcb8b780 (LWP 2716))]

Thread 2 (Thread 0x7f9ba0718700 (LWP 2723)):
#0  0x00007f9bba1e014f in poll () from /lib64/libc.so.6
#1  0x00007f9bb6f2f684 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f9bb6f2f7a4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f9bbb830136 in QEventDispatcherGlib::processEvents (this=0x7f9b980008f0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f9bbb80094f in QEventLoop::processEvents (this=this@entry=0x7f9ba0717d10, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f9bbb800bd8 in QEventLoop::exec (this=0x7f9ba0717d10, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f9bbb7030b0 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#7  0x00007f9bbb7e10bf in QInotifyFileSystemWatcherEngine::run (this=0xbf20f0) at io/qfilesystemwatcher_inotify.cpp:256
#8  0x00007f9bbb70608c in QThreadPrivate::start (arg=0xbf20f0) at thread/qthread_unix.cpp:338
#9  0x00007f9bac231764 in ?? () from /usr/X11R6/lib64/libGL.so.1
#10 0x00007f9bbb46fe0e in start_thread () from /lib64/libpthread.so.0
#11 0x00007f9bba1e82cd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f9bbcb8b780 (LWP 2716)):
[KCrash Handler]
#6  0x00007f9b96644d0e in PackageKit::Transaction::d_func (this=0x0) at /usr/src/debug/PackageKit-Qt-0.8.7/src/transaction.h:1238
#7  0x00007f9b9663d5e8 in PackageKit::Transaction::error (this=0x0) at /usr/src/debug/PackageKit-Qt-0.8.7/src/transaction.cpp:203
#8  0x00007f9b9687080c in Updater::checkForUpdates (this=0x9eb520, systemReady=<optimized out>) at /usr/src/debug/apper-0.8.0/apperd/Updater.cpp:100
#9  0x00007f9b9687238d in ApperdThread::updatesChanged (this=0xd9bc40) at /usr/src/debug/apper-0.8.0/apperd/ApperdThread.cpp:263
#10 0x00007f9bbb8170ff in QMetaObject::activate (sender=0xdb9f70, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3548
#11 0x00007f9bbb81ef8f in QSingleShotTimer::timerEvent (this=0xdb9f70) at kernel/qtimer.cpp:317
#12 0x00007f9bbb81640c in QObject::event (this=0xdb9f70, e=<optimized out>) at kernel/qobject.cpp:1165
#13 0x00007f9bba98f85c in QApplicationPrivate::notify_helper (this=this@entry=0x959db0, receiver=receiver@entry=0xdb9f70, e=e@entry=0x7fff6b9d58d0) at kernel/qapplication.cpp:4562
#14 0x00007f9bba993cda in QApplication::notify (this=0x7fff6b9d5dd0, receiver=0xdb9f70, e=0x7fff6b9d58d0) at kernel/qapplication.cpp:4423
#15 0x00007f9bbc5a2a96 in KApplication::notify (this=0x7fff6b9d5dd0, receiver=0xdb9f70, event=0x7fff6b9d58d0) at /usr/src/debug/kdelibs-4.10.0/kdeui/kernel/kapplication.cpp:311
#16 0x00007f9bbb801bfe in QCoreApplication::notifyInternal (this=0x7fff6b9d5dd0, receiver=0xdb9f70, event=0x7fff6b9d58d0) at kernel/qcoreapplication.cpp:946
#17 0x00007f9bbb8329a1 in sendEvent (event=0x7fff6b9d58d0, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#18 QTimerInfoList::activateTimers (this=0x95c460) at kernel/qeventdispatcher_unix.cpp:637
#19 0x00007f9bbb82fab4 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:186
#20 timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:180
#21 0x00007f9bbb82fad1 in idleTimerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:233
#22 0x00007f9bb6f2f3b5 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#23 0x00007f9bb6f2f6e8 in ?? () from /usr/lib64/libglib-2.0.so.0
#24 0x00007f9bb6f2f7a4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#25 0x00007f9bbb830116 in QEventDispatcherGlib::processEvents (this=0x817790, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#26 0x00007f9bbaa2fbee in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#27 0x00007f9bbb80094f in QEventLoop::processEvents (this=this@entry=0x7fff6b9d5b50, flags=...) at kernel/qeventloop.cpp:149
#28 0x00007f9bbb800bd8 in QEventLoop::exec (this=0x7fff6b9d5b50, flags=...) at kernel/qeventloop.cpp:204
#29 0x00007f9bbb805878 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#30 0x00007f9ba7a6ca30 in kdemain (argc=1, argv=0x8c4eb0) at /usr/src/debug/kdelibs-4.10.0/kded/kded.cpp:924
#31 0x0000000000408856 in launch (argc=argc@entry=1, _name=_name@entry=0x40b246 "kded4", args=args@entry=0x0, cwd=cwd@entry=0x0, envc=envc@entry=0, envs=<optimized out>, envs@entry=0x0, reset_env=reset_env@entry=false, tty=tty@entry=0x0, avoid_loops=avoid_loops@entry=false, startup_id_str=startup_id_str@entry=0x40b0c6 "0") at /usr/src/debug/kdelibs-4.10.0/kinit/kinit.cpp:726
#32 0x0000000000405f99 in main (argc=4, argv=<optimized out>, envp=0x7fff6b9d67c0) at /usr/src/debug/kdelibs-4.10.0/kinit/kinit.cpp:1841

Reported using DrKonqi
Comment 1 Peter Huyoff 2013-02-15 17:00:08 UTC
Created attachment 77336 [details]
.xsession-errors after first login
Comment 2 Peter Huyoff 2013-02-15 17:01:09 UTC
Created attachment 77338 [details]
.xsessio-errors after second login
Comment 3 Peter Huyoff 2013-02-18 19:45:03 UTC
Created attachment 77411 [details]
New crash information added by DrKonqi

kded4 ($Id$) on KDE Platform 4.10.00 "release 546" using Qt 4.8.4

- Unusual behavior I noticed:
Same effect, on every login. I've created a new testuser from scratch -  same segfault after login.

-- Backtrace (Reduced):
#7  0x00007faab263d5e8 in PackageKit::Transaction::error (this=0x0) at /usr/src/debug/PackageKit-Qt-0.8.7/src/transaction.cpp:203
#8  0x00007faab287080c in Updater::checkForUpdates (this=0x248c450, systemReady=<optimized out>) at /usr/src/debug/apper-0.8.0/apperd/Updater.cpp:100
#9  0x00007faab287238d in ApperdThread::updatesChanged (this=0x2895150) at /usr/src/debug/apper-0.8.0/apperd/ApperdThread.cpp:263
[...]
#11 0x00007faad77a9f8f in QSingleShotTimer::timerEvent (this=0x28b4b60) at kernel/qtimer.cpp:317
#12 0x00007faad77a140c in QObject::event (this=0x28b4b60, e=<optimized out>) at kernel/qobject.cpp:1165
Comment 4 Peter Huyoff 2013-02-20 17:43:23 UTC
Created attachment 77464 [details]
New crash information added by DrKonqi

kded4 ($Id$) on KDE Platform 4.10.00 "release 546" using Qt 4.8.4

- Unusual behavior I noticed:
System booted with "nomodeset", same thing happens...

-- Backtrace (Reduced):
#7  0x00007f319ae2a5e8 in PackageKit::Transaction::error (this=0x0) at /usr/src/debug/PackageKit-Qt-0.8.7/src/transaction.cpp:203
#8  0x00007f319b0a280c in Updater::checkForUpdates (this=0xe152d0, systemReady=<optimized out>) at /usr/src/debug/apper-0.8.0/apperd/Updater.cpp:100
#9  0x00007f319b0a438d in ApperdThread::updatesChanged (this=0xe51f80) at /usr/src/debug/apper-0.8.0/apperd/ApperdThread.cpp:263
[...]
#11 0x00007f31c815cf8f in QSingleShotTimer::timerEvent (this=0xcd7bb0) at kernel/qtimer.cpp:317
#12 0x00007f31c815440c in QObject::event (this=0xcd7bb0, e=<optimized out>) at kernel/qobject.cpp:1165
Comment 5 Daniel Nicoletti 2013-02-20 18:07:48 UTC
This backtrace is really nonsense...
It crashes because of a null pointer but that pointer was just created so I don't see why it's null, do you have this bahavior at every login?
if you kill kded4 and start it from konsole does it crash too?
Thanks
Comment 6 Peter Huyoff 2013-02-20 18:36:36 UTC
> This backtrace is really nonsense... It crashes because of a null pointer but that pointer was just
> created so I don't see why it's null, do you have this bahavior at every login?

Yes, this crash happens every time, i logging into my account. I've created a new test-account, with the same effect happening on every boot! The crash happens ca. 30secs to 2mins after KDE4 is fully up. Autostart of jbidwatcher fails, since this failure is present. Maybe, this triggers the bug?

> if you kill kded4 and start it from konsole does it crash too? 

Yes, this happens on every login. I've witched runmode on tty1 from 5 to 3 and back with no change. Same thing if i apply <ctrl>+<alt>+2*<backspace>.

Another thing, happening rarely from time to time:
Everything works fine, when changing from one applicatin to another fails partially. Mouseclicks are focussed to the last App, clicks outside the old window are withot effect. Keyboard works without quirks, i can use all shortcuts within the "new" App. But i can't switch to another app, using <alt>+<Tab>. The only way out of this is mess, is killing kde4 and login again.

Peter
Comment 7 Daniel Nicoletti 2013-02-20 19:50:14 UTC
can you pkill kded4 and launch it from konsole and wait to see if the same happens?
is it a new F18 install?
Comment 8 Peter Huyoff 2013-02-20 20:56:22 UTC
> can you pkill kded4 and launch it from konsole and wait to see if the same happens?
Yes, i've done so and the following happens:
----snipp------------------------------------------
pehy@dell670:~> pkill kded4
pehy@dell670:~> kded4
Object::connect: No such signal QDBusAbstractInterface::StateChanged(uint)
QDBusConnection for control created "/Mixers/PulseAudio__Playback_Devices_1/alsa_output_pci_0000_07_00_1_hdmi_stereo" 
QDBusConnection for control created "/Mixers/PulseAudio__Playback_Devices_1/alsa_output_pci_0000_00_1b_0_analog_stereo" 
QDBusConnection for control created "/Mixers/PulseAudio__Capture_Devices_1/alsa_input_pci_0000_00_1b_0_analog_stereo" 
Agent registered 
pehy@dell670:~> kded(5122) PowerDevil::PolicyAgent::setupSystemdInhibition: failed to inhibit systemd powersave handling 
QDBusConnection: name 'org.kde.Solid.PowerManagement' had owner '' but we thought it was ':1.278'
QDBusConnection for control created "/Mixers/PulseAudio__Playback_Streams_1/restore_sink_input_by_media_role_event" 
pehy@dell670:~> 
-----------------snipp-----------------------------------------
After this, all icons on desktop, except the trashcan, dissapeard! The USB-Notifier pops repeatedly up with "the following device cannot mounted: win-partition>" (translated from german)
> is it a new F18 install?
No, it's a relative fresh openSUSE 12.2. I've updated KDE from 4.8.5 to 4.10 to fix the problems around KDE4. It became unstable last december. At this time, my machine runs openSUSE 11.4. The problems started after one of the regular online-updates. In january, i Installed openSUSE (no upgrade, fresh install). 

This is my system:

Prozessor (CPU):   Intel(R) Xeon(R) CPU 5160 @ 3.00GHz
  Geschwindigkeit:  2 992,35 MHz
  Kerne:  4

Arbeitsspeicher
Gesamter Arbeitsspeicher:  9,8 GiB
  Freier Arbeitsspeicher:  5,9 GiB (+ 1,8 GiB Zwischenspeicher)
  Freier Auslagerungsspeicher (Swap):  4,0 GiB

Betriebssystem
Kernel:  Linux 3.4.28-2.20-desktop x86_64
  Aktueller Benutzer:  pehy@dell670
  Distribution:  openSUSE 12.2 (x86_64)
  KDE:  4.10.00 "release 546"

Grafikkarte
Hersteller:  nVidia Corporation
  Modell:
  2D-Treiber:  nvidia
  3D-Treiber:  NVIDIA 304.64

Peter
Comment 9 Jon Nelson 2013-03-05 01:27:21 UTC
I've also been having lots of problems with segfaults after upgrading to 4.10
Invariably, they happen when the network is refreshing or right after unlocking the screen.
My tracebacks (konsole crashing) look like this:


#0  sprintf (__fmt=0x7fa10708eec0 "_NET_WM_CM_S%d", __s=<optimized out>)
    at /usr/include/bits/stdio2.h:35
#1  create_atoms (dpy=0x0)
    at /usr/src/debug/kdelibs-4.10.0/kdeui/windowmanagement/kwindowsystem_x11.cpp:331
#2  0x00007fa1070350aa in KWindowSystem::compositingActive ()
    at /usr/src/debug/kdelibs-4.10.0/kdeui/windowmanagement/kwindowsystem_x11.cpp:806
#3  0x00007fa107583e09 in __static_initialization_and_destruction_0 (           
    __initialize_p=<optimized out>, __priority=<optimized out>)
    at /usr/src/debug/konsole-4.10.0/src/WindowSystemInfo.cpp:29
#4  _GLOBAL__sub_I_WindowSystemInfo.cpp(void) ()
    at /usr/src/debug/konsole-4.10.0/src/WindowSystemInfo.cpp:29
#5  0x00007fa107e107b6 in call_init (env=0x7fffb17ea468, argv=0x7fffb17ea458, 
    argc=1, l=<optimized out>) at dl-init.c:85
#6  call_init (l=<optimized out>, argc=1, argv=0x7fffb17ea458, 
    env=0x7fffb17ea468) at dl-init.c:35
#7  0x00007fa107e1089a in _dl_init (main_map=0x7fa108025188, argc=1, 
    argv=0x7fffb17ea458, env=0x7fffb17ea468) at dl-init.c:134
#8  0x00007fa107e0351a in _dl_start_user () from /lib64/ld-2.15.so
#9  0x0000000000000001 in ?? ()
#10 0x00007fffb17eb179 in ?? ()
#11 0x0000000000000000 in ?? ()
Comment 10 Daniel Nicoletti 2013-03-05 01:38:07 UTC
hmm looking at you xsession erros file actually showed that your packagekit installation might not be working well, does apper opens and work?
and your last comment is due which application? the tracebacke doesn't seem to be from apper.
Comment 11 Daniel Nicoletti 2013-03-07 15:08:37 UTC
Ok, I think I might have fixed the issue (tho if doesn't explain the this=0x0 on the backtrace it might fix the issue:
http://gitorious.org/packagekit/packagekit-qt/commit/da41de0e4a98eed232eb05a14e903666dbb21838

I'll ask fedora ppl to push the patch
Comment 12 Rex Dieter 2013-03-07 18:00:10 UTC
ask and ye shall receive,
http://admin.fedoraproject.org/updates/PackageKit-Qt-0.8.7-3.fc18
Comment 13 Peter Huyoff 2013-03-08 20:59:24 UTC
Yesterday i've updated KDE to version 4.10.1 "release 552". It seems the bug is resolved, no segfault, no lost focus anymore! (Distribution:  openSUSE 12.2 (x86_64))

TIA, peter Huyoff
Comment 14 Daniel Nicoletti 2013-03-08 21:04:18 UTC
This doesn't make sense, first because I thought the bug was with a Fedora user
so the update is only in fedora repos and not in openSUSE ones...
Your update probably fixed your PackageKit installation which was actually what
was triggering the bug but doesn't explain much the crash... either way
the code is a bit better now...