! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
64bit bug in panel-properties.c
Status:
RESOLVED: FIXED
Severity:
critical
Product:
Xfce4-panel

Comments

Description Michael Lorenz 2008-03-24 01:07:06 CET
User-Agent:       Opera/9.26 (Macintosh; PPC Mac OS X; U; en)
Build Identifier: 

gdk-property-change() expects a long *parameter when size==32, when running LP64 that means 64bit. Counter-intuitive but that's what X wants. This needs to be changed:
/* transparency and autohide */
static void
_set_transparent (Panel    *panel,
                  gboolean  transparent)
{
    PanelPrivate *priv;
-   guint         opacity;
+   gulong        opacity;

    if (!GTK_WIDGET (panel)->window)

otherwise libX11 will run into a SIGBUS sooner or later, at least on platforms that enforce natural alignment in memory accesses ( as in pretty much anything except amd64 ) 

Reproducible: Always

Steps to Reproduce:
1.build xfce on any 64bit RISC as LP64 binaries
2.watch xfce4-panel crash with SIGBUS
3.



Expected Results:  
SIGBUS

not crash
Comment 1 Jasper Huijsmans editbugs 2008-07-16 09:01:26 CEST
Thanks for reporting! I finally got around to do something on Xfce again. I fixed the issue in SVN revision 27309, so it will be in the next version of Xfce.
Comment 2 andras barna 2008-08-05 06:33:02 CEST
*** Bug 3976 has been marked as a duplicate of this bug. ***

Bug #3961

Reported by:
Michael Lorenz
Reported on: 2008-03-24
Last modified on: 2010-11-20
Duplicates (1):
  • 3976 xfce4-panel receives SIGBUS

People

Assignee:
Nick Schermer
CC List:
1 user

Version

Attachments

Additional information