Bug 554509 - [abrt] crash in gnomebaker-0.6.4-6.fc12
Summary: [abrt] crash in gnomebaker-0.6.4-6.fc12
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gnomebaker
Version: 12
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tomas Smetana
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:d4ed06eea5670868153585892b4...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-11 21:02 UTC by samy
Modified: 2010-01-19 19:47 UTC (History)
1 user (show)

Fixed In Version: 0.6.4-7.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-15 14:40:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (22.59 KB, text/plain)
2010-01-11 21:02 UTC, samy
no flags Details

Description samy 2010-01-11 21:02:51 UTC
abrt 1.0.3 detected a crash.

How to reproduce
-----
1. add a few files to the data dvd
2.
3.

Attached file: backtrace
cmdline: gnomebaker
component: gnomebaker
executable: /usr/bin/gnomebaker
kernel: 2.6.31.9-174.fc12.i686
package: gnomebaker-0.6.4-6.fc12
rating: 4
reason: Process was terminated by signal 6 (Aborted)

Comment 1 samy 2010-01-11 21:02:54 UTC
Created attachment 383094 [details]
File: backtrace

Comment 2 Tomas Smetana 2010-01-12 08:12:49 UTC
Hello,
  there seems to be an invalid free() in one of the GTK callbacks.  I got more similar tracebacks but this one might even be useful.  There is also a bug #554514 with very similar reproducer.  I will try to reproduce the error and hopefully find the cause.  It might be that something has changed in the GTk or glib and gnomebaker just needs to be recompiled with the new libraries.

Comment 3 Tomas Smetana 2010-01-13 14:43:08 UTC
Hello,
  I think I have a cause: gnomebaker allocates its own GtkSelectionData structures using g_new0() but then uses the stock gtk_data_selection_free() to release memory.  The GTK function however assumes the memory has been allocated as a GLib memory slice.  This appears in several places in the code and seems to lead to the crashes as the one you observed.

If I'm right then this shouldn't be difficult to patch (change g_new0 to g_slice_new0).

Comment 4 samy 2010-01-13 20:21:48 UTC
Hi,
  thank you! When is the patch ready? Can i download from repo as package update?

Comment 5 Fedora Update System 2010-01-14 08:18:16 UTC
gnomebaker-0.6.4-7.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/gnomebaker-0.6.4-7.fc12

Comment 6 samy 2010-01-14 17:50:40 UTC
This is a good patch, no crash.

Comment 7 Fedora Update System 2010-01-19 19:46:50 UTC
gnomebaker-0.6.4-7.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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