httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward J. Sabol" <sa...@alderaan.gsfc.nasa.gov>
Subject Re: libapreq2-2.02-dev build problems with Perl 5.6.1
Date Thu, 11 Dec 2003 01:23:40 GMT
> I blew away my build directory and started from scratch. First, I applied the
> patch and then I copied ppport.h into glue/perl/xsbuilder/. Then I proceeded
> to build it. There are a lot fewer errors this time, but Cookie.c still fails
> to compile. dAX and ax are missing?

OK, I found dAX in modperl_xs_util.h, so I thought I'd try #include'ing that
in apreq_xs_postperl.h. After that, it did build!

"make test" shows a variety of problems though, ranging from the simplistic
to possibly problematic.

First, I had to manually change all t/TEST files to point to the correct
version of Perl again. (See previous e-mails.) Once I did that, the first few
rounds of tests did pass.

The glue/perl/t/TEST failed pretty spectacularly though:

/usr1/local/bin/perl5.6.1 -Iblib/arch -Iblib/lib \
t/TEST -clean
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -clean
sh: ulimit: cannot modify core file size limit: Operation not permitted
APACHE_USER= APXS= APACHE_PORT= APACHE_GROUP= APACHE= \
/usr1/local/bin/perl5.6.1 -Iblib/arch -Iblib/lib \
t/TEST -bugreport -verbose=0
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST -bugreport -verbose=0
sh: ulimit: cannot modify core file size limit: Operation not permitted
/usr/wwwserver/apache.2.0.48/bin/httpd -d /var/tmp/cpan/build/libapreq2-2.02-dev/glue/perl/t
-f /var/tmp/cpan/build/libapreq2-2.02-dev/glue/perl/t/conf/httpd.conf -DAPACHE2
using Apache/2.0.48 (prefork MPM)

waiting 60 seconds for server to start: ..
waiting 60 seconds for server to start: ok (waited 1 secs)
server localhost.localdomain:8529 started
apreq/big_input....FAILED tests 1-21
        Failed 21/21 tests, 0.00% okay
apreq/cookie.......FAILED tests 6-7
        Failed 2/7 tests, 71.43% okay
apreq/inherit......FAILED tests 1-4
        Failed 4/4 tests, 0.00% okay
apreq/request......FAILED tests 1-2
        Failed 2/2 tests, 0.00% okay
Failed Test       Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
apreq/big_input.t               21   21 100.00%  1-21
apreq/cookie.t                   7    2  28.57%  6-7
apreq/inherit.t                  4    4 100.00%  1-4
apreq/request.t                  2    2 100.00%  1-2
*** server localhost.localdomain:8529 shutdown
!!! error running tests (please examine t/logs/error_log)
!!! oh gosh, server dumped core
!!! for stacktrace, run: gdb /usr/wwwserver/apache.2.0.48/bin/httpd -core
/var/tmp/cpan/build/libapreq2-2.02-dev/glue/perl/t/core.21314
etc...

gdb reveals:

#0  0x4007140d in apr_palloc (pool=0x4212df00, size=16) at apr_pools.c:632
632         if (size < (apr_size_t)(active->endp - active->first_avail)) {
(gdb) bt
#0  0x4007140d in apr_palloc (pool=0x4212df00, size=16) at apr_pools.c:632
#1  0x40063cbc in apr_pmemdup (a=0x4212df00, m=0x8178260, n=11)
    at apr_strings.c:156
#2  0x4024edcd in XS_Apache__RequestRec_content_type ()
   from /usr1/local/lib/perl5/site_perl/5.6.1/i686-linux/auto/Apache/RequestRec/RequestRec.so
#3  0x401ba355 in Perl_pp_entersub ()
   from /usr/wwwserver/apache.2.0.48/modules/mod_perl.so
#4  0x401b501d in Perl_runops_standard ()
   from /usr/wwwserver/apache.2.0.48/modules/mod_perl.so
#5  0x4017daf5 in S_call_body ()
   from /usr/wwwserver/apache.2.0.48/modules/mod_perl.so
#6  0x4017d8be in perl_call_sv ()
   from /usr/wwwserver/apache.2.0.48/modules/mod_perl.so
#7  0x4016c713 in modperl_callback ()
   from /usr/wwwserver/apache.2.0.48/modules/mod_perl.so
#8  0x4016ca8e in modperl_callback_run_handlers ()
   from /usr/wwwserver/apache.2.0.48/modules/mod_perl.so
#9  0x4016cb1c in modperl_callback_per_dir ()
   from /usr/wwwserver/apache.2.0.48/modules/mod_perl.so
#10 0x4016a272 in modperl_response_handler_run ()
   from /usr/wwwserver/apache.2.0.48/modules/mod_perl.so
#11 0x4016a2fd in modperl_response_handler ()
   from /usr/wwwserver/apache.2.0.48/modules/mod_perl.so
#12 0x0808c39e in ap_run_handler (r=0x81c4820) at config.c:194
#13 0x0808c8b9 in ap_invoke_handler (r=0x81c4820) at config.c:401
#14 0x08075c83 in ap_process_request (r=0x81c4820) at http_request.c:288
#15 0x08071d8c in ap_process_http_connection (c=0x81bc8d8) at http_core.c:293
#16 0x08095202 in ap_run_process_connection (c=0x81bc8d8) at connection.c:85
#17 0x0808b049 in child_main (child_num_arg=0) at prefork.c:694
#18 0x0808b190 in make_child (s=0x80cdbf0, slot=0) at prefork.c:788
#19 0x0808b1e6 in startup_children (number_to_start=1) at prefork.c:806
#20 0x0808b4e8 in ap_mpm_run (_pconf=0x80cabf0, plog=0x8106ce0, s=0x80cdbf0)
    at prefork.c:1022
#21 0x080908e7 in main (argc=6, argv=0xbfffe4b4) at main.c:660
#22 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6

Any ideas?

Mime
View raw message