[Mono-list] Running "mono" out of CGI

Chuck Esterbrook chuck.esterbrook at gmail.com
Sat Apr 11 21:32:43 EDT 2009


On a Linux server (CentOS) running Apache 2.2.3, I have a mono.cgi script:

#!/bin/bash
echo 'Content-Type: text/html'
echo ''
/usr/local/bin/mono

It runs find from the command line, producing:

Content-Type: text/html

Usage is: mono [options] program [program-options]

Development:
    --aot                  Compiles the assembly to native code
...

However, accessing it from a web browser gives an error:

[Sat Apr 11 21:22:41 2009] [error] GThread-ERROR **: file
gthread-posix.c: line 135 (): error 'Operation not permitted' during
'pthread_getschedparam (pthread_self(), &policy, &sched)'
[Sat Apr 11 21:22:41 2009] [error] aborting...
[Sat Apr 11 21:22:41 2009] [error] /home/cl/web/public/cg/mono.cgi:
line 4:  8336 Aborted                 /usr/local/bin/mono

I have a Python .cgi script in the same directory that works fine. The
perms and file ownership on mono.cgi are correct.

I'm using Mono 2.4 built and installed today from the source tar ball with:
./configure --prefix=/usr/local
make
make install

Mono is working fine from the command line.

Any ideas what the problem could be?


-Chuck


More information about the Mono-list mailing list