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 620769 - [PATCH] gobject-introspection crashes on strict-aligned platforms
[PATCH] gobject-introspection crashes on strict-aligned platforms
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
2.24.x
Other FreeBSD
: Normal major
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-06-06 20:14 UTC by Joe Marcus Clarke
Modified: 2015-02-07 16:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix crashes on strict-aligned platforms (2.07 KB, patch)
2010-06-06 20:14 UTC, Joe Marcus Clarke
none Details | Review
Updated patch for strict align platforms (1.42 KB, patch)
2010-09-06 17:22 UTC, Joe Marcus Clarke
committed Details | Review

Description Joe Marcus Clarke 2010-06-06 20:14:38 UTC
Created attachment 162882 [details] [review]
Fix crashes on strict-aligned platforms

Try to use the g-ir-scanner on FreeBSD sparc64 triggers a crash due to alignment issues when copying certain value types.  The reason for this is that sparc64 requires strict alignment.  The attached patch, produced by Marius Strobl, corrects this problem.
Comment 1 Joe Marcus Clarke 2010-06-06 20:15:56 UTC
The stack trace seen when trying to build gobject-introspection on such a platform is:

  • #0 g_constant_info_get_value
    at ginfo.c line 2361
  • #0 g_constant_info_get_value
    at ginfo.c line 2361
  • #1 write_constant_info
    at generate.c line 784
  • #2 write_repository
    at generate.c line 1345
  • #3 main
    at generate.c line 1505

Comment 2 Johan (not receiving bugmail) Dahlin 2010-06-06 21:20:20 UTC
Comment on attachment 162882 [details] [review]
Fix crashes on strict-aligned platforms

This patch does not apply on trunk, it needs to be updated.
Comment 3 Johan (not receiving bugmail) Dahlin 2010-09-06 17:07:59 UTC
Joe, do you have an updated patch for this?
Comment 4 Joe Marcus Clarke 2010-09-06 17:22:41 UTC
Created attachment 169592 [details] [review]
Updated patch for strict align platforms
Comment 5 Johan (not receiving bugmail) Dahlin 2010-09-07 14:45:34 UTC
Thanks for the patch
Comment 6 André Klapper 2015-02-07 16:53:17 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]