From owner-freebsd-mono@FreeBSD.ORG Tue Nov 5 22:20:02 2013 Return-Path: Delivered-To: mono@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2A371C68 for ; Tue, 5 Nov 2013 22:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 088762BB5 for ; Tue, 5 Nov 2013 22:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rA5MK1Bv041908 for ; Tue, 5 Nov 2013 22:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rA5MK1Xv041907; Tue, 5 Nov 2013 22:20:01 GMT (envelope-from gnats) Date: Tue, 5 Nov 2013 22:20:01 GMT Message-Id: <201311052220.rA5MK1Xv041907@freefall.freebsd.org> To: mono@FreeBSD.org From: Andreas Longwitz Subject: Re: ports/182057: lang/mono (mono 3.2.1) does not build on amd64 X-BeenThere: freebsd-mono@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Andreas Longwitz List-Id: Mono and C# applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Nov 2013 22:20:02 -0000 The following reply was made to PR ports/182057; it has been noted by GNATS. From: Andreas Longwitz To: bug-followup@freebsd.org, mono@freebsd.org Cc: Subject: Re: ports/182057: lang/mono (mono 3.2.1) does not build on amd64 Date: Tue, 05 Nov 2013 23:00:28 +0100 The SIGSEGV core caused by mono-sgen and stable on amd64: The following command gives a core: /home/tmp/usr/ports/lang/mono/work/mono-3.2.1/mono/mini/mono-sgen --config /home/tmp/usr/ports/lang/mono/work/mono-3.2.1/runtime/etc/mono/config ./../class/lib/monolite/basic.exe -sdk:2: gdb /home/tmp/usr/ports/lang/mono/work/mono-3.2.1/mono/mini/mono-sgen /var/core/mono-sgen-50576.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"... Core was generated by `mono-sgen'. Program terminated with signal 6, Aborted. Reading symbols from /usr/local/lib/libiconv.so.3...done. Loaded symbols for /usr/local/lib/libiconv.so.3 Reading symbols from /lib/libm.so.5...done. Loaded symbols for /lib/libm.so.5 Reading symbols from /lib/libthr.so.3...done. Loaded symbols for /lib/libthr.so.3 Reading symbols from /lib/libc.so.7...done. Loaded symbols for /lib/libc.so.7 Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x0000000180e91c6c in kill () from /lib/libc.so.7 [New Thread 1810041c0 (LWP 100627/initial thread)] (gdb) bt #0 0x0000000180e91c6c in kill () from /lib/libc.so.7 #1 0x0000000180e90a6b in abort () from /lib/libc.so.7 #2 0x00000000004ae8ce in mono_handle_native_sigsegv (signal=11, ctx=) at mini-exceptions.c:2380 #3 0x0000000000416ab3 in mono_sigsegv_signal_handler (_dummy=11, info=0x7fffffffe290, context=0x7fffffffdf20) at mini.c:6522 #4 #5 0x00000000005f5112 in sgen_stop_world (generation=1) at sgen-stw.c:70 #6 0x00000000005d3a35 in sgen_perform_collection (requested_size=80, generation_to_collect=1, reason=0x6fd0f1 "mature allocation failure", wait_to_finish=0) at sgen-gc.c:3409 #7 0x00000000005e9700 in alloc_degraded (vtable=0x1811160c8, size=80, for_mature=) at sgen-alloc.c:132 #8 0x00000000005e977a in mono_gc_alloc_mature (vtable=0x1811160c8) at sgen-alloc.c:593 #9 0x0000000000582566 in new_thread_with_internal (domain=, internal=0x182afc010) at threads.c:494 #10 0x000000000058571c in mono_thread_attach_full (domain=0x181067300, force_attach=0) at threads.c:965 #11 0x000000000059d7b9 in mono_runtime_init (domain=0x181067300, start_cb=0x415d80 , attach_cb=) at appdomain.c:256 #12 0x00000000004156a5 in mini_init (filename=, runtime_version=0x0) at mini.c:7295 #13 0x0000000000484de8 in mono_main (argc=5, argv=0x7fffffffe798) at driver.c:1851 #14 0x00000000004132ae in _start () #15 0x0000000180855000 in ?? () #16 0x0000000000000000 in ?? () (gdb) info thread * 1 Thread 1810041c0 (LWP 100627/initial thread) 0x0000000180e91c6c in kill () from /lib/libc.so.7 (gdb) f 5 #5 0x00000000005f5112 in sgen_stop_world (generation=1) at sgen-stw.c:70 70 memcpy (&info->ctx, &cur_thread_ctx, sizeof (MonoContext)); (gdb) info loc count = 0 dead = (gdb) p sgen_global_stop_count $2 = 0 (gdb) p (SgenThreadInfo *)info i$3 = {info = {node = {next = 0x2020203a534c5409, key = 2314885530818453536}, small_id = 1752457055, native_handle = 1684104562, thread_state = 1230178570, runtime_thread = 1195725639, suspend_lock = 0x2020202020203a56, suspend_count = 1953259808, finish_resume_semaphore = 0x6669746f4e090a6b, resume_semaphore = 0x3a6e6f6974616369, suspend_semaphore = 0x65756575716b2020, syscall_break_signal = 1916864778, suspend_can_continue = 1953065059, suspend_state = {ctx = {rax = 2322280100134151013, rbx = 651390504326226208, rcx = 7234307546238118212, rdx = 7935377865776832570, rbp = 8316262888140795503, rsp = 2314885530818460259, rsi = 8387513896275025952, rdi = 651368724831561060, r8 = 2314885643246128204, r9 = 8295665835966472224, r10 = 7234316411285303413, r11 = 7954800001277632556, r12 = 2865758500315745, r13 = 0, r14 = 4294967296, r15 = 34359738370, rip = 288230376151728128}, unwind_data = {0x480000000800000, 0x8300000803, 0x8b000000a3}, valid = 243}, async_target = 0x2028f7000038f7, user_data = 0x1029f7001028f7}, skip = 1321207, in_critical_region = 1845495, joined_stw = 272631, doing_handshake = 534775, thread_is_dying = 273143, gc_disabled = 101788159, stack_end = 0x6f43000000676663, stack_start = 0x6c46206c6f72746e, stack_start_limit = 0x776f, tlab_next_addr = 0x6572746400000001, tlab_start_addr = 0x616e696d6f440065, tlab_temp_end_addr = 0x6565725420726f74, tlab_real_end_addr = 0x200000000, runtime_data = 0x4643000065646f63, signal = 1752375367, stop_count = 1852405615, stopped_ip = 0x65646f632067, stopped_domain = 0x61737300000004, ctx = {rax = 7377213155103145984, rbx = 18387489977951604, rcx = 34359738368, rdx = 5062890407763144815, rbp = 2338042707166961735, rsp = 32497648571273801, rsi = 16, rdi = 0, r8 = 0, r9 = 23081184315244544, r10 = 53480937073606761, r11 = 87821408226181352, r12 = 126102597773099361, r13 = 171983689000681955, r14 = 203787883184456339, r15 = 236442498064581386, rip = 0}} Please can somebody help where to look next ? -- Andreas Longwitz