[Mono-bugs] [Bug 402585] New: Mono runtime segfault on serializing structs

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jun 22 15:12:58 EDT 2008


           Summary: Mono runtime segfault on serializing structs
           Product: Mono: Runtime
           Version: 1.2.6
          Platform: IA64
        OS/Version: SLES 10
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: interop
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: rdarshan at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Customer

Created an attachment (id=223616)
 --> (https://bugzilla.novell.com/attachment.cgi?id=223616)
Source code and Makefile to build the failing example

I get a segfault on running the attached program that calls a C function from
C# and passes it a struct parameter. If the struct is passed to the C function
as a void*, it seems to work fine which leads me to believe that there is a bug
 in serializing the struct during the P/Invoke call. Note that the C function
must be called twice in a row in order to make the program crash.

To run the example, please run 'make' followed by 'mono TestNative.exe'

Output of gmcs --version:
Mono C# compiler version

Output of mono --version:
Mono JIT compiler version 1.2.6 (URL: xxxxxxxx)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
        TLS:           normal
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       normal
        Notifications: epoll
        Architecture:  ia64
        Disabled:      none

Output of g++ --version:
g++ (GCC) 4.1.0 (SUSE Linux)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list