Bug 125740 - fireworks screensaver crash when glib-2 greater than 2.8.6
Summary: fireworks screensaver crash when glib-2 greater than 2.8.6
Status: RESOLVED WORKSFORME
Alias: None
Product: kcontrol
Classification: Unmaintained
Component: kcmscreensaver (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kscreensaver bugs tracking
URL:
Keywords:
: 124460 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-17 15:45 UTC by Zbigniew Luszpinski
Modified: 2008-06-18 22:53 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zbigniew Luszpinski 2006-04-17 15:45:12 UTC
Version:            (using KDE 3.5.2, compiled sources)
Compiler:          gcc version 3.4.5
OS:                Linux (i686) release 2.6.16.5

The fireworks screensaver crash when glib library is greater than 2.8.6. I've  checked glib up to 2.10.2 version and the last working one with fireworks is 2.8.6. Many apps require minimum glib 2.10 so I have to choose between fireworks screensaver or new apps. Could you update fireworks to be compatible with glib 2.10?

The fireworks screensaver displays error on console from which X was launched:

***MEMORY-ERROR***: [4332]: GSlice: failed to allocate 248 bytes (alignment: 256): Bad argument
Comment 1 Thiago Macieira 2006-04-20 09:20:41 UTC
The bug is in glib-2. I think they have already put out a new version that works.

Can you confirm?
Comment 2 Zbigniew Luszpinski 2006-05-08 02:43:54 UTC
The last one is glib-2.10.2 available since April 2006. This glib is available from http://ftp.gnome.org/pub/GNOME/platform/2.14/2.14.1/sources/ Still fireworks screensaver does not work. I asked on gnome bugzilla if they can confirm glib bug. Will wait will see.
Comment 3 Wilco 2006-05-10 23:59:29 UTC
The problem is that arts crashes with newer glib versions. This is a bug in arts and not in glib. But it doesn't seem to happen on all platforms. I run it with glic-2.4, gcc-4.1 and glib2-2.10.2.
This is the error I get:
***MEMORY-ERROR***: [1033]: GSlice: failed to allocate 248 bytes (alignment: 256): Invalid argument
Comment 4 Zbigniew Luszpinski 2006-05-11 00:59:14 UTC
The last memory-bugless glib is glib-2.9.0
The first glib with memory-bug is glib-2.9.1
I opened similar bug in gnome bugzilla. Hope this will be fixed by gnome or KDE or both teams. It looks for me the KDE arts and fireworks have to be updated.
Comment 5 Zbigniew Luszpinski 2006-05-11 01:10:00 UTC
Here is changelog 2.9.0 to 2.9.1 (scroll down to end of page):
http://mail.gnome.org/archives/gnome-announce-list/2005-December/msg00009.html
This could be the reason for memory-error (from changelog):
* Memory management
 - The slice allocator is implemented [Tim Janik]
 - g_slice_free_chain() has been renamed to 
   g_slice_free_chain_with_offset()  [Tim, Behdad Esfahbod]
 - Mem chunks are deprecated [Matthias Clasen]

* New API:
 - GList and GSList now have sort functions which take an
   extra user data argument [Martyn Russell]
Comment 6 Wilco 2006-05-11 18:30:54 UTC
Well I managed to fix this problem. I compiled KDE myself and optimized kdelibs using --enable-fast-malloc=full.
This in combination with glib>=2.9.1 causes these problems. The problems are not in arts but in kdelibs (which also contain an arts part).

This is the same problem as bugs 124460 and 120285.
This would also explain why it doesn't happen on all distros with glib>=2.9.1 (gentoo for example disables fast-malloc).

So the fix would be not to use --enable-fast-malloc when compiling the packages (this is off by default). The glib version doesn't matter anymore.
Comment 7 Zbigniew Luszpinski 2006-05-12 00:04:43 UTC
Which parts of KDE uses fast malloc with errors?
Browsing compilation logs I see that only modules kdelibs and kdesdk tells about use of fast malloc.

If I compile kdelibs only without fast malloc the problem will gone away?
Comment 8 Wilco 2006-05-12 20:03:23 UTC
Yep for me that works. Compiling kdelibs without malloc support fixes this problem. 
Comment 9 Chris Howells 2006-05-12 20:37:01 UTC
As far as I know fast malloc is deprecated and should not be used. Adding Lubos to CC since he can hopefully provide further insight.
Comment 10 Zbigniew Luszpinski 2006-05-14 04:26:22 UTC
I confirm. Removing --enable-fast-malloc from configure options fixed bug.
Comment 11 Artem S. Tashkinov 2006-11-28 19:06:04 UTC
artsd and kdesktop also fail to work normally with this flag enabled.

You can now safely close PR124460. It's a pity getting such a response from KDE developers.
Comment 12 Lubos Lunak 2006-11-28 20:16:52 UTC
*** Bug 124460 has been marked as a duplicate of this bug. ***