Bug 435201

Summary: Frysk using java-gnome 2.16.x crashes with a GSlice error on f8
Product: Red Hat Enterprise Linux 5 Reporter: Andrew Cagney <cagney>
Component: libgtk-javaAssignee: Stepan Kasal <kasal>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 5.2CC: syeghiay
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-11-07 19:26:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 435200    
Bug Blocks:    

Description Andrew Cagney 2008-02-27 21:48:32 UTC
+++ This bug was initially created as a clone of Bug #435200 +++

Opened by Sami Wagiaalla (reporter, points: 7)
2008-02-12 18:38 UTC [reply]

Steps to reproduce:
1. Run frysk
2. Wait for a while
3. It crashes with the error:
   ***MEMORY-ERROR***: Frysk[24796]: GSlice: assertion failed:
sinfo->n_allocated > 0


Stack trace:


Other information:
--Please note that this is a bug against the java-gnome 2.16.x bindings not 4.0
bindings.--

Turns out this is caused by freeing of TreeIter objects using g_slice_free when
they were allocated using g_malloc.

I'll be on the lookout for other instances of this...
Patch is following soon

Comment 1 Andrew Cagney 2008-02-27 21:52:49 UTC
This patch fixes incorrect freeing of GTK objects (the wrong method was being used).

Risk of not applying upstream patch.

-> High; frysk, and any other gtk java app that uses trees will crash or corrupt
memory shortly after being started

Risk of applying this patch:

-> Very low; the current code is corrupting memory which this fixes.

Comment 2 Stepan Kasal 2008-07-21 12:04:25 UTC
The patch is small and strightforward, see
http://bugzilla.gnome.org/attachment.cgi?id=105075&action=edit