Received: (qmail 40662 invoked by uid 501); 31 Jul 2000 14:08:48 -0000 Message-Id: <20000731140847.40624.qmail@locus.apache.org> Date: 31 Jul 2000 14:08:47 -0000 From: George Sanderson Reply-To: george@xorgate.com To: submit@bugz.apache.org Subject: segmentation fault in ap_remove_module () X-Send-Pr-Version: 3.110 >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 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! ]