You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by George Sanderson <ge...@xorgate.com> on 2000/07/31 16:08:47 UTC
mod_perl/6352: segmentation fault in ap_remove_module ()
>Number: 6352
>Category: mod_perl
>Synopsis: segmentation fault in ap_remove_module ()
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Mon Jul 31 07:10:02 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: george@xorgate.com
>Release: 1.3.12
>Organization:
apache
>Environment:
Apache 1.3.12 using mod_perl 1.24 as a DSO built with Perl 5.6.0 using Apache::AutoIndex 0.08 running on Linux 2.2.14
>Description:
Everything works fine, until, I `apachectl stop`, then add the following to a
virtural host section in httpd.conf
SetHandler perl-script
PerlModule Apache::AutoIndex
PerlHandler Apache::AutoIndex
then when I do `bin/httpd -X`
Linux does a core dump. Since I compiled in DEBUG the 'gdb bin/httpd core` reports a segmentation fault with:
#0 0x8054b09 in ap_remove_module ()
==============================================================
Strangeness: If I do a `bin/apachectl restart` instead of the stop, AutoIndex will run OK the first time, but crash on any following restarts. Also, If I add Apache::Icon to httpd.conf, the first restart results with a gdb responds with a segmentation fault with:
#0 0x2ac92474 in mod_perl_cleanup_av ()from /usr/local/apache/libexec/libperl.so
Somehow the results are timeing related.
I don't understand why Apache/mod_perl has to remove a module when it should be installing it. Maybe its just a confusing naming convention or something?
Note: I believe I was careful to clean out old versions before the makes.
I did have to 'not use' "large file support" for the Perl 5.6.0 build in order to get mod_perl to launch.
>How-To-Repeat:
You would have to build a simular configuration and try it, because when you try this on a server it crashes.
>Fix:
It probably is a invalid pointer.
I which I was more able to issolate the problem by putting printf s in the source or something. Any suggestions on this regard?
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]