12-09-05 10:47 PM
[ http://issues.apache.org/jira/brows...2359
969 ]
Jim Gallacher commented on MODPYTHON-99:
----------------------------------------
Should we be unit testing the getters and setters for all request and server
object members?
> accessing some request or server object members causes a segfault
> -----------------------------------------------------------------
>
> Key: MODPYTHON-99
> URL: http://issues.apache.org/jira/browse/MODPYTHON-99
> Project: mod_python
> Type: Bug
> Components: core
> Versions: 3.2
> Reporter: Jim Gallacher
> Priority: Critical
> Attachments: md-20051209.diff
>
> Martin Devara discovered a segfault when accessing some request object mem
bers. For example:
> def handler(req):
> req.content_type = "text/plain"
> req.write("EE\n")
> a = getattr(req,"allowed_methods");
> return apache.OK
> Futher investigation revealed problems with several getter functions in re
questobject.c and serverobject.c. The root of the problem seems to be pointe
r dereferencing errors in the getter code. The affected functions and the me
mbers which use them are:
> src/requestobject.c
> getreq_rec_ml
> allowed_methods
> getreq_rec_ah
> content_languages
> allowed_xmethods
> src/serverobject.c
> getsrv_recmbr_ah
> names
> wild_names
> Martin has provided a patch to fix the bug.
> (Thanks to Martin for tracking this down and providing the fix.)
[ Post a follow-up to this message ]
|