Bug 136169

Summary: Ksmserver systematically crashes when exiting/logging out
Product: [Unmaintained] ksmserver Reporter: Jean Francois HULEUX <jfhuleux>
Component: generalAssignee: Lubos Lunak <l.lunak>
Status: RESOLVED NOT A BUG    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jean Francois HULEUX 2006-10-23 09:06:55 UTC
Version:           4.3.5.5 (using KDE KDE 3.5.5KDE 1.2)
Installed from:    Ubuntu PackagesUbuntu Packages
OS:                Linux

Hi,



I have installed kubuntu 6.06 dapper, and then updated KDE and added Beryl. Since then, I cannot log out from my sessions, I havbe this signal 11 "ksmserver crashed", and consequently, my session isn't saved. I have to kill the X server to get so thing angain to log in or restart etc....
Here is what is left by debugging tool : 

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1232648512 (LWP 5629)]
[KCrash handler]
#6  0xb725a021 in QWidget::~QWidget () from /usr/lib/libqt-mt.so.3
#7  0xb73d4afc in QDialog::~QDialog () from /usr/lib/libqt-mt.so.3
#8  0xb6706fa9 in ~KSMShutdownDlg (this=0x8188e70) at shutdowndlg.cpp:270
#9  0xb670be70 in KSMShutdownDlg::confirmShutdown (maysd=false, 
    sdtype=@0xbf8538e8, bootOption=@0xb4884c1f) at shutdowndlg.cpp:364
#10 0xb6715a54 in KSMServer::shutdown (this=0x8158f80, 
    confirm=ShutdownConfirmDefault, sdtype=1145655892, 
    sdmode=ShutdownModeInteractive) at shutdown.cpp:145
#11 0xb6715c8d in KSMSaveYourselfRequestProc (smsConn=0x81769f0, 
    saveType=-1266136033, shutdown=1, interactStyle=-1266136033, fast=0, 
    global=1) at server.cpp:201
#12 0xb68cf758 in _SmsProcessMessage () from /usr/lib/libSM.so.6
#13 0xb68bcf0f in IceProcessMessages () from /usr/lib/libICE.so.6
#14 0xb6715dc0 in KSMServer::processData (this=0x8158f80) at server.cpp:740
#15 0xb6716445 in KSMServer::qt_invoke (this=0x8158f80, _id=4, _o=0xbf853b28)
    at server.moc:124
#16 0xb7220eb9 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#17 0xb72217c8 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#18 0xb75b506f in QSocketNotifier::activated () from /usr/lib/libqt-mt.so.3
#19 0xb72411fe in QSocketNotifier::event () from /usr/lib/libqt-mt.so.3
#20 0xb71b6e56 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#21 0xb71b7052 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#22 0xb78981cd in KApplication::notify (this=0xbf854124, receiver=0x8175fd0, 
    event=0xbf853e80) at kapplication.cpp:550
#23 0xb7148157 in QApplication::sendEvent () from /usr/lib/libqt-mt.so.3
#24 0xb71a8973 in QEventLoop::activateSocketNotifiers ()
   from /usr/lib/libqt-mt.so.3
#25 0xb715bf43 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#26 0xb71cf947 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#27 0xb71cf86a in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#28 0xb71b5965 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#29 0xb6711cc4 in kdemain (argc=135601336, argv=0xbf854254) at main.cpp:245
#30 0xb7f334f4 in kdeinitmain (argc=-1266136033, argv=0xb4884c1f)
    at ksmserver_dummy.cpp:3
#31 0x0804e30e in launch (argc=1, _name=0x813ed5c "ksmserver", 
    args=0x813ed66 "/home/jfh", cwd=0x813ed66 "/home/jfh", envc=20, 
    envs=0x813efc4 "", reset_env=true, tty=0x813efc4 "", avoid_loops=false, 
    startup_id_str=0xb4884c1f <Address 0xb4884c1f out of bounds>)
    at kinit.cpp:673
#32 0x0804eb37 in handle_launcher_request (sock=5) at kinit.cpp:1240
#33 0x0804f23c in handle_requests (waitForPid=0) at kinit.cpp:1433
#34 0x08050417 in main (argc=5, argv=0xbf854954, envp=0xb4884c1f)
    at kinit.cpp:1909
#35 0xb7cc9ea2 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#36 0x0804b901 in _start () at ../sysdeps/i386/elf/start.S:119


Thank you for your attention and help.....



JFH
Comment 1 Risto H. Kurppa 2006-10-27 01:26:44 UTC
Same here, ksmserver crashes every time I log out so it doesn't save the session. (crashes also if I press 'cancel' in logoff window). On login it loads some old session. I don't have beryl or xgl installed.

Ubuntu launchpad bugrep:
https://launchpad.net/distros/ubuntu/+source/kdebase/+bug/67809


risto kurppa fi
Comment 2 Lubos Lunak 2006-10-27 08:19:36 UTC
There's no ~KSMShutdownDlg at shutdowndlg.cpp:270. Your crash must come from a distribution-specific patch.
Comment 3 jason 2006-12-10 10:33:28 UTC
Me too!

Except I'm getting a signal 6 error on crash.  Pushing 'Cancel' also causes ksmserver to crash (as noted by previous poster) and my x-server to restart.