[Mono-dev] Embedding mono in apache2 module

alexey.ovchinnikov alexey.ovchinnikov at rambler.ru
Fri Nov 7 09:23:42 EST 2008


Hi, All!
Now I'm playing with embeddig mono in my own apache2 module. Everything
works fine except one think, that can be a big problem in future module
developing. The problem is that mono produce some errors on apache server
stopping. So i try to reduce my sources to few line with just one line,
related to mono:

static MonoDomain *domain;
...
domain = mono_jit_init_version("MyDomain", "v2.0.50727");

Howether the problem still exists. Following my apache log after stopping
server. Looks like mono can't clean its resources correctly. Note, that this
occurs when I have no any other calls to mono except mono_jit_init_version.
I initialize mono at server startup, so mono should execute on main server
process and terminate correctly.
Any ideas?

** (process:9149): WARNING **: process_set_termination_details: error
looking up process handle 0x402
** (process:9149): CRITICAL **: _wapi_shm_file_open: shared file
[/root/.wapi/shared_data-alexiss-laptop-Linux-i686-312-11-0] open error:
Permission denied
** (process:9149): CRITICAL **: _wapi_shm_attach: shared file
[/root/.wapi/shared_data-alexiss-laptop-Linux-i686-312-11-0] open error
**
** ERROR:(shared.c:346):shm_semaphores_init: assertion failed: (tmp_shared
!= NULL)
** (process:9141): WARNING **: process_set_termination_details: error
looking up process handle 0x402
** (process:9141): WARNING **: _wapi_thread_abandon_mutexes: error looking
up thread handle 0x403
** (process:9141): WARNING **: _wapi_thread_set_termination_details: error
looking up thread handle 0x403
** (process:9141): WARNING **: _wapi_thread_abandon_mutexes: error looking
up thread handle 0x408
** (process:9141): WARNING **: _wapi_thread_set_termination_details: error
looking up thread handle 0x408


-- 
View this message in context: http://www.nabble.com/Embedding-mono-in-apache2-module-tp20381416p20381416.html
Sent from the Mono - Dev mailing list archive at Nabble.com.



More information about the Mono-devel-list mailing list