[Mono-dev] problems executing mono embed on osx
Thomas Grill
gr at grrrr.org
Sat Jan 21 15:04:43 EST 2006
Hi all,
i have the same problem, but i think i already know the reason of the
crashes.
>
> If I compile my software using last mono package taken from
> http://www.mono-project.com/Downloads (but I was told that previous
> packages
> have the same issue) my code will compile without problems but mono
> will
> fail to load when I call mono_jit_init()
> If I do the same with a mono installed from fink everything works
> fine..
>
Have a look at the crash log below - GetCurrentProcess is called and
crashes.
It is called from mono_thread_init, which calls it as
GetCurrentProcess(), that is without arguments.
Obviously the mono/io-layer/processes.h/GetCurrentProcess function is
meant here.
From the crash log it's obvious that the Apple Process Manager function
GetCurrentProcess(ProcessSerialNumber *PSN) is called instead. The PSN
argument is not set by the caller, so the function must crash.
I'll experiment a bit with reordering of the included headers - that
might be the easiest workaround.
By the way, mono_jit_init for me also crashes under Windows (compiled
with VC++, not MinGW) - maybe a similar reason?
best greetings,
Thomas
>
> Date/Time: 2006-01-19 15:57:09.724 +0000
> OS Version: 10.4.3 (Build 8F46)
> Report Version: 3
>
> Command: pd
> Path: /Applications/Pd-0.38.4-extended-RC4.app/Contents/Resources/
> Scripts/../bin/pd
> Parent: Pd [3141]
>
> Version: ??? (???)
>
> PID: 3142
> Thread: 0
>
> Exception: EXC_BAD_ACCESS (0x0001)
> Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000004
>
> Thread 0 Crashed:
> 0 com.apple.HIServices 0x917f4308 GetCurrentProcess + 88
> 1 libmono.0.dylib 0x013ed6e0 mono_thread_init + 152
> (threads.c:1807)
> 2 libmono.0.dylib 0x0137c2d8 mono_runtime_init + 176
> (appdomain.c:101)
> 3 libmono.0.dylib 0x013127b4 mini_init + 2476
> (mini.c:10443)
> 4 libmono.0.dylib 0x0133344c mono_jit_init + 32
> (driver.c:1070)
>
More information about the Mono-devel-list
mailing list