www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Sanderson <geo...@xorgate.com>
Subject mod_perl/6352: segmentation fault in ap_remove_module ()
Date Mon, 31 Jul 2000 14:08:47 GMT

>Number:         6352
>Category:       mod_perl
>Synopsis:       segmentation fault in ap_remove_module ()
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Jul 31 07:10:02 PDT 2000
>Originator:     george@xorgate.com
>Release:        1.3.12
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
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.

You would have to build a simular configuration and try it, because when you try this on a
server it crashes.
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?
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@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!     ]

View raw message