[Mono-bugs] [Bug 77968][Maj] New - crash when passing struct to native code on ppc32

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Mar 31 14:40:18 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by lewing at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=77968

--- shadow/77968	2006-03-31 14:40:18.000000000 -0500
+++ shadow/77968.tmp.19080	2006-03-31 14:40:18.000000000 -0500
@@ -0,0 +1,35 @@
+Bug#: 77968
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: JIT
+AssignedTo: lupus at ximian.com                            
+ReportedBy: lewing at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: crash when passing struct to native code on ppc32
+
+http://bugzilla.gnome.org/show_bug.cgi?id=336758 is an f-spot bug that only
+happens on ppc32 linux.  It appears to be caused by passing a struct
+containing three doubles
+
+public struct ColorCIExyY {
+	public double x;
+ 	public double y;
+ 	public double Y;
+} 
+
+to a native function.  kangaroo did some digging and said this.
+
+(13:27:17) kangaroo: we should be passing that struct by addr
+(13:27:25) kangaroo: at least according to my read of the ppc32 elf sppec
+(13:27:27) kangaroo: and we're not
+(13:27:46) kangaroo: //* set the next to 0 once inssel-ppc.brg is updated */
+(13:27:46) kangaroo: #define PPC_PASS_STRUCTS_BY_VALUE 1


More information about the mono-bugs mailing list