[Mono-dev] Mono crashes - mono_assembly_getrootdir () returns null
Rajesh Khan
rajeshkhan808 at gmail.com
Sat Jan 30 07:16:01 UTC 2016
I built the mono libraries from source on OSX (El-Capitan)
Following are the details
$ ./mono --version
Mono JIT compiler version 4.3.2 (master/88dbb86 Fri Jan 29 13:48:53 PST
2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors.
www.mono-project.com
TLS: normal
SIGSEGV: altstack
Notification: kqueue
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
Now when attempting to run another project in XCODE that was generated
through cmake . Mono crashes and points to the file mono-config.c
The following statement
char *p = strstr (attribute_values [i], "$mono_libdir");
if (p != NULL){
const char *libdir = mono_assembly_getrootdir ();
size_t libdir_len = strlen (libdir); //Crashes as libdir is null
char *result;
...
...
}
any suggestions why it is crashing and how I can fix it ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20160129/c825ae98/attachment.html>
More information about the Mono-devel-list
mailing list