Running mono with the following debug variables:
export MONO_LOG_LEVEL=debug;
export MONO_LOG_MASK=dll;
I was able to figure out that although mono was able to see my compiled dylib, it was not loading it, stating that it was the wrong architecture.
The Server executable file is 32bit and when compiling sqlite from source with just ./configure
, the resulting library is only 64bit.
I then tried to compile it for 32bit only:
CFLAGS='-arch i686' LDFLAGS='-arch i686' ./configure --disable-dependency-tracking;
make;
The resulting dylib is loaded correctly and seems to have fixed the problem. I no longer get the same crash as I had before.
In summary, it seems that, for whatever reason, the default mac sqlib located at /usr/lib/libsqlite3.dylib
causes a crash with mono and the executable I was attempting to run. Compiling my own 32 bit version fixed the issue.