[Mono-list] Apache+mono+mod_mono_server with '--gc=sgen' fails on start-up
Tymek Majewski
tym.majewski at nearmap.com
Mon Apr 11 03:55:54 EDT 2011
Hi gurus,
I have a Apache+mono+mod_mono_server setup and I would like to
experiment with the new garbage collector, but when I start mono with
--gc=sgen reports a 'Stack overflow' problem on start-up.
The test case is:
/usr/local/mono-2.10.1/bin/mono --debug --gc=sgen
/usr/local/mono-2.10.1/lib/mono/4.0/mod-mono-server4.exe --filename
/tmp/.mono_unix_socket_app1 --applications /app1/:/home/me/app1
--nonstop
The output is:
Stack overflow: IP: 0x404e9fe2, fault addr: (nil)
Stacktrace:
at System.Exception.ToString () [0x00000] in
/home/tym/mono/mono-2.10.1/mcs/class/corlib/System/Exception.cs:285
<...>
at (wrapper runtime-invoke) <Module>.runtime_invoke_object__this__
(object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>
Just to reiterate without "--gc=sgen" it's all good.
If I run mono --version it reports correctly that GC is set to 'sgen':
tym at tym-pc:~$ /usr/local/mono-2.10.1/bin/mono --gc=sgen --version
Mono JIT compiler version 2.10.1 (tarball Mon Apr 11 05:13:56 UTC 2011)
Copyright (C) 2002-2011 Novell, Inc and Contributors. www.mono-project.com
TLS: normal
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
Do I have to do something else, like recompile mod_mono with some special flags?
Thanks in advance for any help.
Regards,
Tymek Majewski
More information about the Mono-list
mailing list