[Mono-bugs] [Bug 341261] New: Strange error when executing VB6 -> VB.NET migrated code (mscorlib.dll contains native code ??)
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Nov 13 05:46:07 EST 2007
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: mono-bugs at ximian.com
ReportedBy: juanj.g_soria at grupobbva.com
QAContact: mono-bugs at ximian.com
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:
u514252 at ldmux152:~/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
u514252 at ldmux152:~/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.
More information about the mono-bugs
mailing list