Bug 116304 - 64bit bug in dbus-1-mono (causes banshee crash, probably other problems)
Summary: 64bit bug in dbus-1-mono (causes banshee crash, probably other problems)
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Mono (show other bugs)
Version: RC 1
Hardware: x86-64 All
: P5 - None : Critical
Target Milestone: ---
Assignee: Andreas Jaeger
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-10 01:23 UTC by Dan Winship
Modified: 2005-09-10 08:53 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Winship 2005-09-10 01:23:37 UTC
There's a really awful 32-bit assumption in dbus/mono/Arguments.cs. This
patch isn't the right fix, but it works around the problem for now by
just always allocating enough memory for the 64-bit structure whether
we're on 32 or 64 bit.

Index: mono/Arguments.cs
===================================================================
RCS file: /cvs/dbus/dbus/mono/Arguments.cs,v
retrieving revision 1.10
diff -u -u -0 -r1.10 Arguments.cs
--- mono/Arguments.cs   9 Mar 2005 04:36:15 -0000       1.10
+++ mono/Arguments.cs   10 Sep 2005 01:16:10 -0000
@@ -13 +13 @@
-    internal const int DBusMessageIterSize = 14*4;
+    internal const int DBusMessageIterSize = 72;
Comment 1 Dan Winship 2005-09-10 01:24:21 UTC
JP says this is thoenig@suse.de's package
Comment 2 JP Rosevear 2005-09-10 01:39:11 UTC
It affects banshee and probably f-spot and tomboy as well.
Comment 3 Andreas Jaeger 2005-09-10 08:40:37 UTC
Dan, you can always submit somebody else's package, no problem with that.

I'll take care of this myself now.  thanks for the hack.
Comment 4 Andreas Jaeger 2005-09-10 08:53:47 UTC
Fixed package submitted and checked-in for RC2.