Apache Mod-Python - Created: (MODPYTHON-234) SystemError: bad argument to

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > June 2007 > Created: (MODPYTHON-234) SystemError: bad argument to





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Created: (MODPYTHON-234) SystemError: bad argument to
Graham Dumpleton (JIRA)

2007-06-29, 1:13 am

SystemError: bad argument to internal function
----------------------------------------------

Key: MODPYTHON-234
URL: https://issues.apache.org/jira/browse/MODPYTHON-234
Project: mod_python
Issue Type: Bug
Components: core
Affects Versions: 3.3.1, 3.2.10
Reporter: Graham Dumpleton


As raised in thread:

http://www.modpython.org/pipermail/...une/023795.html

when req.read() is called, on rare occasions it can generate the error:

05 18:33:49 2007] [error] [client 200.155.85.225] SystemError: Objects/stringobject.c:3515: bad argument to internal function,

It is speculated that this is caused by an invalid value being supplied to _PyString_Resize() with code associated with req.read(). In particular, most likely being supplied a negative value for size.

This issues possibly relates to problems with how mod_python makes use of content length and what request_rec says in respect of remaining amount of data as described in MODPYTHON-212.

Further highlights how the code for req.read(), req.readline() and req.readlines() has to be completely revised and overhauled to simply read whatever is available rather than trusting content length.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com