[Mono-bugs] [Bug 21147] New - Reflection
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
27 Feb 2002 21:11:13 -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 igor@pobox.com.
http://bugzilla.ximian.com/show_bug.cgi?id=21147
--- shadow/21147 Wed Feb 27 16:11:12 2002
+++ shadow/21147.tmp.21011 Wed Feb 27 16:11:12 2002
@@ -0,0 +1,58 @@
+Bug#: 21147
+Product: Mono/Runtime
+Version: unspecified
+OS: Red Hat 7.2
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: igor@pobox.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Reflection
+
+Description of Problem:
+(new AssemblyBuilder()).Save("bar.exe") segfaults
+
+Steps to reproduce the problem:
+using System.Reflection.Emit;
+
+public class ReflectionTest {
+ public static int Main() {
+ (new AssemblyBuilder()).Save("bar.exe");
+ return 0;
+ }
+}
+
+Actual Results:
+No segfault
+
+Expected Results:
+Segfaults
+
+Additional Information:
+Program received signal SIGSEGV, Segmentation fault.
+0x8084d19 in mono_image_build_metadata (assemblyb=0x80e9890) at
+reflection.c:1434
+1434
+ assembly->text_rva = START_TEXT_RVA;
+(gdb) bt
+#0 0x8084d19 in mono_image_build_metadata (assemblyb=0x80e9890) at
+reflection.c:1434
+#1 0x80853de in mono_image_get_header (assemblyb=0x80e9890,
+buffer=0x80ee378 "", maxsize=65536)
+ at reflection.c:1614
+#2 0x808ca7e in ves_icall_get_data_chunk (assb=0x80e9890, type=0,
+buf=0x80ee368) at icall.c:229
+#3 0x80edf75 in ?? () at eval.c:41
+#4 0x80eb154 in ?? () at eval.c:41
+#5 0x807c9ba in jit_exec_main (method=0x80e18d0, args=0x0) at jit.c:3148
+#6 0x807cac0 in mono_jit_exec (domain=0x80b6270, assembly=0x80e18c0,
+argc=0, argv=0xbffff51c) at jit.c:3184
+#7 0x807d7d7 in main (argc=2, argv=0xbffff514) at jit.c:3445
+#8 0x401165d7 in __libc_start_main () from /lib/libc.so.6