[Mono-bugs] [Bug 22853] New - Segfault in mymono_metadata_type_hash()

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
31 Mar 2002 20:10:49 -0000


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 dick@ximian.com.

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

--- shadow/22853	Sun Mar 31 15:10:49 2002
+++ shadow/22853.tmp.1296	Sun Mar 31 15:10:49 2002
@@ -0,0 +1,51 @@
+Bug#: 22853
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dick@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Segfault in mymono_metadata_type_hash()
+
+Make sure corlib includes the Process stub that I committed earlier today,
+then in mcs/nant, run: mint mcs.exe --recurse 'src/*.cs'
+
+(You might need to ifdef out all of the contents of AssemblyInfo.cs too if
+that mcs grammar bug hasn't been fixed yet)
+
+(1024) Entering System.Reflection.MemberFilter::Invoke (0x8407208
+[0x845deec] [0x829a178] )
+(1024) Entering System.Type::FilterName_impl ([0x845deec] [0x829a178] )
+(1024) Entering System.Reflection.MonoMethod::get_Name (0x845deec )
+(1024) Entering System.Reflection.MonoMethodInfo::get_method_info ([vt:
+0xbfffce8c] [0xbfffceb4] )
+
+Program received signal SIGSEGV, Segmentation fault.
+[Switching to Thread 1024 (LWP 1223)]
+0x08075518 in mymono_metadata_type_hash (t1=0x886ec20) at reflection.c:2002
+2002
+		return hash << 7 | g_str_hash (t1->data.klass->name);
+
+(gdb) print *t1
+$1 = {data = {klass = 0x0, type = 0x0, array = 0x0, method = 0x0}, attrs =
+0, type = 18, num_mods = 0, byref = 0, pinned = 0, modifiers = 0x886ec28}
+
+(gdb) bt
+#0  0x08075518 in mymono_metadata_type_hash (t1=0x886ec20) at reflection.c:2002
+#1  0x080990c0 in g_hash_table_lookup_node (hash_table=0x8150360, 
+    key=0x886ec20) at mono-hash.c:208
+#2  0x080983a0 in mono_g_hash_table_lookup (hash_table=0x8150360, 
+    key=0x886ec20) at mono-hash.c:243
+#3  0x080755ad in mono_type_get_object (domain=0x80bff90, type=0x886ec20)
+    at reflection.c:2019
+#4  0x0807ed8d in ves_icall_get_method_info (method=0x886ebe8, info=0xbfffceb4)
+    at icall.c:707