[Mono-bugs] [Bug 80540][Nor] New - SIGSEGV when referenced assembly is missing

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jan 17 15:14:13 EST 2007


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 gert.driesen at pandora.be.

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

--- shadow/80540	2007-01-17 15:14:13.000000000 -0500
+++ shadow/80540.tmp.5288	2007-01-17 15:14:13.000000000 -0500
@@ -0,0 +1,180 @@
+Bug#: 80540
+Product: Mono: Runtime
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: SIGSEGV when referenced assembly  is missing
+
+Miguel recently fixed another similar issue, but I still get a SIGSEGV 
+with the attached repro.
+
+Apparently, the issue is not fixed for fields that reference types in a 
+missing assembly:
+
+** 
+(/home/monohead/mono/install/lib/pkgconfig/../../lib/mono/1.0/mcs.exe:26085
+): WARNING **: The following assembly referenced from /home/monohead/mono-
+test-projects/bugs/manual/bugnew/libb.dll could not be loaded:
+     Assembly:   liba    (assemblyref_index=1)
+     Version:    0.0.0.0
+     Public Key: (none)
+The assembly was not found in the Global Assembly Cache, a path listed in 
+the MONO_PATH environment variable, or in the location of the executing 
+assembly (/home/monohead/mono-test-projects/bugs/manual/bugnew).
+
+
+** 
+(/home/monohead/mono/install/lib/pkgconfig/../../lib/mono/1.0/mcs.exe:26085
+): WARNING **: Could not load file or assembly 'liba, Version=0.0.0.0, 
+Culture=neutral' or one of its dependencies.
+Stacktrace:
+
+  at (wrapper managed-to-native) System.MonoType.GetFields_internal 
+(System.Reflection.BindingFlags,System.Type) <0x00004>
+  at (wrapper managed-to-native) System.MonoType.GetFields_internal 
+(System.Reflection.BindingFlags,System.Type) <0xffffffff>
+  at System.MonoType.GetFields (System.Reflection.BindingFlags) <0x00010>
+  at System.Type.FindMembers 
+(System.Reflection.MemberTypes,System.Reflection.BindingFlags,System.Reflec
+tion.MemberFilter,object) <0x00290>
+  at Mono.CSharp.TypeHandle.GetMembers 
+(System.Reflection.MemberTypes,System.Reflection.BindingFlags) <0x0004a>
+  at Mono.CSharp.MemberCache.AddMembers 
+(System.Reflection.MemberTypes,System.Reflection.BindingFlags,Mono.CSharp.I
+MemberContainer) <0x0003d>
+  at Mono.CSharp.MemberCache.AddMembers 
+(System.Reflection.MemberTypes,Mono.CSharp.IMemberContainer) <0x00018>
+  at Mono.CSharp.MemberCache.AddMembers (Mono.CSharp.IMemberContainer) 
+<0x00039>
+  at Mono.CSharp.MemberCache..ctor (Mono.CSharp.IMemberContainer) <0x00159>
+  at Mono.CSharp.TypeHandle..ctor (System.Type) <0x00146>
+  at Mono.CSharp.TypeHandle.GetTypeHandle (System.Type) <0x0004e>
+  at Mono.CSharp.TypeHandle.GetMemberCache (System.Type) <0x0000b>
+  at Mono.CSharp.TypeManager.MemberLookup_FindMembers 
+(System.Type,System.Reflection.MemberTypes,System.Reflection.BindingFlags,s
+tring,bool&) <0x00195>
+  at Mono.CSharp.TypeManager.RealMemberLookup 
+(System.Type,System.Type,System.Type,System.Reflection.MemberTypes,System.R
+eflection.BindingFlags,string,System.Collections.IList) <0x00192>
+  at Mono.CSharp.TypeManager.MemberLookup 
+(System.Type,System.Type,System.Type,System.Reflection.MemberTypes,System.R
+eflection.BindingFlags,string,System.Collections.IList) <0x0001f>
+  at Mono.CSharp.Expression.MemberLookup 
+(System.Type,System.Type,System.Type,string,System.Reflection.MemberTypes,S
+ystem.Reflection.BindingFlags,Mono.CSharp.Location) <0x00061>
+  at Mono.CSharp.Expression.MemberLookupFinal 
+(Mono.CSharp.EmitContext,System.Type,System.Type,string,System.Reflection.M
+emberTypes,System.Reflection.BindingFlags,Mono.CSharp.Location) <0x0002c>
+  at Mono.CSharp.New.DoResolve (Mono.CSharp.EmitContext) <0x002d4>
+  at Mono.CSharp.Expression.Resolve 
+(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags) <0x00142>
+  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext) <0x00012>
+  at Mono.CSharp.ExpressionStatement.ResolveStatement 
+(Mono.CSharp.EmitContext) <0x00016>
+  at Mono.CSharp.StatementExpression.Resolve (Mono.CSharp.EmitContext) 
+<0x0001f>
+  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext) <0x001ef>
+  at Mono.CSharp.EmitContext.ResolveTopBlock 
+(Mono.CSharp.EmitContext,Mono.CSharp.ToplevelBlock,Mono.CSharp.Parameters,M
+ono.CSharp.IMethodData,bool&) <0x0018d>
+  at Mono.CSharp.EmitContext.EmitTopBlock 
+(Mono.CSharp.IMethodData,Mono.CSharp.ToplevelBlock) <0x00048>
+  at Mono.CSharp.MethodData.Emit (Mono.CSharp.DeclSpace) <0x00162>
+  at Mono.CSharp.Method.Emit () <0x00017>
+  at Mono.CSharp.TypeContainer.EmitType () <0x0024e>
+  at Mono.CSharp.RootContext.EmitCode () <0x00203>
+  at Mono.CSharp.Driver.MainDriver (string[]) <0x00a13>
+  at Mono.CSharp.Driver.Main (string[]) <0x00045>
+  at (wrapper runtime-invoke) System.Object.runtime_invoke_int_string[] 
+(object,intptr,intptr,intptr) <0xffffffff>
+
+Native stacktrace:
+
+ /home/monohead/mono/install/bin/mono [0x816677a]
+ /home/monohead/mono/install/bin/mono [0x8150633]
+ [0xffffe440]
+ [0xb72037ad]
+ [0xb7203769]
+ [0xb7202e61]
+ [0xb7202b93]
+ [0xb7202956]
+ [0xb72027e1]
+ [0xb7202742]
+ [0xb7201c7a]
+ [0xb7201a6f]
+ [0xb72018e7]
+ [0xb7201814]
+ [0xb71f1626]
+ [0xb71f0f6b]
+ [0xb71f0db8]
+ [0xb71f088a]
+ [0xb71df4d5]
+ [0xb71dde2d]
+ [0xb71dd923]
+ [0xb71dd763]
+ [0xb71dd6ff]
+ [0xb71dd6c0]
+ [0xb71f44e8]
+ [0xb71f3eee]
+ [0xb71dd651]
+ [0xb71dd0c3]
+ [0xb71dcf28]
+ [0xb71ec377]
+ [0xb71ebc0c]
+ [0xb7a5c0dc]
+ [0xb7a5a1f6]
+ [0xb7a537d5]
+ /home/monohead/mono/install/bin/mono(mono_runtime_exec_main+0x13c) 
+[0x80d926c]
+ /home/monohead/mono/install/bin/mono(mono_runtime_run_main+0x21f) 
+[0x80d94ff]
+ /home/monohead/mono/install/bin/mono(mono_main+0xfeb) [0x80592cb]
+ /home/monohead/mono/install/bin/mono [0x8057dfe]
+ /lib/libc.so.6(__libc_start_main+0xe6) [0xb7d91866]
+ /home/monohead/mono/install/bin/mono(dl_iterate_phdr+0x1a9) [0x8057d41]
+
+Debug info from gdb:
+
+Using host libthread_db library "/lib/libthread_db.so.1".
+[Thread debugging using libthread_db enabled]
+[New Thread -1210603840 (LWP 26085)]
+[New Thread -1219535968 (LWP 26089)]
+[New Thread -1213834336 (LWP 26086)]
+0xffffe410 in ?? ()
+  3 Thread -1213834336 (LWP 26086)  0xffffe410 in ?? ()
+  2 Thread -1219535968 (LWP 26089)  0xffffe410 in ?? ()
+  1 Thread -1210603840 (LWP 26085)  0xffffe410 in ?? ()
+
+Thread 3 (Thread -1213834336 (LWP 26086)):
+#0  0xffffe410 in ?? ()
+#1  0xb7a65438 in ?? ()
+#2  0x081f5ba0 in ?? ()
+#3  0x00000000 in ?? ()
+
+Thread 2 (Thread -1219535968 (LWP 26089)):
+#0  0xffffe410 in ?? ()
+#1  0xb74f5238 in ?? ()
+#2  0x00000003 in ?? ()
+#3  0x00000000 in ?? ()
+
+Thread 1 (Thread -1210603840 (LWP 26085)):
+#0  0xffffe410 in ?? ()
+#1  0xbfadbecc in ?? ()
+#2  0x00000000 in ?? ()
+#0  0xffffe410 in ?? ()
+
+
+To reproduce:
+1. extract the attached gzipped tar archive.
+2. run make


More information about the mono-bugs mailing list