From: Justin Bronn <jbr...@gmail.com>
Date: Tue, 25 Nov 2008 09:07:49 -0800 (PST)
Local: Tues, Nov 25 2008 12:07 pm
Subject: Re: GeoDjango in Ubuntu 8.10, Segmentation Fault
> Based on comments in a separate thread, GeoDango may have issues with
Yes -- the libraries GeoDjango uses, GEOS and GDAL, are not thread
> multithreaded configuration. Which Apache MPM was being used for each > Apache version, prefork or worker? The worker MPM uses threads and so > that could be the culprit. safe. Thus, it is highly recommended to use the prefork version of Apache. > In a Python Shell, I am able to perform queries on my spatial models
I created an Ubuntu 8.10 VM to try and test out this problem.
> successfully. In a web browser, I get a plain white screen if any > code is executed that works with spatially enabled models. However, the only way that I could reproduce your exact problem (segfault upon HTTP request) is when using the mpm-worker (threaded) Apache. When using the prefork, however, I was able to get both mod_python and mod_wsgi to work with a simple demonstration app [1]. I think mpm-worker is the default when you do `apt-get install apache2`, so make sure you have it removed, e.g., `apt-get remove apache2-mpm-worker; apt-get install apache2-mpm-prefork`. BUT, I found another issue -- while I could login to and browse the
Needless to say, this behavior has me perplexed at the moment, and due
> Justin was good enough to run a test case I created and was unable to
I still have the CentOS 5.2 VM, and I'll test it out again, but I'm
> duplicate the error. I'm wondering now about the exact versions of > Apache and other components that might be causing the problem. not sure yet that this could be the same issue as you reported in October. It's a different distribution that used significantly older versions (that also worked in my tests). [1] http://geodjango.org/hg/world
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||