473,385 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

[mod_python] Crash on getting request's allowed_xmethods an boundary

Hi everybody,

i'm experiencing crashing of the apache process when a mod_python handler
access the properties "boundary" and "allowed_xmethods" of the request
argument. This prevents the use of some interactive remote debuggers (such
ActiveState's) that try to read the contents of the variables in the
namespace and graphically present them in tree form.

I reported the crash on win32 platform. I am using python 2.3.4, apache
2.0.47, mod_python 3.1.3.

To show the bug here is a simple handler. It publishes the content of the
req object. Clicking on the url, the property is read and published.
Clicking on one of "allowed_xmethods" or "boundary" crashes apache. Actually
a plain read such as "x = req.boundary" is enough to crash.

from mod_python import apache

def handler(req):
req.write("<html><body>")
if req.args is None:
for k in dir(req):
req.write("<a href=%s?attr=%s>request.%s</a><br/>"
% (req.uri, k, k))
else:
attr = dict([ t.split('=') for t in req.args.split('&') ])['attr']
req.write(str(getattr(req, attr)))

req.write("</body></html>")
return apache.OK

I published the script through:

<Directory "C:/httproot/test">
AddHandler python-program .py
PythonHandler mptest
PythonDebug On
PythonPath "['C:/httproot/test']+sys.path"
</Directory>

Daniele

P.S. is this the proper forum to post mod_python bugs? I'm not so sure...

Jul 18 '05 #1
1 1742
Daniele Varrazzo wrote:
P.S. is this the proper forum to post mod_python bugs? I'm not so sure...


There are instructions for subscribing to the mod_python mailing list
here: http://www.modpython.org/
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

40
by: Shufen | last post by:
Hi all, Can someone who has use PHP before and know quite well about the language, tell me what are the stuffs that Python offers and PHP doesn't. A few examples will be nice. I know about the...
2
by: Jeffrey Froman | last post by:
I am having difficulty getting mod_python and xml.sax to play nicely with each other. I am using: Python 2.4 Mod_python 2.7.10 Apache 1.3.33 Using the mod_python.publisher handler to invoke...
2
by: ggg | last post by:
In regards to mod_python, I keep getting this warning when I do apachectl configtest: Loaded DSO libexec/mod_python.so uses plain Apache 1.3 API, this module might crash under EAPI! (please...
1
by: treelife | last post by:
I'm getting and internal server error when | run the following mod_python script. I am actually trying to run Django. Script: from mod_python import apache def handler(req):...
3
by: Charles | last post by:
Hello, I'm think about using mod_python for a project but I need to make sure: Does mod_python time out after a minute ? (I hope not). If I leave an HTTP connection open so that the content keeps...
10
by: Vincent Delporte | last post by:
Hi I'm still a newbie when it comes to web applications, so would like some help in choosing a solution to write apps with Python: What's the difference between using running it through...
5
by: m.banaouas | last post by:
Hi, bonjour, witch versions are suitable to use for apache & mod_python ? Can i install and use "Apache 2.2.3" & "mod_python 3.2.10" (most recent versions) without facing any known major...
2
by: MDANH2002 | last post by:
Hi From VB.NET I want to simulate the POST request of the following HTML form <html> <title>HTTP Post Testing</title> <body> <form action=http://www.example.com/postdata ...
1
by: =?iso-8859-1?Q?David_S=E1nchez_Mart=EDn?= | last post by:
Hi! I've seen the message below in this python list, that seems to be unanswered. I'm trying to do the pretty same thing. There's a way to preprocess the request with a mod_python handler...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.