[Mono-dev] asp.net "service unavailable" problem (was: Can't find older binaries)

Chris Turchin chris at turchin.net
Sun Oct 9 17:05:10 EDT 2005


On Sun, 2005-10-09 at 14:11 -0400, Joshua Tauberer wrote: 
> Can someone point me to the location of RPMs for 1.1.8? 
> http://mono-project.com/OldReleases only has broken links since that 
> release.

This is what I am considering right now too... But before I do, I
thought I would share this....

> Despite getting around the ThreadAbort issue, I'm having other mod_mono 
> problems that I can't track down [snip]Three problems seem to crop up after
>  a few minutes of serving pages: Either  'Service unavailable', 'Internal 
> server error', or the request just hangs indefinitely. 

i have various unpredictable "service unavailable" errors and hangs as
well since upgrading to this morning (on SuSE 9.3). i noticed
this in the error_log after several crashes:

*** glibc detected *** malloc(): memory corruption: 0x09179018 ***

but this message is not consistently reproducible. i had a page that
would reproduce the error consistently but when i extracted the
implementation into a single executable (it was just an IHttpHandler
class that resized images), the problem went away. 

so, i created a bare-bones version of the IHttpHandler that will
reproduce the problem. it is attached to this email - you will need a
version of GD installed as well (i have "gd-2.0.32-6"); the .NET wrapper
for GD is include in the bin/ directory. a simple makefile for the
sample is included. 

interestingly, the crash it seems to be dependent on the size of the
previews I am generating:

below, the first request (and all requests for images of type "Preview")
succeeds, the second (and all requests for images of type "LargeFormat")
fail consistently. the large format is a 1024x768 image. - - [09/Oct/2005:22:02:44 +0200]
"GET /gd-gallery/GDImage.ashx?fmt=Preview&img=%2fdata%2fimages%
2f2005-10-08%2fimg_5071.jpg HTTP/1.1" 200 16996
2fimages%2f2005-10-08%2fimg_5071.jpg" "Mozilla/5.0 (X11; U; Linux i686;
en-US; rv:1.8b5) Gecko/20051006 Firefox/1.4.1" - - [09/Oct/2005:22:02:47 +0200]
"GET /gd-gallery/largeformat.aspx?fmt=LargeFormat&img=%2fdata%2fimages%
2f2005-10-08%2fimg_5071.jpg HTTP/1.1" 200 1785
2fimages%2f2005-10-08%2fimg_5071.jpg" "Mozilla/5.0 (X11; U; Linux i686;
en-US; rv:1.8b5) Gecko/20051006 Firefox/1.4.1"

To test it, you need to pass the path to a jpeg file that the web server
process can read as the "img" parameter. i am testing with 4 megapixel
files, so you might try using a similarly large one...

the "fmt" parameter is the resize format: "fmt=LargeFormat" seems to
cause trouble for me.


> Blegh.
Blegh indeed.

Kind Regards, 

ps: possibly related: for a while now (since 1.1.8?), I have been seeing
sessions become quickly invalid and am not sure why: i log into blogx to
post something and before i am done with the post (ok, i write slow but
not THAT slow!) I get an access denied error and need to log in again...
wierd... and that (as with the code from above) has been working for
ages, like since 0.30 or so, so I don't think it is the application...

Chris Turchin <chris at turchin.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simpleimage.tar.gz
Type: application/x-compressed-tar
Size: 15666 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051009/36954922/attachment.bin 

More information about the Mono-devel-list mailing list