You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-dev@quetz.apache.org by "Graham Dumpleton (JIRA)" <ji...@apache.org> on 2007/07/29 12:03:53 UTC

[jira] Commented: (MODPYTHON-234) SystemError: bad argument to internal function

    [ https://issues.apache.org/jira/browse/MODPYTHON-234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516213 ] 

Graham Dumpleton commented on MODPYTHON-234:
--------------------------------------------

This error also seen by someone using Django and LimitRequestBody directive.

  http://groups.google.com/group/django-users/browse_frm/thread/fb72bd122ae283ad/fa18c0f8a294f5d1#fa18c0f8a294f5d1

This directive may perhaps be a way of reproducing the problem allowing it to be tracked down.

Do note though that as a separate issue, mod_python doesn't work properly with LimitRequestBody. This is described in that discussion but I haven't logged it as a separate issue yet.

> 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.2.10, 3.3.1
>            Reporter: Graham Dumpleton
>
> As raised in thread:
>   http://www.modpython.org/pipermail/mod_python/2007-June/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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.