From owner-freebsd-mono@freebsd.org Tue Jan 24 04:51:10 2017 Return-Path: Delivered-To: freebsd-mono@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9E828CBF631 for ; Tue, 24 Jan 2017 04:51:10 +0000 (UTC) (envelope-from pmichel@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 81009E08 for ; Tue, 24 Jan 2017 04:51:10 +0000 (UTC) (envelope-from pmichel@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 805FBCBF630; Tue, 24 Jan 2017 04:51:10 +0000 (UTC) Delivered-To: mono@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7FFE8CBF62F for ; Tue, 24 Jan 2017 04:51:10 +0000 (UTC) (envelope-from pmichel@gmail.com) Received: from mail-yw0-x235.google.com (mail-yw0-x235.google.com [IPv6:2607:f8b0:4002:c05::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 42848E02; Tue, 24 Jan 2017 04:51:10 +0000 (UTC) (envelope-from pmichel@gmail.com) Received: by mail-yw0-x235.google.com with SMTP id l19so153817274ywc.2; Mon, 23 Jan 2017 20:51:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=yKCEXgUedJ62nkjCq0Y5sZzOJUCv1PhqzkicEagWeiI=; b=S+Dyv+pu3nUO2EoVldOZieseO9cQiyfw66qvCXXZZqUaOmRiCv3m7yZ0sObj25Ft1T Nz8Ld97FIxkDkn+ZK1xfTGY/5PGGD2Gw+by1FBnkstMvUaom5bmc7SPhPYmNRxA/b+hX MJZWiRCMs+Py9CbdR2uB/kSUqFSRz8sQWJKCGutPyLIO7eL7XJh8pPkHkSLElb73hCx1 4y8OmbXfDoTDL0fiF/vNTbBr3JywmL3o/mP4Zzcon23x8qpoNZ1S4arLUWdJL8Yn91lj 59H1xayisXJVZJHir/pQI/JKQ50ii6nCOmvhUN+HKydkOIVXr1UEhEnlrLZiGtb9ATvr SWdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=yKCEXgUedJ62nkjCq0Y5sZzOJUCv1PhqzkicEagWeiI=; b=rWy/7VDkjfcIW9Y2bbvoX+8MfhIVaV16GL19RgVMgxW+i8sb33HnZC5IX2wQ6Tkng7 fq1FuJ7J2ClnuQaSy4UfLDOdBKNRyzCZ1QICEe+BOtnD4kuwBi/U7e/rmw+2WiEMl2ST /9xKnYnj7+yayRCSkN3iJkqjq7VMinD/8amlB94PKGKdzSlCSDy5LXJW9d4zZ+7s5btn nkHhWXjGakCX982Z7A02UvIYcux0jzE25Z0Hrr8F4O3ETRevmnD5kq1uEHHPKnzW3ysU oga6kDWprnzytWpMZdoo9f4aHYaWztPczI92pnZTHe6UQImO2VrZyy5aq1ujFsp6nXU2 3WVQ== X-Gm-Message-State: AIkVDXLTKAgkZ7ndOF4VzSZ9hprslROzSZMuDhnVpv1q1lWJVDYyQCSBbCF2i/zjfN9ug7zFxuThYQHSME7I7w== X-Received: by 10.129.175.77 with SMTP id x13mr27143913ywj.141.1485233468683; Mon, 23 Jan 2017 20:51:08 -0800 (PST) MIME-Version: 1.0 From: Philipp Michel Date: Tue, 24 Jan 2017 04:50:58 +0000 Message-ID: Subject: SIGSEGV crash on SMP Xeon E5, can't build from ports To: mono@freebsd.org Cc: romain@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-mono@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Mono and C# applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jan 2017 04:51:10 -0000 Hi there, I've been a longtime user of mono on FreeBSD without issues. I usually just install the pkg. I recently upgraded my machine from a Haswell E3 to a dual-socket Sandy Bridge E5 and now mono instantly crashes with the SIGSEGV error: ================================================================= 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. ================================================================= I've tried to build mono from ports using the debug symbols but even the build process fails when it tries to call mcs resulting in the same SIGSEGV crash. I'm attaching the output below. I think it is related to this bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211367 There are reports of several people still having this issue, seemingly all on multiprocessor machines. Any idea what this could be? I'm at my wits end, all I can think of now is to run mono in a bhyve VM to get around this, which makes me a bit sad... Thanks so much in advance for your help! -Phil -------------------------------------- echo '#! /bin/sh' > _tmpinst/bin/ilasm ; \ r=`pwd`; m=`cd /var/ports/basejail/usr/ports/lang/mono/work/mono-4.6.2/mcs && pwd`; \ echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/ilasm/ilasm.exe"'" "$@"' >> _tmpinst/bin/ilasm ; \ chmod +x _tmpinst/bin/ilasm echo '#! /bin/sh' > _tmpinst/bin/mcs ; \ r=`pwd`; m=`cd /var/ports/basejail/usr/ports/lang/mono/work/mono-4.6.2/mcs && pwd`; \ echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/class/lib/build/mcs.exe"'" "$@"' >> _tmpinst/bin/mcs ; \ chmod +x _tmpinst/bin/mcs echo '#! /bin/sh' > _tmpinst/bin/al ; \ r=`pwd`; m=`cd /var/ports/basejail/usr/ports/lang/mono/work/mono-4.6.2/mcs && pwd`; \ echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/class/lib/net_4_x/al.exe"'" "$@"' >> _tmpinst/bin/al ; \ chmod +x _tmpinst/bin/al if test -w /var/ports/basejail/usr/ports/lang/mono/work/mono-4.6.2/mcs; then :; else chmod -R +w /var/ports/basejail/usr/ports/lang/mono/work/mono-4.6.2/mcs; fi cd /var/ports/basejail/usr/ports/lang/mono/work/mono-4.6.2/mcs && gmake --no-print-directory -s NO_DIR_CHECK=1 PROFILES='binary_reference_assemblies net_4_x xbuild_12 xbuild_14 ' CC='cc' all-profiles mkdir -p -- build/deps gmake[7]: mcs: Command not found gmake[7]: *** [build/profiles/basic.make:93: build/deps/basic-profile-check.exe] Error 127 *** The compiler 'mcs' doesn't appear to be usable. *** Trying the 'monolite' directory. ================================================================= 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. ================================================================= gmake[9]: *** [build/profiles/basic.make:93: build/deps/basic-profile-check.exe] Abort trap (core dumped) *** The contents of your 'monolite' directory may be out-of-date *** You may want to try 'make get-monolite-latest' gmake[9]: *** [build/profiles/basic.make:80: do-profile-check-monolite] Error 1 gmake[8]: *** [build/profiles/basic.make:60: do-profile-check] Error 2 gmake[7]: *** [build/profiles/basic.make:88: do-profile-check-monolite] Error 2 gmake[6]: *** [build/profiles/basic.make:60: do-profile-check] Error 2 gmake[5]: *** [Makefile:49: profile-do--basic--all] Error 2 gmake[4]: *** [Makefile:45: profiles-do--all] Error 2 gmake[3]: *** [Makefile:543: all-local] Error 2 gmake[3]: Leaving directory '/var/ports/basejail/usr/ports/lang/mono/work/mono-4.6.2/runtime' gmake[2]: *** [Makefile:512: all-recursive] Error 1 gmake[2]: Leaving directory '/var/ports/basejail/usr/ports/lang/mono/work/mono-4.6.2' gmake[1]: *** [Makefile:441: all] Error 2 gmake[1]: Leaving directory '/var/ports/basejail/usr/ports/lang/mono/work/mono-4.6.2' ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. -----------------------------------------------------------------