By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 1394

Summary: smserver often crash at exit which more opened applications left
Product: TDE Reporter: Roman Savochenko <rom_as>
Component: tdelibsAssignee: Slávek Banko <slavek.banko>
Status: RESOLVED FIXED    
Severity: blocker CC: bugwatch, darrella, rom_as, slavek.banko
Priority: P5    
Version: 3.5.13 [Trinity]   
Hardware: Other   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:
Bug Depends on:    
Bug Blocks: 1288    
Attachments: Back trace
kaffeine 3.5.13.2 : Fix closing during saving session
kaffeine R14 : Fix closing during saving session

Description Roman Savochenko 2013-01-26 00:15:57 CST
Created attachment 1090 [details]
Back trace

At exit with opened more applications left smserver often crash or blink the applications windows without frames at end.

I am noted that the bug consistently appear if have kaffeine empty window open.
Comment 1 Roman Savochenko 2013-01-26 14:29:13 CST
The bug strongly reproduced on logout with opened kaffeine window. And after that kdesktop_lock also hang:
(gdb) bt
#0  0xb62c4e12 in do_sigsuspend (set=0xbfbc5e04) at ../sysdeps/unix/sysv/linux/sigsuspend.c:63
#1  __sigsuspend (set=0xbfbc5e04) at ../sysdeps/unix/sysv/linux/sigsuspend.c:74
#2  0x0807d15b in main (argc=Cannot access memory at address 0x8
) at /usr/src/debug/kdebase-3.5.13.1/kdesktop/lock/main.cc:358
Comment 2 Slávek Banko 2013-02-11 16:49:22 CST
Very interesting. When I started looking for some information on this bug, I found several of the same cases in other DE:

XFCE on Fedora:
https://bugzilla.redhat.com/show_bug.cgi?id=891737

Compiz on Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/754059

KDE4 on OpenSUSE:
https://bugs.kde.org/show_bug.cgi?id=282441
Comment 3 Slávek Banko 2013-02-11 18:57:59 CST
Created attachment 1105 [details]
kaffeine 3.5.13.2 : Fix closing during saving session

Because the bug was repeatedly traceable in cooperation with kaffeine, I tried to fix closing kaffeine during saving session. With the attached patch crash stopped for me.

Incidentally, during the previously mentioned crashes I have seen openned multiple session logout status dialogs. This could indicate that there is sometimes really stopping sessions invoked multiple times.
Comment 4 Slávek Banko 2013-02-11 18:58:43 CST
Created attachment 1106 [details]
kaffeine R14 : Fix closing during saving session
Comment 5 Slávek Banko 2013-02-16 10:11:39 CST
Comment on attachment 1105 [details]
kaffeine 3.5.13.2 : Fix closing during saving session

Pushed to GIT in hash 56137a13 and also into v3.5.13-sru branch.
Comment 6 Slávek Banko 2013-02-16 10:17:22 CST
Please, are known some other situations where ksmserver crashes?
Comment 7 Roman Savochenko 2013-02-17 07:54:53 CST
(In reply to comment #2)
> Very interesting. When I started looking for some information on this bug, I
> found several of the same cases in other DE:
> 
> XFCE on Fedora:
> https://bugzilla.redhat.com/show_bug.cgi?id=891737
> 
> Compiz on Ubuntu:
> https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/754059
> 
> KDE4 on OpenSUSE:
> https://bugs.kde.org/show_bug.cgi?id=282441
I also thought that problem into XOrg server but next I have test for last XOrg version on x86_64 where I have the problem. Next I test it on KDE 3.5.10 and old XOrg sever and here I have not the problem.

> Pushed to GIT in hash 56137a13 and also into v3.5.13-sru branch.
The patch also fixes the problem for me.

> Please, are known some other situations where ksmserver crashes?
For now I does not seen other situation and will test that for different applications.
Comment 8 Slávek Banko 2013-02-21 13:29:53 CST
I'm marking this as resolved for the time being. If anyone experiences any further issues, please reopen this bug report.