[uClinux-dev] Boa cgi mmap error.

André Tousch andre.tousch at stepmind.com
Tue Jan 31 08:03:31 EST 2006

> I'm currently experiencing a strange problem with boa and cgis. I have a  
> boa web server 0.94.13 running and working on an arm uclinux board. I  
> have also CGIs working. Now it arrives occasionnaly that the boa server  
> crashes in the fwrite() function. I found out the crash was caused by  
> some memory gardenage.

I found the cause. I used boa-0.94.13 with the boa-0.94.13-uc0 patch found  
here :

Which needed a little more patching because of changing fork() to vfork()  
in cgi calls (patch follows).


--- boa/src/cgi.c.old	2002-08-28 02:59:49.000000000 +0200
+++ boa/src/cgi.c	2006-01-31 13:47:06.000000000 +0100
@@ -489,8 +489,9 @@
          /* Close access log, so CGI program can't scribble
           * where it shouldn't
+#ifndef EMBED
           * tie STDERR to cgi_log_fd
           * cgi_log_fd will automatically close, close-on-exec rocks!

More information about the uClinux-dev mailing list