[Bug 211367] lang/mono net-p2p/sonarr Sonarr crashes on startup with SIGSEGV since base r296727 on 10.3-STABLE
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211367 Phil changed: What|Removed |Added CC||pmic...@gmail.com --- Comment #27 from Phil --- I just swapped motherboards / CPUs from a single Xeon E3 to now 2x Xeon E5s. Nothing else needed configuring and everything works fine EXCEPT I now get a nearly identical error to the one reported here when running mono with not just NzbDrone.exe but any executable: = 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. = If I load the dumped core, I get: gdb mono-sgen mono-sgen.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"...(no debugging symbols found)... Core was generated by `mono-sgen'. Program terminated with signal 6, Aborted. Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done. Loaded symbols for /lib/libm.so.5 Reading symbols from /usr/local/lib/libinotify.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libinotify.so.0 Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done. Loaded symbols for /lib/libthr.so.3 Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.7 Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x0008012aa50a in thr_kill () from /lib/libc.so.7 [New Thread 801816000 (LWP 100910/)] (gdb) where #0 0x0008012aa50a in thr_kill () from /lib/libc.so.7 #1 0x0008012aa4db in raise () from /lib/libc.so.7 #2 0x0008012aa449 in abort () from /lib/libc.so.7 #3 0x004a56e2 in mono_debugger_run_finally () #4 0x00417e00 in mono_get_jit_info_from_method () #5 0x000800fca79d in pthread_sigmask () from /lib/libthr.so.3 #6 0x000800fc9d6f in pthread_getspecific () from /lib/libthr.so.3 #7 #8 0x006366b5 in mono_gchandle_free () #9 0x005bd734 in mono_init () #10 0x00418bec in mini_get_debug_options () #11 0x00473ffc in mono_main () #12 0x004156fa in _start () #13 0x0041516f in _start () #14 0x00080098b000 in ?? () #15 0x in ?? () So it looks very similar to the bug reported above. I'm running 11.0-RELEASE-p2 (GENERIC) and mono 4.6.2 (latest pkg) in a jail. I've tried running it on the host system, with the same error. I've also tried building from source (poudriere) and the build fails due to a similar SIGSEGV: if test -w /wrkdirs/usr/ports/lang/mono/work/mono-4.6.2/mcs; then :; else chmod -R +w /wrkdirs/usr/ports/lang/mono/work/mono-4.6.2/mcs; fi cd /wrkdirs/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) Any reason this bug would re-appear on a multi-processor system? -- You are receiving this mail because: You are the assignee for the bug. ___ freebsd-mono@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-mono To unsubscribe, send any mail to "freebsd-mono-unsubscr...@freebsd.org"
SIGSEGV crash on SMP Xeon E5, can't build from ports
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. - ___ freebsd-mono@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-mono To unsubscribe, send any mail to "freebsd-mono-unsubscr...@freebsd.org"