[mod_python] Segfaults... segfaults...

Gregory (Grisha) Trubetskoy grisha at modpython.org
Sat Oct 12 16:08:37 EST 2002


I traced this to a bug in mod_negotiation.c - it didn't like r->fileinfo
being null, I submitted a patch for it, so hopefully it will be fixed in
next release of httpd.

Grisha

On Sun, 6 Oct 2002, Neo wrote:

>
>   Hi all !
>
>   I was just playing with mod_python 3 & Apache 2.0.42
> (RedHat Linux 7.2). Below are my "mptest.py" file, Apache VH config
> and the resuts of the single request:
>
> GET /mptest.py
>
>
> ----------------BEGIN----------------
> from mod_python import apache
>
>
> interp = None
>
> def transhandler(req):
>     interp = req.interpreter
>     return apache.OK
>
> def handler(req):
>     req.write(repr(interp))
>     return apache.OK
> -----------------END-----------------
>
> Config for virtual host:
> ----------------BEGIN----------------
> <VirtualHost *>
> [... skipped ...]
>
>     PythonPath    "..."
>
>     PythonDebug On
>     PythonTransHandler mptest
>     SetHandler python-program
>     PythonHandler mptest
>
>     <Directory "/home/w-https/test-www">
>         Options Indexes FollowSymLinks
>         AllowOverride None
>
>         Order allow,deny
>         Allow from all
>
>         DirectoryIndex index.html index.htm index.html.var
>
>         AddDefaultCharset UTF-8
>     </Directory>
>
> [... skipped ...]
> </VirtualHost>
> -----------------END-----------------
>
> Apache virtualhost log file:
> ----------------BEGIN----------------
> [Sun Oct 06 18:02:44 2002] [info] [client 212.188.98.243] Module bug?
> Request filename is missing for URI /mptest.py
> -----------------END-----------------
>
> *** I guess "transhandler" in the above example should somehow set
>     filename for incoming request for Apache to be happy? But SEGFAULT
>     is not the best action to report the error :)
>
> Apache main server log file:
> ----------------BEGIN----------------
> [Sun Oct 06 18:02:45 2002] [notice] child pid 12331 exit signal
> Segmentation fault (11)
> -----------------END-----------------
>
>
> ---
> Neo Eureka / mailto:neo at https.ru
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://www.modpython.org/mailman/listinfo/mod_python
>




More information about the Mod_python mailing list