View Single Post
Old 08-15-2008, 10:51 PM   #13
Dabon
Connoisseur
Dabon doesn't litterDabon doesn't litter
 
Posts: 80
Karma: 111
Join Date: Apr 2008
Device: iliad V2; ipad 2-64GB,3G
More info

I am found more info on the error (bug and debugging) and I am wondering if should go ahead with the suggested debug...:


1.
Gslice' crash messages after KDE has been built with --enable-fast-malloc=full

If you are using a recent version of Glib (version >= 2.9.1) and have built kdelibs using the configure option --enable-fast-malloc=full, you are likely to see aRts related crashes which output an error message on the terminal:

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

This is due to a clash in the way that arts/kdelibs and Glib handle memory allocation. There are two alternative solutions to this: one is to not use --enable-fast-malloc=full; the other is to set an environment variable for the KDE session

G_SLICE=always-malloc


2.
G_SLICE. This environment variable allows reconfiguration of the GSlice memory allocator.
always-malloc

This will cause all slices allocated through g_slice_alloc() and released by g_slice_free1() to be actually allocated via direct calls to g_malloc() and g_free(). This is most useful for memory checkers and similar programs that use Bohem GC alike algorithms to produce more accurate results. It can also be in conjunction with debugging features of the system's malloc implementation such as glibc's MALLOC_CHECK_=2 to debug erroneous slice allocation code, allthough debug-blocks usually is a better suited debugging tool.




Thanks,

Dabon
Dabon is offline   Reply With Quote