[mod_python] psp.PSP(req, string='hello world') causes segfault

Graham Dumpleton grahamd at dscpl.com.au
Tue Apr 26 19:34:12 EDT 2005


Grisha wrote ..
> 
> Nope, this doesn't look to be in any way related.
> 
> Has anyone been able to reproduce the segfault?
> 
> On Wed, 27 Apr 2005, dharana wrote:
> 
> > Grisha, if you read this, this is one of the previous references I found
> > about the problem:
> >
> >  http://www.modpython.org/pipermail/mod_python/2004-May/015552.html
> >
> > Maybe the typo/bugfix didn't completely solve the problem at hand.

Have got to work and been able to try it on Mac OS X.

I don't get a crash, but am able to verify the strcache typo as being
a problem that never seemed to get fixed in code.

[Wed Apr 27 09:29:51 2005] [error] [client 127.0.0.1] PythonHandler _handler: Traceback (most recent call last):
[Wed Apr 27 09:29:51 2005] [error] [client 127.0.0.1] PythonHandler _handler:   File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/mod_python/apache.py", line 308, in HandlerDispatch\n    result = object(req)
[Wed Apr 27 09:29:51 2005] [error] [client 127.0.0.1] PythonHandler _handler:   File "/Users/grahamd/Sites/psp_crash/_handler.py", line 5, in handler\n    content_file = psp.PSP(req, string='hello world')
[Wed Apr 27 09:29:51 2005] [error] [client 127.0.0.1] PythonHandler _handler:   File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/mod_python/psp.py", line 114, in __init__\n    cached = strcache.get(string)
[Wed Apr 27 09:29:51 2005] [error] [client 127.0.0.1] PythonHandler _handler: NameError: global name 'strcache' is not defined

Graham


More information about the Mod_python mailing list