Commented: (MODPYTHON-234) SystemError: bad argument to
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Commented: (MODPYTHON-234) SystemError: bad argument to




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-29-07 12:12 PM


[ https://issues.apache.org/jira/brow...action_12516213 ]

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

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

http://groups.google.com/group/djan...a18c0f8a294f5d1

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

Do note though that as a separate issue, mod_python doesn't work properly wi
th LimitRequestBody. This is described in that discussion but I haven't logg
ed 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/...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: Obj
ects/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, mos
t 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 d
ata 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 ra
ther than trusting content length.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:05 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register