Bug 128564

Summary: Knode crashed when deleting an account
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Joe Harmon <jharmon>
Component: KDEAssignee: Lubos Lunak <llunak>
Status: VERIFIED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: dmueller, kde-maintainers
Version: RC 4   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: back trace
xsession-errors
back trace of crash
requested log from valgrind debugger
valgrind log
Another crash

Description Joe Harmon 2005-10-14 22:04:35 UTC
I had an account setup in Knode to the vmware news server. I didn't need it any
more so I right clicked on the account and choose the delete option. As soon as
I choose the delete option, knode crashed. I am attaching the back trace.
Comment 1 Joe Harmon 2005-10-14 22:04:55 UTC
Created attachment 54184 [details]
back trace
Comment 2 Dirk Mueller 2005-10-17 14:20:04 UTC
it crashes somewhere inside alsa client libs. there must have been an error message on the console output that refers to an undefined symbol or similiar. 

can you retrieve that please? are you sure you have a clean installation?

Comment 3 Joe Harmon 2005-10-17 20:42:23 UTC
(In reply to comment #2)
> it crashes somewhere inside alsa client libs. there must have been an error
> message on the console output that refers to an undefined symbol or similiar. 

I don't see any message that refers to an undefined symbol. I looked in the syslog and on the CNTL ALT F10 window.

> are you sure you have a clean installation?

As far as I know. It is also important to note that this isn't always reproducable. In fact I have only run into this issue twice on SUSE 10.0. However, since I don't delete accounts very often (maybe a handful of times so far) then I think that is somewhat significant.
Comment 4 Lubos Lunak 2005-12-06 17:55:22 UTC
*** Bug 130563 has been marked as a duplicate of this bug. ***
Comment 5 Lubos Lunak 2005-12-06 17:57:22 UTC
X applications don't log to syslog, the output is usually in ~/.xsession-errors, please check there. And it indeed looks like some problem with the instalation.
Comment 6 Joe Harmon 2005-12-06 18:25:34 UTC
Created attachment 59945 [details]
xsession-errors

Since you mentioned that https://bugzilla.novell.com/show_bug.cgi?id=130563 was the same crash and this one, I reproduced the crash from bug #130563 because I can reproduce it every time. Here is the xsession-errors that you requested. I will also attach a new back trace from this latest crash.
Comment 7 Joe Harmon 2005-12-06 18:26:34 UTC
Created attachment 59946 [details]
back trace of crash
Comment 8 Lubos Lunak 2006-01-12 14:41:25 UTC
Please kill knotify and run it in valgrind[*] and attach the log.
[*] valgrind --tool=memcheck --num-callers=20 knotify --nofork
Comment 9 Joe Harmon 2006-01-17 20:11:55 UTC
Created attachment 63677 [details]
requested log from valgrind debugger
Comment 10 Lubos Lunak 2006-01-19 08:49:58 UTC
There's no sign of a crash in the log.
Comment 11 Joe Harmon 2006-01-19 15:13:26 UTC
Yeah, I just attached what was there, but it appared to me that knotify never fully launched. I tried it several times, but it would always hang at that point.
Comment 12 Lubos Lunak 2006-01-19 16:04:02 UTC
It's not hung, knotify is a notification daemon. Backtraces from both comment #1 and comment #7 are from knotify. You need to reproduce the crash.

Comment 13 Joe Harmon 2006-01-20 15:25:31 UTC
I got it to crash once but it didn't seem to put anything across the terminal. I still have it running though. But here is my log from yesterday in case you see anything different.
Comment 14 Joe Harmon 2006-01-20 15:26:02 UTC
Created attachment 64298 [details]
valgrind log
Comment 15 Lubos Lunak 2006-01-20 16:40:32 UTC
This log contains the crash, it's those "Invalid read of size 4" in do_lookup_x (in /lib/ld-2.3.5.so). Since those first two warnings about uninitialized data are harmless and the remaining ones are(?) probably too, let's say this is a glibc and not KDE problem.
Comment 16 Thorsten Kukuk 2006-01-20 20:49:17 UTC
I can only see that KDE is messing up with signal handlers, this is serious. And using uninitializes buffers, too. I'm not sure if valgrind is right here, valgrind has a very long history of not working correct inside glibc routines. Neverless, glibc 2.3.5 is dead and I think KDE is broken here.
Comment 17 Joe Harmon 2006-01-20 21:09:06 UTC
I am sorry but I don't agree with this. A more serious problem occurs, that is a duplicate to this bug, where Kontact crashes when displaying groupwise appointments. How can we say we won't fix this issue?
Comment 18 Dirk Mueller 2006-01-23 08:58:39 UTC
nonsense. first of all the SIGKILL crap comes from glibc and second, those interaction issues with glibc are long fixed. 

Comment 19 Thorsten Kukuk 2006-01-23 12:45:23 UTC
glibc never blocks SIGKILL itself.
Comment 20 Dirk Mueller 2006-01-23 12:52:49 UTC
it does, anyway, the issue is the access of deleted memory after dlclose() here. 

Comment 21 Thorsten Kukuk 2006-01-23 12:54:46 UTC
glibc has no code for this, I looked at it.
Comment 22 Dirk Mueller 2006-01-23 13:02:45 UTC
by 0x1C986E39: dlclose (in /lib/libdl-2.3.5.so)

Comment 23 Dirk Mueller 2006-01-23 13:03:19 UTC
this is getting nowhere, perhaps Lubos has a minute of looking at it. 
Comment 24 Lubos Lunak 2006-01-23 13:22:20 UTC
You're using KDE3.5 from supplementary, right? Update to the latest akode packages and try if you can still reproduce the problem.
Comment 25 Joe Harmon 2006-01-23 22:24:13 UTC
(In reply to comment #24)
> You're using KDE3.5 from supplementary, right? Update to the latest akode
> packages and try if you can still reproduce the problem.

No, I have been using the standard KDE packages that come with SUSE Linux 10.0, although I have been keeping up to date with Yast Online Update. It is also important to note that I am running the KDE applications (Kontact) though GNOME. But I will update to the latest and see if I can duplicate the issue.
Comment 26 Dirk Mueller 2006-01-24 09:45:00 UTC
That could be crucial point - knotify isn't unloading itself that often when not being run under GNOME. 
Comment 27 Joe Harmon 2006-02-02 15:31:40 UTC
Created attachment 66207 [details]
Another crash

It is happening on KDE 3.5 as well. I updated using the supplementary directory. I even used the latest packages out under the kirk.provo.novell.com/dist/full/full-10.0-i386 directlry stucture and it still crashes
Comment 28 Lubos Lunak 2006-02-02 16:13:03 UTC
What does rpm -qa | grep akode give you?
Comment 29 Joe Harmon 2006-02-02 16:18:56 UTC
(In reply to comment #28)
> What does rpm -qa | grep akode give you?
> 
libakode-2.0.0-5
Comment 30 Joe Harmon 2006-03-07 18:53:58 UTC
I am no longer having any crashes with knode running in NLD 10 beta6.