Bug 124460

Summary: artsd is constantly crashing with glib2 = 2.10.1
Product: [Unmaintained] arts Reporter: Artem S. Tashkinov <aros>
Component: generalAssignee: Stefan Westerfeld <stefan>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: A screenshot of the problem

Description Artem S. Tashkinov 2006-03-29 01:13:30 UTC
Version:           1.5.1 (using KDE KDE 3.5.1)
Installed from:    Compiled From Sources
Compiler:          GCC 4.0.2 i686 vanilla
OS:                Linux

My artsd is constantly crashing with this error message:

***MEMORY-ERROR***: [artsd_pid]: GSlice: failed to allocate 248 bytes (alignment: 256): Invalid argument

Sometimes kdesktop even cannot start due to this bug - I have to restart artsd manually, then start kdesktop.

My distro is FC5 with vanilla KDE 3.5.1 compiled from sources.
Comment 1 Artem S. Tashkinov 2006-03-29 11:34:31 UTC
Created attachment 15346 [details]
A screenshot of the problem

This is how all is happening:

from my ~/.xsession-errors

***MEMORY-ERROR***: [2688]: GSlice: failed to allocate 248 bytes (alignment:
256): Invalid argument

DCOP aborting (delayed) call from 'anonymous-2687' to 'kdesktop'
ERROR: Communication problem with kdesktop, it probably crashed.
Comment 2 Rex Dieter 2006-03-29 15:55:03 UTC
For the record, fc5 has glib2-2.10.1, and should be fine.  Did you build arts against and older version (from a fc5 test release perhaps?)
Comment 3 Artem S. Tashkinov 2006-03-30 09:26:50 UTC
Right now I am not sure what is wrong with KDE but this error persists even for the newly created user (i.e. /home/$USER is totally empty).

I've tried running startkde line by line manuall in a safemode and then I found out that this very line

kwrapper ksmserver $KDEWM 

causes this output:

------------

Warning: connect() failed: : No such file or directory
DCOPClient::attachInternal. Attach failed Could not open network socket
kbuildsycoca running...

***MEMORY-ERROR***: [4808]: GSlice: failed to allocate 248 bytes (alignment: 256): Invalid argument

DCOP aborting (delayed) call from 'anonymous-4807' to 'kdesktop'
ERROR: Communication problem with kdesktop, it probably crashed.

------------

This is happenening with a newly compiled KDE 3.5.2 with FC5 devel packages. I'm absolutely stuck.
Comment 4 Artem S. Tashkinov 2006-03-30 10:26:43 UTC
I have resolved this bug by adding to my /etc/profile.d/glib2.sh file (If you don't have this file you may add this line to startkde or /etc/profile files) this line:

export G_SLICE=always-malloc

Feel free to close this bug, 'cause I do not understand what's going on in my case - I don't even understand why kdesktop fails to start and what application 'causes this misbehavior.


Comment 5 Artem S. Tashkinov 2006-03-30 10:31:46 UTC
artsd_pid in the first message:

***MEMORY-ERROR***: [artsd_pid]: GSlice: failed to allocate 248 bytes (alignment: 
256): Invalid argument

was actually my guess - I think it's another application which PID is shown.
Comment 6 Rex Dieter 2006-03-30 14:26:48 UTC
Looks like a glib2 bug
Comment 7 Artem S. Tashkinov 2006-03-30 16:26:55 UTC
It might be a bug in glib2 but nonetheless Fedora Core's 5 KDE 3.5.1 works flawlessly and my own build doesn't. I tried finding any glib2 related patches in the FC5 source tree with no success.

I use vanilla KDE 3.5.2/Qt 3.3.6/GCC 4.1.0 and simple compilation flags like "-O2 -march=i686" - that's all. Maybe this bug is somehow related to extra packages which I install for KDE like: id3lib, lame, libdvdcss, libdvdnav, libdvdplay, libdvdread, libid3tag, libmad, libtunepimp, taglib, xine, xvidcore.

The final note: with glib2 2.8.6 everything works fine.
Comment 8 Rex Dieter 2006-03-30 16:42:49 UTC
Well, kde-redhat's kde-3.5.2 pkgs WORKFORME on fc5 too.  FYI, redhat/fedora arts contains a minor glib patch, and is built with CFLAGS:
-O2 -g -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables

Either way, kde's bugzilla is not the place for this.  If you wish further discussion, I'd suggest taking it to one of the kde mailing lists, like kde-linux:
http://mail.kde.org/mailman/listinfo/kde-linux
Comment 9 Artem S. Tashkinov 2006-11-18 21:44:34 UTC
I have upgraded to FC6 and the bug appeared again. Now even kdesktop cannot start.

I had to add `export G_SLICE=always-malloc` into my ~/.bash_profile to get KDE working.
Comment 10 Rex Dieter 2006-11-20 16:00:37 UTC
Yeah, but fc6 doesn't have glib2-2.10.1, but glib2-2.12.3.  

Besides, there's a multitude of FC6 kde users, and I haven't seen or heard even a whisper about this problem there (until now).

Regardless, if this is indeed a glib2 bug, bugs.kde.org is no place for it, imo.
Comment 11 Artem S. Tashkinov 2006-11-22 05:37:26 UTC
Almost no FC user uses selfcompiled KDE as I do and the problem persists.

It's not a glib2 bug because all other applications which depend on it work flawlessly.

Yes, I have a different version of glib2 now, that is: glib2-2.12.3-2.fc6

If you have no intentions to resolve this bug, I will not ever touch it again. This clearly shows that Open Source developers work for themselves.


Arivederchi
Comment 12 Artem S. Tashkinov 2006-11-28 19:03:08 UTC
Shame on you:

http://bugs.kde.org/show_bug.cgi?id=125740

http://foo-projects.org/pipermail/lunar-dev/2006-May/005754.html

It's a duplicate noone wants to care about.
Comment 13 Lubos Lunak 2006-11-28 20:16:50 UTC

*** This bug has been marked as a duplicate of 125740 ***