[Mono-list] Segmentation fault running monodis
Chris Seaton
chris at chrisseaton.com
Sun Mar 11 12:19:57 EDT 2007
Running monodis in gdb on my assembly I get this error
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x0027e83c in mono_class_from_generic_parameter (param=0x1241330,
image=0x0, is_mvar=0) at class.c:3251
3251 image = klass->image;
(gdb) bt
#0 0x0027e83c in mono_class_from_generic_parameter (param=0x1241330,
image=0x0, is_mvar=0) at class.c:3251
#1 0x002c4db8 in do_mono_metadata_parse_type (type=0xbfffe9bc,
m=0x1800a00, container=0x12412d0, ptr=0x7cb655 "\006\025\022\035\001
\022\030\004\006\021??\006 \001\022??\016\005 ", rptr=0xbfffea28) at
metadata.c:2193
#2 0x002c52cc in mono_metadata_parse_type_full (m=0x1800a00,
container=0x12412d0, mode=16, opt_attrs=0, ptr=0x7cb652 "\035\023",
rptr=0xbfffeaa4) at metadata.c:1562
#3 0x002c576c in mono_metadata_parse_method_signature_full
(m=0x1800a00, container=0x12412d0, def=0, ptr=0x7cb652 "\035\023",
rptr=0xbfffeab8) at metadata.c:1817
#4 0x000068fc in dis_method_list (klass_name=0x7c5d8a "Multiset`1",
m=0x1800a00, start=204, end=211, type_container=0x12412d0) at main.c:896
#5 0x000079f0 in dis_type (m=0x1800a00, n=31, is_nested=0,
forward=0) at main.c:1272
#6 0x00008340 in dis_types (m=0x1800a00, forward=0) at main.c:1387
#7 0x00008c1c in disassemble_file (file=0x19134 "?") at main.c:1522
#8 0x00008e74 in main (argc=2, argv=0xbffff37c) at main.c:1896
(gdb) print klass
$1 = (MonoClass *) 0x1243fb0
(gdb) print klass->image
$2 = (MonoImage *) 0x0
Mono 1.2 on OS X. The assembly is compiled using gmcs and uses
generics but nothing else unusual. Any idea what's wrong?
Thanks
Chris Seaton
More information about the Mono-list
mailing list