Bug 435201 - Frysk using java-gnome 2.16.x crashes with a GSlice error on f8
Summary: Frysk using java-gnome 2.16.x crashes with a GSlice error on f8
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: libgtk-java
Version: 5.2
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: Stepan Kasal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 435200
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-02-27 21:48 UTC by Andrew Cagney
Modified: 2013-04-12 19:34 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-11-07 19:26:35 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 516078 0 None None None Never

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


Note You need to log in before you can comment on or make changes to this bug.