Your message dated Tue, 22 Jul 2008 20:12:29 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Re: libapache2-mod-python2.3: apache2 seg faults serving this
python code
has caused the Debian Bug report #278898,
regarding libapache2-mod-python2.3: apache2 seg faults serving this python code
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
278898: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=278898
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: libapache2-mod-python2.3
Version: 3.1.3-2.2
Severity: normal
hi
I attach a simple script, and my apache2 server configuration;
when I try to view this page , the apache error log shows:
[Thu Oct 28 15:13:11 2004] [notice] child pid 12636 exit signal Segmentation
fault (11)
a.
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (650, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-k7
Locale: LANG=C, LC_CTYPE=C
Versions of packages libapache2-mod-python2.3 depends on:
ii apache2 2.0.52-1 Next generation, scalable, extenda
ii apache2-common 2.0.52-1 Next generation, scalable, extenda
ii apache2-mpm-worker [apache2 2.0.52-1 High speed threaded model for Apac
ii debconf 1.4.30.8 Debian configuration management sy
ii libc6 2.3.2.ds1-18 GNU C Library: Shared libraries an
ii python2.3 2.3.4-13 An interactive high-level object-o
-- debconf information:
* libapache2-mod-python/enable_module: true
--
Andrea Mennucc
"E' un mondo difficile. Che vita intensa!" (Tonino Carotone)
NameVirtualHost *
<VirtualHost *>
ServerAdmin [EMAIL PROTECTED]
#AddHandler mod_python .py
#PythonHandler mod_python.publisher
#PythonDebug On
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
SetHandler mod_python
PythonHandler mod_python.publisher
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
def info(req):
fs = req.form
req.content_type = "text/plain"
req.send_http_header()
o=[]
def loop(a,l=[]):
if len(l)>20 or a in o:
return
o.append(a)
n=getattr(a,'__name__','BOH')
if a is not None:
req.write(repr(l)+str(n)+'='+repr(a)+'\n')
l=l+[n]
d=[]
try:
d=dir(a)
except:
pass
if d:
for i in d:
if i[0] != '_':
loop(getattr(a,i),l)
loop(req,['req'])
#loop(apache,['apache'])
#for i in (req.interpreter,req.args,dir(req)):
# req.write(repr(i)+'\n')
#req.write(repr(dir(sys)))
#return apache.OK
--- End Message ---
--- Begin Message ---
The attached script (replacing "def info" with "def index") works fine
here, both with apache2-mpm-worker and apache2-mpm-prefork: the output
is
['req']BOH=<mp_request object at 0x2aaaabc024d0>
['req', 'BOH']add_common_vars=<built-in method add_common_vars of
mp_request object at 0x2aaaabc024d0>
['req', 'BOH']add_handler=<built-in method add_handler of mp_request
object at 0x2aaaabc024d0>
['req', 'BOH']add_input_filter=<built-in method add_input_filter of
mp_request object at 0x2aaaabc024d0>
['req', 'BOH']add_output_filter=<built-in method add_output_filter of
mp_request object at 0x2aaaabc024d0>
['req', 'BOH']allow_methods=<built-in method allow_methods of
mp_request object at 0x2aaaabc024d0>
['req', 'BOH']BOH=0
['req', 'BOH']BOH=()
['req', 'BOH']auth_name=<built-in method auth_name of mp_request
object at 0x2aaaabc024d0>
['req', 'BOH']auth_type=<built-in method auth_type of mp_request
object at 0x2aaaabc024d0>
['req', 'BOH']BOH=781L
['req', 'BOH']BOH='/var/www/pippo.py'
...
hence I'm closing this old bug.
Sandro
--
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/python-modules-team