After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 571892 - Crash in gtk_hex_new
Crash in gtk_hex_new
Status: RESOLVED FIXED
Product: ghex
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GHex maintainers
GHex maintainers
: 571099 (view as bug list)
Depends on:
Blocks: 571099
 
 
Reported: 2009-02-15 22:37 UTC by Dodji Seketeli
Modified: 2009-02-22 12:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This patch seems to fix the bug (1.11 KB, patch)
2009-02-15 22:40 UTC, Dodji Seketeli
committed Details | Review

Description Dodji Seketeli 2009-02-15 22:37:47 UTC
It looks like a random crash appears at least on x86_64 targets in 64 bits mode, when calling gtk_hex_new.

The call stack of the crash looks like:

  • #0 IA__g_type_fundamental
    at gtype.c line 3680
  • #1 IA__g_object_new
    at gobject.c line 1057
  • #2 gtk_hex_new
    at gtkhex.c line 2071

See patch below.
Comment 1 Dodji Seketeli 2009-02-15 22:40:03 UTC
Created attachment 128800 [details] [review]
This patch seems to fix the bug

GObject type ID should be instances of GType, not guint.
Comment 2 Tobias Mueller 2009-02-16 21:16:09 UTC
Works like charm for me and fixes bug 571099. Thanks for the patch!
Comment 3 Jonathon Jongsma 2009-02-19 04:54:07 UTC
sorry it took a little while.  I've applied this to svn
Comment 4 Tobias Mueller 2009-02-22 12:58:59 UTC
*** Bug 571099 has been marked as a duplicate of this bug. ***