Issue Details (XML | Word | Printable)

Key: MODPYTHON-99
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Jim Gallacher
Reporter: Jim Gallacher
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
mod_python

accessing some request or server object members causes a segfault

Created: 10/Dec/05 07:46 AM   Updated: 05/Mar/06 03:00 PM
Return to search
Component/s: core
Affects Version/s: 3.2.7
Fix Version/s: 3.2.7

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works md-20051209.diff 2005-12-10 07:49 AM Jim Gallacher 1 kB

Resolution Date: 18/Dec/05 02:32 AM


 Description  « Hide
Martin Devara discovered a segfault when accessing some request object members. 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 requestobject.c and serverobject.c. The root of the problem seems to be pointer dereferencing errors in the getter code. The affected functions and the members 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.)


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jim Gallacher made changes - 10/Dec/05 07:49 AM
Field Original Value New Value
Attachment md-20051209.diff [ 12321248 ]
Jim Gallacher made changes - 18/Dec/05 02:32 AM
Fix Version/s 3.2 [ 11060 ]
Assignee Jim Gallacher [ jgallacher ]
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Graham Dumpleton made changes - 05/Mar/06 03:00 PM
Status Resolved [ 5 ] Closed [ 6 ]