https://bugzilla.novell.com/show_bug.cgi?id=341261
Summary: Strange error when executing VB6 -> VB.NET migrated code
(mscorlib.dll contains native code ??)
Product: Mono: Runtime
Version: 1.2.5
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: misc
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
Found By: ---
We're trying to migrate some VB6 code to VB.NET and then mono, so that we can
run int on our Linux clusters.
The code depends on native C libraries that are available both in Windows and
Linux. It's been compiled by MS VS 2005.
The test program runs correctly in Windows under MS .NET 2.0 runtime.
What we are seeing is a pop-up in Windows, and a console error output in Linux,
complaining about a object array accessor method "containing native code" in
mscorlib.dll (the mono-supplied one).
The error below is the program output in Linux (amd64, mono 1.2.5.1). When run
under mono 1.2.5.2 on Windows x86, the error is the same, only in pop-up form
and referencing the file "c:\Program
Files\Mono-1.2.5.2\lib\mono\2.0\mscorlib.dll".
The error output is this:
[EMAIL PROTECTED]:~/test/ntest> mono TreeExecutionTest.exe
** ERROR **: Method 'System.Object[]:Get (int)' in assembly
'/usr/lib/mono/2.0/mscorlib.dll' contains native code and mono can't run it.
The assembly was probably cre
ated by Managed C++.
aborting...
Stacktrace:
at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke
(object,object[]) <0x0000b>
at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke
(object,object[]) <0xffffffff>
at System.Reflection.MonoMethod.Invoke
(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
<0x00112>
at System.MonoType.InvokeMember
(string,System.Reflection.BindingFlags,System.Reflection.Binder,object,object[],System.Reflection.ParameterModifier[],System.Globali
zation.CultureInfo,string[]) <0x004e3>
at System.Type.InvokeMember
(string,System.Reflection.BindingFlags,System.Reflection.Binder,object,object[],System.Globalization.CultureInfo)
<0x00052>
at Microsoft.VisualBasic.CompilerServices.LateBinding.LateIndexGet
(object,object[],string[]) <0x00072>
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateIndexGet
(object,object[],string[]) <0x0002d>
at InterfacesTrees.InterfacesTrees.v_MainBermudanSwaption
(object[],object[],object[],object[],object[2],bool) <0x0041b>
at TreeExecutionTest.Program.Main (string[]) <0x01410>
at (wrapper runtime-invoke)
TreeExecutionTest.Program.runtime_invoke_void_string[]
(object,intptr,intptr,intptr) <0xffffffff>
Native stacktrace:
mono [0x5182f8]
/lib64/tls/libpthread.so.0 [0x2a959f4260]
/lib64/tls/libc.so.6(gsignal+0x3d) [0x2a95c822fd]
/lib64/tls/libc.so.6(abort+0x12e) [0x2a95c838ae]
/opt/gnome/lib64/libglib-2.0.so.0 [0x2a9579e6b6]
/opt/gnome/lib64/libglib-2.0.so.0(g_log+0x83) [0x2a9579e743]
mono [0x505009]
mono [0x505622]
mono(mono_runtime_invoke+0xa) [0x455a8a]
mono(mono_runtime_invoke_array+0x208) [0x45aef8]
mono [0x4627c0]
[0x40247666]
Debug info from gdb:
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Aborted
[EMAIL PROTECTED]:~/test/ntest>
--
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs