Commented: (MODPYTHON-99) accessing some request or server object members causes a seg
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-99) accessing some request or server object members causes a seg




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

    Commented: (MODPYTHON-99) accessing some request or server object members causes a seg  
Jim Gallacher (JIRA)


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


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:37 PM.      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