dev-lang/mono-1.2.6-r3 fails to compile on ~amd64 Reproducible: Always Actual Results: System.Core' MONO_PATH="../../class/lib/net_2_0:$MONO_PATH" /var/tmp/portage/dev-lang/mono-1.2.6-r3/work/mon o-1.2.6/runtime/mono-wrapper ../../mcs/gmcs.exe /codepage:65001 -d:NET_1_1 -d:NET_2_0 -debug /noconfig -langversion:linq -unsafe -d:LIBC /r:mscorlib.dll -d:NET_3_5 -target:library -out:.. /../class/lib/net_2_0/System.Core.dll @System.Core.dll.sources Stacktrace: at System.TimeZone..cctor () <0xffffffff> at System.TimeZone..cctor () <0x0000d> at (wrapper runtime-invoke) System.Collections.Hashtable.runtime_invoke_void (object,intptr,i ntptr,intptr) <0xffffffff> at System.DateTime.ToLocalTime () <0xffffffff> at System.DateTime.ToLocalTime () <0x00015> at System.IO.File..cctor () <0x0002b> at (wrapper runtime-invoke) System.Collections.Hashtable.runtime_invoke_void (object,intptr,i ntptr,intptr) <0xffffffff> at System.IO.StreamReader..ctor (string,System.Text.Encoding,bool,int) <0xffffffff> at System.IO.StreamReader..ctor (string,System.Text.Encoding,bool,int) <0x000ab> at System.IO.StreamReader..ctor (string) <0x00037> at (wrapper remoting-invoke-with-check) System.IO.StreamReader..ctor (string) <0xffffffff> at Mono.CSharp.Driver.LoadArgs (string) <0x000ac> at Mono.CSharp.Driver.MainDriver (string[]) <0x00372> at Mono.CSharp.Driver.Main (string[]) <0x00079> at (wrapper runtime-invoke) Mono.CSharp.Driver.runtime_invoke_int_string[] (object,intptr,int ptr,intptr) <0xffffffff> Native stacktrace: /var/tmp/portage/dev-lang/mono-1.2.6-r3/work/mono-1.2.6/mono/mini/mono [0x5251a1] /var/tmp/portage/dev-lang/mono-1.2.6-r3/work/mono-1.2.6/mono/mini/mono [0x43e05d] /lib/libpthread.so.0 [0x2ab463866480] /lib/libc.so.6(memcpy+0x60) [0x2ab463d6cbc0] /var/tmp/portage/dev-lang/mono-1.2.6-r3/work/mono-1.2.6/mono/mini/mono(mono_breakpoint_ clean_code+0x1b) [0x42740b] /var/tmp/portage/dev-lang/mono-1.2.6-r3/work/mono-1.2.6/mono/mini/mono [0x43fcdd] /var/tmp/portageDebug info from gdb: Using host libthread_db library "/lib/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread 0x2ab46403c010 (LWP 5218)] [New Thread 0x41a5f950 (LWP 5300)] [New Thread 0x40a80950 (LWP 5299)] 0x00002ab463d8aeab in fork () from /lib/libc.so.6 3 Thread 0x40a80950 (LWP 5299) 0x00002ab463865b01 in nanosleep () from /lib/libpthread.so.0 2 Thread 0x41a5f950 (LWP 5300) 0x00002ab463862989 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 1 Thread 0x2ab46403c010 (LWP 5218) 0x00002ab463d8aeab in fork () from /lib/libc.so.6 Thread 3 (Thread 0x40a80950 (LWP 5299)): #0 0x00002ab463865b01 in nanosleep () from /lib/libpthread.so.0 #1 0x00000000004d35ef in collection_thread (unused=<value optimized out>) at collection.c:34 #2 0x00002ab46385e097 in start_thread () from /lib/libpthread.so.0 #3 0x00002ab463db8bcd in clone () from /lib/libc.so.6 #4 0x0000000000000000 in ?? () Thread 2 (Thread 0x41a5f950 (LWP 5300)): #0 0x00002ab463862989 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00000000004c3c15 in timedwait_signal_poll_cond (cond=0x2aaaab5df268, mutex=0x2aaaab5df240, timeout=0x1, alertable=-1) at handles.c:1443 #2 0x00000000004c61e0 in _wapi_handle_timedwait_signal_handle ( handle=<value optimized out>, timeout=0x0, alertable=-1419906496) at handles.c:1523 #3 0x00000000004ca98e in WaitForSingleObjectEx (handle=0x404, timeout=4294967295, alertable=0) at wait.c:200 #4 0x00000000004bcbf1 in finalizer_thread (unused=<value optimized out>) at gc.c:894 #5 0x00000000004c02e3 in start_wrapper (data=<value optimized out>) at threads.c:573 #6 0x00000000004d4b67 in thread_start_routine (args=0x2aaaab6463f0) at threads.c:264 #7 0x00000000004e0ef2 in GC_start_routine () #8 0x00002ab46385e097 in start_thread () from /lib/libpthread.so.0 #9 0x00002ab463db8bcd in clone () from /lib/libc.so.6 #10 0x0000000000000000 in ?? ()/dev-lang/mono-1.2.6-r3/work/mono-1.2.6/mono/mini/mono [0x44058e] [0x4020b15b] Thread 1 (Thread 0x2ab46403c010 (LWP 5218)): #0 0x00002ab463d8aeab in fork () from /lib/libc.so.6 #1 0x00002ab4633e3867 in ?? () from /usr/lib/libglib-2.0.so.0 #2 0x00002ab4633e4374 in g_spawn_sync () from /usr/lib/libglib-2.0.so.0 #3 0x00002ab4633e4808 in g_spawn_command_line_sync () from /usr/lib/libglib-2.0.so.0 #4 0x0000000000525237 in mono_handle_native_sigsegv ( signal=<value optimized out>, ctx=<value optimized out>) at mini-exceptions.c:1061 #5 0x000000000043e05d in mono_arch_handle_altstack_exception ( sigctx=0x2aaaaaadfc40, fault_addr=<value optimized out>, stack_ovf=0) at exceptions-amd64.c:845 #6 <signal handler called> #7 0x00002ab463d6cbc0 in memcpy () from /lib/libc.so.6 #8 0x000000000042740b in mono_breakpoint_clean_code ( code=0x408c9fff <Address 0x408c9fff out of bounds>, buf=0x7fff47f5ea70 "`�\214@", size=<value optimized out>) at mini-amd64.c:5254 #9 0x000000000043fcdd in mono_arch_patch_callsite ( orig_code=0x408ca00d "H\211D$\b�\030�\001�7\032", addr=0x408ca060 "H\203�M\215\035") at tramp-amd64.c:70 #10 0x000000000044058e in mono_magic_trampoline (regs=0x7fff47f5eca8, code=0x408ca00d "H\211D$\b�\030�\001�7\032", m=<value optimized out>, tramp=<value optimized out>) at mini-trampolines.c:159 #11 0x000000004020b15b in ?? () #12 0x0000000000258360 in ?? () #13 0x00000000011b1440 in ?? () #14 0x00000000012c1b00 in ?? () #15 0x00002aaaaaacce00 in ?? () #16 0x00000000408ca04c in ?? () #17 0x00002ab4633a53d5 in ?? () from /usr/lib/libglib-2.0.so.0 #18 0x00000000004f20b4 in mono_create_jit_trampoline_in_domain ( domain=0x408ca000, method=0x2aaaaaacce00) at mini.c:8382 #19 0x00000000004f26a3 in mono_resolve_patch_target (method=0x14371b0, domain=0x2aaaaaacce08, code=0x10 <Address 0x10 out of bounds>, patch_info=0x1259aa8, run_cctors=1) at mini.c:9348 #20 0x0000000001436f50 in ?? () #21 0x0000000001436f50 in ?? () #22 0x00002aaaaaacce00 in ?? () #23 0x0000000000545ba4 in ?? () #24 0x000000000048cad7 in mono_class_get_method_from_name_flags ( klass=0x1337800, name=0x1436f50 "PoC\001", param_count=21196624, flags=2048) at class.c:5978 #25 0x0000000001379310 in ?? () #26 0x000000006403c010 in ?? () #27 0x4020800000000000 in ?? () #28 0x3fe8000000000000 in ?? () #29 0x0000000000000000 in ?? () #0 0x00002ab463d8aeab in fork () from /lib/libc.so.6 ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= make[8]: *** [../../class/lib/net_2_0/System.Core.dll] Aborted make[8]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r3/work/mono-1.2.6/mcs/class/S ystem.Core' make[7]: *** [do-all] Error 2 make[7]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r3/work/mono-1.2.6/mcs/class/S ystem.Core' make[6]: *** [all-recursive] Error 1 make[6]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r3/work/mono-1.2.6/mcs/class' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r3/work/mono-1.2.6/mcs' make[4]: *** [profile-do--net_2_0--all] Error 2 make[4]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r3/work/mono-1.2.6/mcs' make[3]: *** [profiles-do--all] Error 2 make[3]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r3/work/mono-1.2.6/mcs' make[2]: *** [all-local] Error 2 make[2]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r3/work/mono-1.2.6/runtime' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r3/work/mono-1.2.6' make: *** [all] Error 2 Expected Results: compile
Created attachment 154951 [details] emerge --info
Do all previous version build fine (-r1, -r2)? BTW. Did you use the moonlight USE flag?
-r2 failed too. moonlight USE flag was visible. i tried it with nptl and -nptl USE flag with the same result. it always failed on the same spot.
And what about 1.9/1.9.1?
dev-lang/mono-1.9.1 solved it for me. this is also for bug #223939.
Closing then!