Bug 195833 - lang/mono crashes: Assertion at gc-memfuncs.c:79, condition `unaligned_bytes (dest) == 0' not met
Summary: lang/mono crashes: Assertion at gc-memfuncs.c:79, condition `unaligned_bytes ...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Walter Schwarzenfeld
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-09 20:54 UTC by Koen Martens
Modified: 2018-03-12 22:56 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Koen Martens 2014-12-09 20:54:27 UTC
When trying to run an opensim server on FreeBSD I get the following error report:

opensim@sim:~/bin % mono OpenSim.exe -gui=true
20:45:43 - [OPENSIM MAIN]: Using async_call_method SmartThreadPool
20:45:43 - ====================================================================
20:45:43 - ========================= STARTING OPENSIM =========================
20:45:43 - ====================================================================
20:45:43 - [SERVER BASE]: Starting in /usr/home/opensim/bin
20:45:43 - [SERVER BASE]: OpenSimulator version: OpenSim 0.8.0.3 PLUS Metropolis Edition [016]       
20:45:43 - [SERVER BASE]: Operating system version: Unix 8.4.14.0, .NET platform Unix, 64-bit
Console log level is ALL
20:45:43 - [SERVER BASE]: Logging started to file /usr/home/opensim/bin/OpenSim.log
20:45:43 - [REGION DB]: MySql - connecting: Data Source=localhost;Database=opensim;User ID=opensim;Password=***;Old Guids=true;
20:45:43 - [BASE HTTP SERVER]: Starting HTTP server on port 9000
* Assertion at gc-memfuncs.c:79, condition `unaligned_bytes (dest) == 0' not met

Stacktrace:


=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

Abort (core dumped)
opensim@sim:~/bin % 




I have tried with both the binary package (pkg install mono) as well as the port (cd /usr/ports/lang/mono && make install).


The FreeBSD version is:

FreeBSD sim 8.4-RELEASE-p14 FreeBSD 8.4-RELEASE-p14 #0: Tue Jul  8 12:41:46 UTC 2014     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

And mono is running inside a jail.

mono --version reports:

Mono JIT compiler version 3.10.0 (tarball Sat Dec  6 00:54:13 UTC 2014)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notification:  kqueue
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug 
        LLVM:          supported, not enabled.
        GC:            sgen


List of installed packages:

ca_root_nss-3.17.2_1           The root certificate bundle from the Mozilla Project
curl-7.39.0                    Non-interactive tool to get files from FTP, GOPHER, HTTP(S) servers
expat-2.1.0                    XML 1.0 parser written in C
gdbm-1.11_2                    GNU database manager
gettext-0.19.3                 GNU gettext meta package
gettext-runtime-0.19.3         GNU gettext runtime libraries and programs
gettext-tools-0.19.3           GNU gettext development and translation tools
glib-2.42.0                    Some useful routines of C programming (current stable version)
indexinfo-0.2                  Utility to regenerate the GNU info page index
libffi-3.0.13_3                Foreign Function Interface
libiconv-1.14_6                Character set conversion library
mono-3.10.0_2                  Open source implementation of .NET Development Framework
mysql55-client-5.5.40          Multithreaded SQL database (client)
mysql55-server-5.5.40          Multithreaded SQL database (server)
pcre-8.35_1                    Perl Compatible Regular Expressions library
perl5-5.18.4_10                Practical Extraction and Report Language
pkg-1.3.8_3                    Package manager
py27-Babel-1.3_2               Collection of tools for internationalizing Python applications
py27-Jinja2-2.7.3              Fast and easy to use stand-alone template engine
py27-MarkupSafe-0.23           Implements a XML/HTML/XHTML Markup safe string for Python
py27-docutils-0.12             Python Documentation Utilities
py27-pygments-1.6_2            Syntax highlighter written in Python
py27-pytz-2014.7,1             World Timezone Definitions for Python
py27-setuptools27-5.5.1        Python packages installer
py27-sphinx-1.2.3              Python documentation generator
python27-2.7.8_6               Interpreted object-oriented programming language
screen-4.2.1_3                 Multi-screen window manager
sqlite3-3.8.7.2                SQL database engine in a C library
Comment 1 Koen Martens 2014-12-09 20:57:16 UTC
In addition, i followed these steps to reproduce:

http://hypergrid.org/metropolis/wiki/en/index.php?title=SIM

Where I chose for a mysql server instead of sqlite3. Created an empty mysql database for opensim, which does get populated with tables before mono crashes.

Following the same steps on linux lead to succesful installation and execution of opensim.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2014-12-09 21:56:14 UTC
Fix Summary and assign.
Comment 3 Walter Schwarzenfeld 2018-01-11 18:32:10 UTC
No maintainer feedback  till now.
Comment 4 Walter Schwarzenfeld 2018-03-12 22:56:00 UTC
8.4 is long EOL. Mono has version 5.2.0.215. This overcome by events or feedback timeout - so I close here.