You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Geoffrey Young <ge...@modperlcookbook.org> on 2003/11/07 22:00:51 UTC

[RELEASE CANDIDATE] mod_perl-1.99_11 RC1

a release candidate for mod_perl 1.99_11 is now available for testing.  note 
that 1.99_11 will be required for users running perl 5.8.2.

please grab the candidate from

   http://perl.apache.org/~geoff/mod_perl-1.99_11-dev.tar.gz

and report back successes or failures.  when reporting failures, please see 
the bug reporting guidelines at

   http://perl.apache.org/bugs/

so your report can get the best attention possible.

--Geoff

Changes since 1.99_10:

add a build/win32_fetch_apxs script (called within the top-level
Makefile.PL) to offer to fetch and install a Win32 development
version of apxs and (apr|apu)-config [Randy Kobes]

rewrite $r->read() and perlio read functions to use the same function,
which completely satisfies the read request if possible, on the way
getting rid of get_client_block and its supporting functions which
have problems and will most likely will be removed from the httpd-API
in the future. Directly manipulate bucket brigades instead. [Stas]

Since Apache2.pm pops /foo/Apache2 dirs to the top of @INC, it now
also takes care of keeping lib and blib dirs before the system dirs,
so that previously installed libraries won't get loaded instead of the
currently uninstalled libraries that are under test. [Stas]

When 'make test' fails we now print the info on what to do next [Stas]

At the end of 'make install' we now print the info how to proceed with
mod_perl and what to do in the case of post-install problems [Geoff]

Adjust the source to properly work with 5.8.2's new algorithm of
dynamic re-hashing of hashes on hash collision attack. [Nicholas Clark
<ni...@ccl4.org>, Stas]. Add a test that mounts such an attack so we
can verify that we can survive this rehashing. [Scott A Crosby
<sc...@cs.rice.edu>, Nicholas Clark <ni...@ccl4.org>, Tels
<pe...@bloodgate.com>, Mark Jason Dominus <mj...@plover.com>, Stas]

Standardize the Apache::PerlSections package name to it's plural form for
clarity and so that the pod gets glued in it's proper place.
[Philippe M. Chiasson <go...@cpan.org>]

return value from Perl callbacks are now passed directly to Apache
without additional post-call manipulations (such as assuming HTTP_OK
should really be OK).  [Geoffrey Young]

perl 5.8.1 w/ ithreads has a bug where it reports the wrong parent pid
(as if the process was never forked), provide a local workaround (+ new
test). [Rafael Garcia-Suarez <rg...@free.fr>]

overriden STD* streams now can be further overriden and will be
properly restored, which allows functions like $r->internal_redirect
work (+add tests) [Stas]

implement perlio's getarg hook, which now allows dupping STD* streams
overloaded by modperl [Stas]

Add PerlMapToStorageHandler [Geoffrey Young]

callbacks are now expected to return a meaningful value
(OK, SERVER_ERROR, etc) or return via an official API
(exit, die, etc).  relying on implicit returns from the
last call evaluated by a subroutine may result in server
errors.  [Stas, Geoffrey Young]

in the MP_MAINTAINER mode add the -Werror compilation flag when perl
v5.6.2 or higher is used, so that we don't miss compilation
warnings. [Stas]

fix the Makefile.PL option parser to support overriding of certain
build options, in addition to appending to them (.e.g. now MP_LIBNAME
is overridable) [Andrew Wyllie <wy...@dilex.net>]

make sure that connection filters won't be inserted as request filters
[Stas]

Prevent the 'Use of uninitialized value.' warning when
ModPerl::Util::exit is used. [Stas]

To make the test-sute sandbox-friendly, which break when things try to
run off /tmp, use t/logs as the location of the mod_cgid socket and
TMPDIR env var [Haroon Rafique <ha...@utoronto.ca>]


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [RELEASE CANDIDATE] mod_perl-1.99_11 RC1

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Tue, 11 Nov 2003, Steve Hay wrote:

[ .. ]
> Yep - it's all working fine now.  I still get a test skipped because it
> thinks I haven't got apr-config, though:
>
> apr-ext\uuid......................skipped
>         all skipped: the build couldn't find apr-config

This is something I was going to look at shortly - the
problem is that, in places, 'apr-config' is being searched
for, whereas on Win32, it's 'apr-config.bat'. A temporary
fix in places is to put C:\Apache2\bin into your PATH,
as which('something') is also used and this is
Win32-extension aware.

-- 
best regards,
randy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [RELEASE CANDIDATE] mod_perl-1.99_11 RC1

Posted by Stas Bekman <st...@stason.org>.
Steve Hay wrote:
> Stas Bekman wrote:
> 
> 
>>>Stas has fixed this up in the cvs version, by delaying the
>>>loading of Archive::Tar (and LWP) until they're needed. If
>>>the apxs utilities are already present, it should just exit
>>
>>>from this script immediately, once it finds them, and
>>
>>>continue along.
>>>   
>>>
>>
>>And that fix was included in 1.99_11 which was just released.
>>
> 
> Yep - it's all working fine now.  I still get a test skipped because it 
> thinks I haven't got apr-config, though:
> 
> apr-ext\uuid......................skipped
>         all skipped: the build couldn't find apr-config

Patches are welcome to help it find apr-config, as I have no idea what's 
happening with this script on the sacred winFU land. You want to look in 
Makefile.PL and xs/APR/APR/Makefile.PL, look for MP_HAVE_APR_LIBS. The code is 
the very similar in both files (it's really shouldn't be in the top-level 
Makefile.PL, need to do some fixes with PATH_THRU Makemaker options). If you 
know how to fix that as well, it'd be great!

> I also noticed that a few other tests are skipped becuase I haven't got 
> CGI.pm 3.01 or higher.  As far as I can see 3.00 is the latest.  Is 
> there a 3.01 release coming soon?  I need to check that a temporary file 
> clean up patch that I sent Lincoln a while ago will be in it 
> (http://marc.theaimsgroup.com/?l=apache-modperl-dev&m=106137320903099&w=2).

Yup, I hope that it should be out any moment now, if it wasn't already. It had 
quite a few problems with mp2 in 'SetHandler modperl' mode.

I guess I made a bet that CGI.pm's release will coincide with 1.99_11 release 
and people won't be confused, I should have known better and not include them 
in that release.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [RELEASE CANDIDATE] mod_perl-1.99_11 RC1

Posted by Steve Hay <st...@uk.radan.com>.
Stas Bekman wrote:

>>Stas has fixed this up in the cvs version, by delaying the
>>loading of Archive::Tar (and LWP) until they're needed. If
>>the apxs utilities are already present, it should just exit
>>from this script immediately, once it finds them, and
>>continue along.
>>    
>>
>
>And that fix was included in 1.99_11 which was just released.
>
Yep - it's all working fine now.  I still get a test skipped because it 
thinks I haven't got apr-config, though:

apr-ext\uuid......................skipped
        all skipped: the build couldn't find apr-config

I also noticed that a few other tests are skipped becuase I haven't got 
CGI.pm 3.01 or higher.  As far as I can see 3.00 is the latest.  Is 
there a 3.01 release coming soon?  I need to check that a temporary file 
clean up patch that I sent Lincoln a while ago will be in it 
(http://marc.theaimsgroup.com/?l=apache-modperl-dev&m=106137320903099&w=2).

- Steve



------------------------------------------------
Radan Computational Ltd.

The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only.  If you have received this message in error or there are any problems, please notify the sender immediately.  The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden.  Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd.  The recipient(s) of this message should check it and any attached files for viruses: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [RELEASE CANDIDATE] mod_perl-1.99_11 RC1

Posted by Stas Bekman <st...@stason.org>.
> Stas has fixed this up in the cvs version, by delaying the
> loading of Archive::Tar (and LWP) until they're needed. If
> the apxs utilities are already present, it should just exit
> from this script immediately, once it finds them, and
> continue along.

And that fix was included in 1.99_11 which was just released.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [RELEASE CANDIDATE] mod_perl-1.99_11 RC1

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Mon, 10 Nov 2003, Steve Hay wrote:

> Geoffrey Young wrote:
>
> >a release candidate for mod_perl 1.99_11 is now available
> >for testing.  note that 1.99_11 will be required for
> >users running perl 5.8.2.
> >
> >please grab the candidate from
> >
> >   http://perl.apache.org/~geoff/mod_perl-1.99_11-dev.tar.gz
> >[snip]
> >
> >Changes since 1.99_10:
> >
> >add a build/win32_fetch_apxs script (called within the top-level
> >Makefile.PL) to offer to fetch and install a Win32 development
> >version of apxs and (apr|apu)-config [Randy Kobes]
> >[snip]
> >
> I've haven't had time to look into this yet, but when I ran "perl
> Makefile.PL MP_AP_PREFIX=C:/apache2" using a fresh perl-5.8.2 build with
> only libwin32 and IPC-Run3 added, it complained that Archive-Tar was not
> present.
>
> My apologies if I'm guessing wrong, but it looked like the new
> apxs-fetching stuff was kicking in (I'm on Windows XP) and needed
> Archive-Tar to unpack something?
>
> But I'm puzzled why it would do that.  I have apxs installed already
> (from apxs_win32.tar.gz): my C:\apache2\bin directory contains
> apr-config.bat, apr-config.pl, apu-config.bat, apu-config.pl, apxs.bat
> and apxs.pl.
>
> Maybe I'm barking up the wrong tree.  Hopefully I'll have time to look
> at it better tomorrow.

Stas has fixed this up in the cvs version, by delaying the
loading of Archive::Tar (and LWP) until they're needed. If
the apxs utilities are already present, it should just exit
from this script immediately, once it finds them, and
continue along.

-- 
best regards,
randy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [RELEASE CANDIDATE] mod_perl-1.99_11 RC1

Posted by Stas Bekman <st...@stason.org>.
Steve Hay wrote:
[...]
> I've haven't had time to look into this yet, but when I ran "perl 
> Makefile.PL MP_AP_PREFIX=C:/apache2" using a fresh perl-5.8.2 build with 
> only libwin32 and IPC-Run3 added, it complained that Archive-Tar was not 
> present.
> 
> My apologies if I'm guessing wrong, but it looked like the new 
> apxs-fetching stuff was kicking in (I'm on Windows XP) and needed 
> Archive-Tar to unpack something?

Looks like it. Please try with the current cvs.

> But I'm puzzled why it would do that.  I have apxs installed already 
> (from apxs_win32.tar.gz): my C:\apache2\bin directory contains 
> apr-config.bat, apr-config.pl, apu-config.bat, apu-config.pl, apxs.bat 
> and apxs.pl.

Because it checks for the existance of apxs from this script, and since 'use' 
fails it never gets a chance to do that. I think I've fixed that in cvs, 
though I can't test it since I don't have winfu.

> Maybe I'm barking up the wrong tree.  Hopefully I'll have time to look 
> at it better tomorrow.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [RELEASE CANDIDATE] mod_perl-1.99_11 RC1

Posted by Steve Hay <st...@uk.radan.com>.
Geoffrey Young wrote:

>a release candidate for mod_perl 1.99_11 is now available for testing.  note 
>that 1.99_11 will be required for users running perl 5.8.2.
>
>please grab the candidate from
>
>   http://perl.apache.org/~geoff/mod_perl-1.99_11-dev.tar.gz
>[snip]
>
>Changes since 1.99_10:
>
>add a build/win32_fetch_apxs script (called within the top-level
>Makefile.PL) to offer to fetch and install a Win32 development
>version of apxs and (apr|apu)-config [Randy Kobes]
>[snip]
>
I've haven't had time to look into this yet, but when I ran "perl 
Makefile.PL MP_AP_PREFIX=C:/apache2" using a fresh perl-5.8.2 build with 
only libwin32 and IPC-Run3 added, it complained that Archive-Tar was not 
present.

My apologies if I'm guessing wrong, but it looked like the new 
apxs-fetching stuff was kicking in (I'm on Windows XP) and needed 
Archive-Tar to unpack something?

But I'm puzzled why it would do that.  I have apxs installed already 
(from apxs_win32.tar.gz): my C:\apache2\bin directory contains 
apr-config.bat, apr-config.pl, apu-config.bat, apu-config.pl, apxs.bat 
and apxs.pl.

Maybe I'm barking up the wrong tree.  Hopefully I'll have time to look 
at it better tomorrow.

- Steve



------------------------------------------------
Radan Computational Ltd.

The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only.  If you have received this message in error or there are any problems, please notify the sender immediately.  The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden.  Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd.  The recipient(s) of this message should check it and any attached files for viruses: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: Segmentation fault

Posted by Stas Bekman <st...@stason.org>.
[In the future please don't reply to some thread when starting a new topic, 
but post a new email. thank you!]

Bobber Cheng wrote:
> Hi,
> 
> Apache(2.0.48) with perl_mod(1.99_10) got a Segmentation fault when i 
> access a perl script from apache. I use perl-5.8.2 built from source 
> without thread-support. perl_mod is complied by perl "Makefile.PL 
> MP_INST_APACHE2=1 MP_DEBUG=1 MP_AP_PREFIX=/usr/local/apache2".
[...]
> 0x4027b14a in memcpy () from /lib/libc.so.6
> (gdb) backtrace
> #0  0x4027b14a in memcpy () from /lib/libc.so.6
> #1  0x40174728 in apr_file_read (thefile=0x8433e58, buf=0x0, 
> nbytes=0x81b33ec)
>    at readwrite.c:122
> #2  0x403ab52e in modperl_slurp_filename (r=0x8433e58, tainted=0)
>    at modperl_util.c:710
> #3  0x406c677b in XS_Apache__RequestRec_slurp_filename (cv=0x81b33ec)

Please try this patch:

Index: src/modules/perl/modperl_util.c
===================================================================
RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_util.c,v
retrieving revision 1.56
diff -u -r1.56 modperl_util.c
--- src/modules/perl/modperl_util.c     3 Nov 2003 09:29:49 -0000       1.56
+++ src/modules/perl/modperl_util.c     12 Nov 2003 09:09:10 -0000
@@ -706,6 +706,12 @@

      size = r->finfo.size;
      sv = newSV(size);
+
+    if (!size) {
+        sv_setpvn(sv, "", 0);
+        return newRV_noinc(sv);
+    }
+
      file = r->finfo.filehand;
      if (!file) {
          rc = apr_file_open(&file, r->filename, APR_READ|APR_BINARY,

You may need to use the latest cvs (or mod_perl 1.99_11) if the patch doesn't 
apply cleanly, but I think it should be fine. You want to use 1.99_11 in any case.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Segmentation fault

Posted by Bobber Cheng <ma...@netscape.net>.
Hi,

Apache(2.0.48) with perl_mod(1.99_10) got a Segmentation fault when i access a perl script from apache. I use perl-5.8.2 built from source without thread-support. perl_mod is complied by perl "Makefile.PL MP_INST_APACHE2=1 MP_DEBUG=1 MP_AP_PREFIX=/usr/local/apache2".

GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...

(gdb) run -X -d /usr/local/apache2
Starting program: /usr/local/apache2/bin/httpd -X -d /usr/local/apache2
[New Thread 16384 (LWP 933)]
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 933)]
0x4027b14a in memcpy () from /lib/libc.so.6
(gdb) backtrace
#0  0x4027b14a in memcpy () from /lib/libc.so.6
#1  0x40174728 in apr_file_read (thefile=0x8433e58, buf=0x0, nbytes=0x81b33ec)
    at readwrite.c:122
#2  0x403ab52e in modperl_slurp_filename (r=0x8433e58, tainted=0)
    at modperl_util.c:710
#3  0x406c677b in XS_Apache__RequestRec_slurp_filename (cv=0x81b33ec)
    at RequestUtil.xs:249
#4  0x404119ef in Perl_pp_entersub ()
   from /usr/local/apache2/modules/mod_perl.so
#5  0x4040c34c in Perl_runops_standard ()
   from /usr/local/apache2/modules/mod_perl.so
#6  0x403bf10a in S_call_body () from /usr/local/apache2/modules/mod_perl.so
#7  0x403beefe in Perl_call_sv () from /usr/local/apache2/modules/mod_perl.so
#8  0x403a7d66 in modperl_callback (handler=0x816cbd0, p=0x8433e20,
    r=0x8433e58, s=0x80c27f8, args=0x81509a4) at modperl_callback.c:69
#9  0x403a82f8 in modperl_callback_run_handlers (idx=6, type=4, r=0x8433e58,
    c=0x0, s=0x80c27f8, pconf=0x0, plog=0x0, ptemp=0x0,
    run_mode=MP_HOOK_RUN_FIRST) at modperl_callback.c:207
#10 0x403a84c7 in modperl_callback_per_dir (idx=6, r=0x8433e58,
    run_mode=MP_HOOK_RUN_FIRST) at modperl_callback.c:279
#11 0x403a44ed in modperl_response_handler_run (r=0x8433e58, finish=0)
    at mod_perl.c:857
#12 0x403a46e3 in modperl_response_handler_cgi (r=0x8433e58) at mod_perl.c:922
#13 0x08081435 in ap_run_handler (r=0x8433e58) at config.c:195
#14 0x08081a3f in ap_invoke_handler (r=0x7) at config.c:401
#15 0x0806e846 in ap_process_request (r=0x815bad4) at http_request.c:288
#16 0x08069cac in ap_process_http_connection (c=0x7) at http_core.c:293
#17 0x0808c265 in ap_run_process_connection (c=0x81632a0) at connection.c:85
#18 0x0807fa5c in child_main (child_num_arg=0) at prefork.c:694
#19 0x0807fc6a in make_child (s=0x1bd2, slot=0) at prefork.c:734
#20 0x0807fcc8 in startup_children (number_to_start=5) at prefork.c:806
#21 0x0808050f in ap_mpm_run (_pconf=0x80c00f0, plog=0x80f81d0, s=0x80c27f8)
    at prefork.c:1022
#22 0x0808696f in main (argc=4, argv=0xbffff8d4) at main.c:660
#23 0x40214917 in __libc_start_main () from /lib/libc.so.6

Could Any hacker tell me what more detailed information is needed to fix it?



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [RELEASE CANDIDATE] mod_perl-1.99_11 RC1

Posted by Stas Bekman <st...@stason.org>.
Geoffrey Young wrote:
> 
>>> hmm... so wildcards are in by default on gentoo.  does anyone else 
>>> know of other standard distributions that use wildcards?  I certainly 
>>> don't want the warning to raise lots of eyebrows and suspicions...
>>
>>
>>
>> what we could do is to try to expand it with <> and if at least one 
>> file exist copy it over?
> 
> 
> well, I don't think we need to copy it.  I'll need to look at where all 
> the calls come from, but if an Include'd wildcard conf file doesn't get 
> slurped I don't think it's that big a deal, so long as all the primary 
> criteria (DSO files, ServerRoot, etc) can be resolved.  needs more 
> investigation I guess...

+1.

Do nothing about it and just ignore them. If someone will have a problem with 
it in the future (e.g. Include was loading DSO files) we will handle it then.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [RELEASE CANDIDATE] mod_perl-1.99_11 RC1

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
>> hmm... so wildcards are in by default on gentoo.  does anyone else 
>> know of other standard distributions that use wildcards?  I certainly 
>> don't want the warning to raise lots of eyebrows and suspicions...
> 
> 
> what we could do is to try to expand it with <> and if at least one file 
> exist copy it over?

well, I don't think we need to copy it.  I'll need to look at where all the 
calls come from, but if an Include'd wildcard conf file doesn't get slurped 
I don't think it's that big a deal, so long as all the primary criteria (DSO 
files, ServerRoot, etc) can be resolved.  needs more investigation I guess...

> 
> As for the release I think keep things as they are (plus your fix of the 
> bug in the previous reply and a small thing I just committed in 
> build/win32_fetch_apxs) and release the baby. Next we can handle the 
> wild-cards for the next separate A-T release.

agreed.

--Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [RELEASE CANDIDATE] mod_perl-1.99_11 RC1

Posted by Stas Bekman <st...@stason.org>.
Geoffrey Young wrote:
> 
> 
> Haroon Rafique wrote:
> 
>> On Today at 12:11pm, GY=>Geoffrey Young <ge...@modperlcookbook.org> 
>> wrote:
>>
>> GY> GY> ok, that's just a warning.  I assume that is the target of an 
>> Include
>> GY> directive in your default httpd.conf?
>> GY>
>>
>> That's correct. I found the following line in the apache2.conf file 
>> (supplied by Gentoo package management system):
>>     Include conf/modules.d/*.conf
> 
> 
> hmm... so wildcards are in by default on gentoo.  does anyone else know 
> of other standard distributions that use wildcards?  I certainly don't 
> want the warning to raise lots of eyebrows and suspicions...

what we could do is to try to expand it with <> and if at least one file exist 
copy it over?

As for the release I think keep things as they are (plus your fix of the bug 
in the previous reply and a small thing I just committed in 
build/win32_fetch_apxs) and release the baby. Next we can handle the 
wild-cards for the next separate A-T release.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [RELEASE CANDIDATE] mod_perl-1.99_11 RC1

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

Haroon Rafique wrote:
> On Today at 12:11pm, GY=>Geoffrey Young <ge...@modperlcookbook.org> wrote:
> 
> GY> 
> GY> ok, that's just a warning.  I assume that is the target of an Include
> GY> directive in your default httpd.conf?
> GY>
> 
> That's correct. I found the following line in the apache2.conf file 
> (supplied by Gentoo package management system):
> 	Include conf/modules.d/*.conf

hmm... so wildcards are in by default on gentoo.  does anyone else know of 
other standard distributions that use wildcards?  I certainly don't want the 
warning to raise lots of eyebrows and suspicions...

> 
> It was just paranoia on my part when I stopped the build.
> 
> Just to let you know that I'm happy to report that regardless of applying
> your patch, letting the build continue is sufficient to get 100% success
> on all tests.

excellent, and thanks for reporting back!

--Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [RELEASE CANDIDATE] mod_perl-1.99_11 RC1

Posted by Haroon Rafique <ha...@utoronto.ca>.
On Today at 12:11pm, GY=>Geoffrey Young <ge...@modperlcookbook.org> wrote:

GY> 
GY> ok, that's just a warning.  I assume that is the target of an Include
GY> directive in your default httpd.conf?
GY>

That's correct. I found the following line in the apache2.conf file 
(supplied by Gentoo package management system):
	Include conf/modules.d/*.conf

It was just paranoia on my part when I stopped the build.

Just to let you know that I'm happy to report that regardless of applying
your patch, letting the build continue is sufficient to get 100% success
on all tests.

Regards
--
Haroon Rafique   <ha...@utoronto.ca>
Student Information Systems, University of Toronto

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [RELEASE CANDIDATE] mod_perl-1.99_11 RC1

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> the behavior hasn't changed since 
> 1.99_10 but it now emits a warning if it can't properly resolve a target 
> file

yike, it has changed - my bad.

try this patch.  it still will give you the warning, but now it behaves like 
it used to.  I may end up changing the warning to a debug message I think 
we'll be seeing the lots...

--Geoff

Re: [RELEASE CANDIDATE] mod_perl-1.99_11 RC1

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> The code which figured out where the installed apache 2 config files are 
> located used to work flawlessly in 1.99_10. Now I get a:
> 	*** configuration file /etc/apache2/conf/modules.d/*.conf does not exist
> fairly early in the configuration process. 

ok, that's just a warning.  I assume that is the target of an Include 
directive in your default httpd.conf?

what's happening here is that Apache-Test is parsing your existing 
httpd.conf in order to configure itself (such as the location of whatever 
DSO files you may have).  the behavior hasn't changed since 1.99_10 but it 
now emits a warning if it can't properly resolve a target file, and the 
parsing engine isn't smart enough to know to shell-expand wildcards.

so, you should be ok with your install - go ahead a try and report back if 
it doesn't work.

if you're interested, you can also try

$ export APACHE_TEST_TRACE_LEVEL=debug
$ make realclean
$ perl Makefile.PL ...

and see what directive it's being tripped up on (though it should be farily 
obvious if you look at your httpd.conf).

--Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [RELEASE CANDIDATE] mod_perl-1.99_11 RC1

Posted by Haroon Rafique <ha...@utoronto.ca>.
On Friday at 4:00pm, GY=>Geoffrey Young <ge...@modperlcookbook.org> wrote:

GY> a release candidate for mod_perl 1.99_11 is now available for testing.  
GY> note that 1.99_11 will be required for users running perl 5.8.2.
GY> 
GY> please grab the candidate from
GY> 
GY>    http://perl.apache.org/~geoff/mod_perl-1.99_11-dev.tar.gz
GY> 
GY> and report back successes or failures.  when reporting failures,
GY> please see the bug reporting guidelines at
GY> 

-------------8<---------- Start Bug Report ------------8<----------
Geoff,

I have an anomolous report on a Gentoo Linux system. Anything else I can 
do to help? (I am not subscribed to dev@perl.apache.org, so I am not sure 
that the Cc: to dev list will work if the sender is not subscribed).

1. Problem Description:

The code which figured out where the installed apache 2 config files are 
located used to work flawlessly in 1.99_10. Now I get a:
	*** configuration file /etc/apache2/conf/modules.d/*.conf does not exist
fairly early in the configuration process. I didn't even bother to 
continue the build after that.

(From the bug report) You can focus on the:
 -D SERVER_CONFIG_FILE="/etc/apache2/conf/apache2.conf"
and instead of looking there, it decided to search in modules.d/*.conf?

2. Used Components and their Configuration:

*** mod_perl version 1.9911

*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
  MP_APXS         => /usr/sbin/apxs2
  MP_AP_PREFIX    => /usr
  MP_COMPAT_1X    => 1
  MP_DEBUG        => 1
  MP_GENERATE_XS  => 1
  MP_INST_APACHE2 => 1
  MP_LIBNAME      => mod_perl
  MP_TRACE        => 1
  MP_USE_DSO      => 1


*** /usr/sbin/apache2 -V
Server version: Apache/2.0.48
Server built:   Nov  7 2003 13:31:58
Server's Module Magic Number: 20020903:4
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/usr"
 -D SUEXEC_BIN="/usr/sbin/suexec2"
 -D DEFAULT_PIDLOG="/var/run/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="/var/run/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="/etc/apache2/conf/mime.types"
 -D SERVER_CONFIG_FILE="/etc/apache2/conf/apache2.conf"


*** /usr/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:
  Platform:
    osname=linux, osvers=2.4.20-ck6, archname=i686-linux
    uname='linux haroon.sis.utoronto.ca 2.4.20-ck6 #1 fri jun 6 14:48:56 edt 2003 i686 intel(r) pentium(r) 4 cpu 1.80ghz genuineintel gnulinux '
    config_args='-des -Darchname=i686-linux -Dcc=gcc -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth=  -Doptimize=-march=pentium4 -O3 -pipe -s -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -ffast-math -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Dscriptdir=/usr/bin -Dman3ext=3pm -Dcf_by=Gentoo -Ud_csh -Di_gdbm -Di_db -Di_ndbm'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-march=pentium4 -O3 -pipe -s -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -ffast-math',
    cppflags='-DPERL5 -fno-strict-aliasing'
    ccversion='', gccversion='3.3.2 20031022 (Gentoo Linux 3.3.2-r2, propolice)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.3.2'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: USE_LARGE_FILES
  Built under linux
  Compiled at Nov 10 2003 10:00:13
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /etc/perl
    /usr/lib/perl5/site_perl/5.8.2/i686-linux
    /usr/lib/perl5/site_perl/5.8.2
    /usr/lib/perl5/site_perl/5.8.1/i686-linux
    /usr/lib/perl5/site_perl/5.8.1
    /usr/lib/perl5/site_perl/5.8.0/i686-linux
    /usr/lib/perl5/site_perl/5.8.0
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.2/i686-linux
    /usr/lib/perl5/vendor_perl/5.8.2
    /usr/lib/perl5/vendor_perl/5.8.1/i686-linux
    /usr/lib/perl5/vendor_perl/5.8.1
    /usr/lib/perl5/vendor_perl/5.8.0/i686-linux
    /usr/lib/perl5/vendor_perl/5.8.0
    /usr/lib/perl5/vendor_perl
    /usr/lib/perl5/5.8.2/i686-linux
    /usr/lib/perl5/5.8.2
    /usr/local/lib/site_perl
    /usr/lib/perl5/site_perl/5.8.1/i686-linux
    /usr/lib/perl5/site_perl/5.8.1
    /usr/lib/perl5/site_perl/5.8.0/i686-linux
    /usr/lib/perl5/site_perl/5.8.0
    .


3. This is the core dump trace: (if you get a core dump):

  [CORE TRACE COMES HERE]

This report was generated by t/REPORT on Mon Nov 10 15:57:47 2003 GMT.

-------------8<---------- End Bug Report --------------8<----------

--
Haroon Rafique
<ha...@utoronto.ca>


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: [RELEASE CANDIDATE] mod_perl-1.99_11 RC1

Posted by Haroon Rafique <ha...@utoronto.ca>.
On Friday at 4:00pm, GY=>Geoffrey Young <ge...@modperlcookbook.org> wrote:

GY> a release candidate for mod_perl 1.99_11 is now available for testing.  
GY> note that 1.99_11 will be required for users running perl 5.8.2.
GY> 
GY> please grab the candidate from
GY> 
GY>    http://perl.apache.org/~geoff/mod_perl-1.99_11-dev.tar.gz
GY> 
GY> and report back successes or failures.  when reporting failures,
GY> please see the bug reporting guidelines at
GY> 

-------------8<---------- Start Bug Report ------------8<----------
Geoff,

I have an anomolous report on a Gentoo Linux system. Anything else I can 
do to help? (I am not subscribed to dev@perl.apache.org, so I am not sure 
that the Cc: to dev list will work if the sender is not subscribed).

1. Problem Description:

The code which figured out where the installed apache 2 config files are 
located used to work flawlessly in 1.99_10. Now I get a:
	*** configuration file /etc/apache2/conf/modules.d/*.conf does not exist
fairly early in the configuration process. I didn't even bother to 
continue the build after that.

(From the bug report) You can focus on the:
 -D SERVER_CONFIG_FILE="/etc/apache2/conf/apache2.conf"
and instead of looking there, it decided to search in modules.d/*.conf?

2. Used Components and their Configuration:

*** mod_perl version 1.9911

*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
  MP_APXS         => /usr/sbin/apxs2
  MP_AP_PREFIX    => /usr
  MP_COMPAT_1X    => 1
  MP_DEBUG        => 1
  MP_GENERATE_XS  => 1
  MP_INST_APACHE2 => 1
  MP_LIBNAME      => mod_perl
  MP_TRACE        => 1
  MP_USE_DSO      => 1


*** /usr/sbin/apache2 -V
Server version: Apache/2.0.48
Server built:   Nov  7 2003 13:31:58
Server's Module Magic Number: 20020903:4
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/usr"
 -D SUEXEC_BIN="/usr/sbin/suexec2"
 -D DEFAULT_PIDLOG="/var/run/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="/var/run/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="/etc/apache2/conf/mime.types"
 -D SERVER_CONFIG_FILE="/etc/apache2/conf/apache2.conf"


*** /usr/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:
  Platform:
    osname=linux, osvers=2.4.20-ck6, archname=i686-linux
    uname='linux haroon.sis.utoronto.ca 2.4.20-ck6 #1 fri jun 6 14:48:56 edt 2003 i686 intel(r) pentium(r) 4 cpu 1.80ghz genuineintel gnulinux '
    config_args='-des -Darchname=i686-linux -Dcc=gcc -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth=  -Doptimize=-march=pentium4 -O3 -pipe -s -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -ffast-math -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Dscriptdir=/usr/bin -Dman3ext=3pm -Dcf_by=Gentoo -Ud_csh -Di_gdbm -Di_db -Di_ndbm'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-march=pentium4 -O3 -pipe -s -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -ffast-math',
    cppflags='-DPERL5 -fno-strict-aliasing'
    ccversion='', gccversion='3.3.2 20031022 (Gentoo Linux 3.3.2-r2, propolice)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.3.2'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: USE_LARGE_FILES
  Built under linux
  Compiled at Nov 10 2003 10:00:13
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /etc/perl
    /usr/lib/perl5/site_perl/5.8.2/i686-linux
    /usr/lib/perl5/site_perl/5.8.2
    /usr/lib/perl5/site_perl/5.8.1/i686-linux
    /usr/lib/perl5/site_perl/5.8.1
    /usr/lib/perl5/site_perl/5.8.0/i686-linux
    /usr/lib/perl5/site_perl/5.8.0
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.2/i686-linux
    /usr/lib/perl5/vendor_perl/5.8.2
    /usr/lib/perl5/vendor_perl/5.8.1/i686-linux
    /usr/lib/perl5/vendor_perl/5.8.1
    /usr/lib/perl5/vendor_perl/5.8.0/i686-linux
    /usr/lib/perl5/vendor_perl/5.8.0
    /usr/lib/perl5/vendor_perl
    /usr/lib/perl5/5.8.2/i686-linux
    /usr/lib/perl5/5.8.2
    /usr/local/lib/site_perl
    /usr/lib/perl5/site_perl/5.8.1/i686-linux
    /usr/lib/perl5/site_perl/5.8.1
    /usr/lib/perl5/site_perl/5.8.0/i686-linux
    /usr/lib/perl5/site_perl/5.8.0
    .


3. This is the core dump trace: (if you get a core dump):

  [CORE TRACE COMES HERE]

This report was generated by t/REPORT on Mon Nov 10 15:57:47 2003 GMT.

-------------8<---------- End Bug Report --------------8<----------

--
Haroon Rafique
<ha...@utoronto.ca>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org