[Mono-bugs] [Bug 77381][Nor] New - ARM build (and others) broken

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jan 27 04:48:34 EST 2006


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 alp at atoker.com.

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

--- shadow/77381	2006-01-27 04:48:34.000000000 -0500
+++ shadow/77381.tmp.6307	2006-01-27 04:48:34.000000000 -0500
@@ -0,0 +1,70 @@
+Bug#: 77381
+Product: Mono: Runtime
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: JIT
+AssignedTo: lupus at ximian.com                            
+ReportedBy: alp at atoker.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ARM build (and others) broken
+
+The JIT build for arm (and probably amd64/arm/sparc/itanium) is broken:
+
+gcc -I../.. -I../../libgc/include -I/usr/include/glib-2.0
+-I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0
+-I/usr/lib/glib-2.0/include -g -O2 -fno-strict-aliasing
+-Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes
+-Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes
+-Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align
+-Wwrite-strings -o mono -Wl,-version-script=./ldscript.mono main.o
+-Wl,--export-dynamic -Wl,--export-dynamic  ./.libs/libmono-static.a
+../os/.libs/libmonoos.a -pthread /usr/lib/libgthread-2.0.so
+/usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -lnsl -lpthread -lm
+-lrt
+./.libs/libmono-static.a(mini-exceptions.o)(.text+0x1770): In function
+`mono_print_thread_dump':
+/home/alp/mono-svn/mono/mono/mini/mini-exceptions.c:1061: undefined
+reference to `mono_arch_sigctx_to_monoctx'
+collect2: ld returned 1 exit status
+make[4]: *** [mono] Error 1
+make[4]: Leaving directory `/home/alp/mono-svn/mono/mono/mini'
+make[3]: *** [all] Error 2
+make[3]: Leaving directory `/home/alp/mono-svn/mono/mono/mini'
+make[2]: *** [all-recursive] Error 1
+make[2]: Leaving directory `/home/alp/mono-svn/mono/mono'
+make[1]: *** [all-recursive] Error 1
+make[1]: Leaving directory `/home/alp/mono-svn/mono'
+make: *** [all] Error 2
+
+
+Only exceptions-x86.c implements the sigctx->monoctx call, but ppc defines
+CUSTOM_STACK_WALK so the issue isn't apparent on x86 or ppc.
+
+Some more thoughts from ever-resourceful kangaroo:
+
+[05:44] <kangaroo> well the problem is his check
+[05:44] <kangaroo> we should do something like
+[05:44] <kangaroo> #ifndef CUSTOM_STACK_WALK && defined
+(MONO_ARCH_HAS_CONTEXT_CONVERTER)
+[05:44] <kangaroo> or some such
+[05:44] <kangaroo> and define that on platforms that do
+[05:45] <kangaroo> the big thing you need to set in that convert
+[05:45] <kangaroo> convertor
+[05:45] <kangaroo> for the method in question to work
+[05:45] <kangaroo> is the bp
+[05:46] <kangaroo> which is the esp
+[05:46] <kangaroo> which is ARMREG_SP
+[05:47] <kangaroo> which would be sigctx->arm_sp;
+[05:47] <kangaroo> so
+[05:48] <kangaroo> struct sigcontext *ctx = (struct sigcontext *)sigctx;
+[05:48] <kangaroo> mctx->esp = ctx->arm_sp;
+[05:48] <kangaroo> _should_ be sufficient
+[05:48] <kangaroo> for you to a) compile; and b) have working thread dumping


More information about the mono-bugs mailing list