[Mono-bugs] [Bug 471680] Marshal.PtrToStructure() error
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Feb 2 16:48:54 EST 2009
https://bugzilla.novell.com/show_bug.cgi?id=471680
User marcel.hauf at googlemail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=471680#c2
Marcel Hauf <marcel.hauf at googlemail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
Info Provider|marcel.hauf at googlemail.com |
--- Comment #2 from Marcel Hauf <marcel.hauf at googlemail.com> 2009-02-02 14:48:53 MST ---
I debugged it again with gdb in console:
(gdb) file ./MonoVMSamples
Reading symbols from
/home/marcel/Projects/MonoVMSamples/MonoVMSamples/bin/Debug/MonoVMSamples...done.
(gdb) start
Temporary breakpoint 1 at 0x400c74: file
/home/marcel/Projects/MonoVMSamples/MonoVMSamples/main.c, line 17.
Starting program:
/home/marcel/Projects/MonoVMSamples/MonoVMSamples/bin/Debug/MonoVMSamples
[Thread debugging using libthread_db enabled]
Temporary breakpoint 1, main (argc=1, argv=0x7fffffffdd58) at
/home/marcel/Projects/MonoVMSamples/MonoVMSamples/main.c:17
17 const char* file_name = "MyStructSample.dll";
(gdb) continue
Continuing.
[New Thread 0x7ffff7f91950 (LWP 23262)]
[New Thread 0x7ffff5767950 (LWP 23263)]
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff68a6560 in strlen () from /lib64/libc.so.6
(gdb) continue
Continuing.
Stacktrace:
at (wrapper managed-to-native) object.__icall_wrapper_mono_string_new_wrapper
(intptr) <0x00059>
at (wrapper managed-to-native) object.__icall_wrapper_mono_string_new_wrapper
(intptr) <0xffffffff>
at (wrapper unknown) CSharp.MyStruct.PtrToStructure (intptr,object)
<0xffffffff>
at (wrapper runtime-invoke) CSharp.MyStruct.runtime_invoke_void_intptr_object
(object,intptr,intptr,intptr) <0xffffffff>
at (wrapper managed-to-native)
System.Runtime.InteropServices.Marshal.PtrToStructure (intptr,System.Type)
<0x0005f>
at (wrapper managed-to-native)
System.Runtime.InteropServices.Marshal.PtrToStructure (intptr,System.Type)
<0xffffffff>
at CSharp.MyClass.SaveMyStruct (intptr) <0x00037>
at (wrapper runtime-invoke) CSharp.MyClass.runtime_invoke_void_intptr
(object,intptr,intptr,intptr) <0xffffffff>
Native stacktrace:
Inconsistency detected by ld.so: dl-open.c: 623: _dl_open: Assertion
`_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed!
[Thread 0x7ffff7f91950 (LWP 23262) exited]
[Thread 0x7ffff5767950 (LWP 23263) exited]
Program exited with code 0177.
Compiling with this arguments:
gcc -MMD "/home/marcel/Projects/MonoVMSamples/MonoVMSamples/main.c" -g -O0
-ggdb3 -DDEBUG -DMONODEVELOP
-I"/home/marcel/Projects/MonoVMSamples/MonoVMSamples/.prec/Debug" -D_REENTRANT
-pthread -I/usr/lib64/pkgconfig/../../include/mono-1.0 -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include
-c -o "/home/marcel/Projects/MonoVMSamples/MonoVMSamples/bin/Debug/main.o"
gcc -o
"/home/marcel/Projects/MonoVMSamples/MonoVMSamples/bin/Debug/MonoVMSamples"
"/home/marcel/Projects/MonoVMSamples/MonoVMSamples/bin/Debug/main.o"
-Wl,--export-dynamic -pthread -L/usr/lib64/pkgconfig/../../lib64 -lmono -ldl
-lpthread -lm -lgthread-2.0 -lrt -lglib-2.0
/usr/bin/gmcs
"/out:/home/marcel/Projects/MonoVMSamples/MonoVMSamples/bin/Debug/MyStructSample.dll"
"/r:System.dll" /noconfig /nologo /codepage:utf8 /warn:4 /debug:+ /debug:full
/optimize- -unsafe /define:"DEBUG" /t:library
"/home/marcel/Projects/MonoVMSamples/MyStructSample/MyClass.cs"
"/home/marcel/Projects/MonoVMSamples/MyStructSample/AssemblyInfo.cs"
--
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