Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Dev

[ANNOUNCE] mod_perl-2.0.4

 

 

ModPerl dev RSS feed   Index | Next | Previous | View Threaded


gozer at apache

Apr 17, 2008, 12:16 AM

Post #1 of 10 (1540 views)
Permalink
[ANNOUNCE] mod_perl-2.0.4

Finally, it's here and it works with Perl 5.10!

http://apache.org/dist/perl/mod_perl-2.0.4.tar.gz
http://apache.org/dist/perl/mod_perl-2.0.4.tar.gz.asc (pgp sig)

The package is also available on CPAN:

file: $CPAN/authors/id/G/GO/GOZER/mod_perl-2.0.4.tar.gz
size: 3727717 bytes
md5: 1a05625ae6843085f985f5da8214502a
sha1: 65299a16ec414a690a48a2bbe63acaa3c6bb897b

Changes since 2.0.3:

Fix $r->location corruption under certain conditions
[Gozer]

Fix a crash when spawning Perl threads under Perl 5.10
[Gozer]

Fix erratic behaviour when filters were used with Perl 5.10
[Gozer]

Fix problems with redefinitions of perl_free as free and perl_malloc
as malloc on Win32, as described at
http://marc.info/?l=apache-modperl&m=119896407510526&w=2
[Tom Donovan]

Fix a crash when running a sub-request from within a filter where
mod_perl was not the content handler. [Gozer]

Refactor tests to use keepalives instead of same_interp [Gozer, Phred]

Apache2::Reload has been moved to an externally maintained
CPAN distribution [Fred Moyer <fred[at]redhotpenguin.com>]

PerlCleanupHandler are now registered with a subpool of $r->pool,
instead of $r->pool itself, ensuring they run _before_ any other
$r->pool cleanups [Torsten Foertsch]

Fix a bug that would prevent pnotes from being cleaned up properly
at the end of the request [Torsten Foertsch]

On Win32, embed the manifest file, if present, in mod_perl.so,
so as to work with VC 8 [Steve Hay, Randy Kobes]

Expose apr_thread_rwlock_t with the APR::ThreadRWLock module
[Torsten Foertsch]

Don't waste an extra interpreter anymore under threaded MPMs when using a
modperl handler [Torsten Foertsch]

Fix a bug that could cause a crash when using $r->push_handlers() multiple
times for a phase that has no configured handlers [Torsten Foertsch]

Catch up with some httpd API changes
2.2.4:
The full server version information is now included in the error log at
startup as well as server status reports, irrespective of the setting
of the ServerTokens directive. ap_get_server_version() is now
deprecated, and is replaced by ap_get_server_banner() and
ap_get_server_description(). [Jeff Trawick]

2.3.0:
ap_get_server_version() has been removed. Third-party modules must
now use ap_get_server_banner() or ap_get_server_description().
[Gozer]

fixed Apache2::compat Apache2::ServerUtil::server_root() resolution
issues [Joshua Hoblitt]

*) SECURITY: CVE-2007-1349 (cve.mitre.org)
fix unescaped variable interprolation in regular expression
[Randal L. Schwartz <merlyn[at]stonehenge.com>, Fred Moyer <fred[at]redhotpenguin.com>]

Make $r->the_request() writeable
[Fred Moyer <fred[at]redhotpenguin.com>]

fix ModPerl::RegistryCooker::read_script to handle all possible
errors, previously there was a case where Apache2::Const::OK was
returned on an error. [Eivind Eklund <eeklund[at]gmail.com>]

a minor compilation warning resolved in modperl_handler_new_from_sv
[Stas]

a minor compilation warning resolved in modperl_gtop_size_string
[Stas]

Prevent direct use of _deprecated_ Apache2::ReadConfig in
<Perl> sections with httpd Alias directives from
incorrectly generating
'The Alias directive in xxxxx at line y will probably never match'
messages.
[Philip M. Gollucci <pgollucci[at]p6m78g.com>]

Prevent Apache2::PerSections::symdump() from returning invalid
httpd.conf snippets like 'Alias undef'
[Philip M. Gollucci <pgollucci[at]p6m78g.com>]

Require B-Size 0.9 for Apache2::Status which fixes
Can't call method "script_name" on an undefined value
[Philip M. Gollucci <pgollucci[at]p6m78g.com>]

-march=pentium4 or anything with an = in it in CCFLAGS or @ARGV
that gets passed to xs/APR/APR/Makefile.PL broke the @ARGV
parsing. I.E. FreeBSD port builds when users had CPUTYPE
set in /etc/make.conf.
[Philip M. Gollucci <pgollucci[at]p6m7g8.com>]

Fixes to get bleed-ithread (5.9.5+) to comile again.
[Philip M. Gollucci <pgollucci[at]p6m7g8.com>]

--
Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/
Attachments: signature.asc (0.24 KB)


margol at beamartyr

Apr 17, 2008, 10:59 AM

Post #2 of 10 (1488 views)
Permalink
Re: [ANNOUNCE] mod_perl-2.0.4 [In reply to]

I think we knew that (or am I getting mixed up with the mp1 RC?) and it
was supposed to be a known issue...

Issac

Foo JH wrote:
> Alas, I have bad news to report:
>
> Tech stack:
> Windows 2003 Server
> Apache 2.2.4
> Perl 5.10.0
> mod_perl 2.0.4 from 10xx/ path
>
> Observations:
> 1. mod_perl is able to start
> 2. mod_perl is unable to survive an Apache restart signal
> 3. (relavant) error log available below:
>
> [Thu Apr 17 23:39:34 2008] [notice] Parent: Received restart signal --
> Restarting the server.
> [Thu Apr 17 23:39:34 2008] [notice] Child 4532: Exit event signaled.
> Child process is ending.
> [Thu Apr 17 23:39:34 2008] [notice] Apache/2.2.8 (Win32)
> mod_perl/2.0.4-dev Perl/v5.10.0 configured -- resuming normal operations
> [Thu Apr 17 23:39:34 2008] [notice] Server built: Jan 18 2008 00:37:19
> [Thu Apr 17 23:39:34 2008] [crit] (22)Invalid argument: Parent: Failed
> to create the child process.
> [Thu Apr 17 23:39:34 2008] [crit] (OS 6)The handle is invalid. :
> master_main: create child process failed. Exiting.
> [Thu Apr 17 23:39:34 2008] [notice] Parent: Forcing termination of child
> process 36
> [Thu Apr 17 23:39:35 2008] [notice] Child 4532: Released the start mutex
> [Thu Apr 17 23:39:36 2008] [notice] Child 4532: All worker threads have
> exited.
> [Thu Apr 17 23:39:36 2008] [notice] Child 4532: Child process is exiting
>
>
>
>
> Philippe M. Chiasson wrote:
>> Finally, it's here and it works with Perl 5.10!

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


gozer at apache

Apr 17, 2008, 1:29 PM

Post #3 of 10 (1491 views)
Permalink
Re: [ANNOUNCE] mod_perl-2.0.4 [In reply to]

Helmut Zeilinger wrote:
> Hi Philippe,
>
> Software:
>
> Linux 2.6.15-gentoo-r1
> perl v5.8.8 (perl -V see below)
> mod_perl-2.0.4
>
> 1)
> apache 2.0.63 => works without problems (so far testet)
>
> 2)
> apache 2.2.6 + 2.2.8 =>
>
> at server start.=>
>
> ..
> /usr/local/apache2/bin/apachectl: line 78: 14924 Segmentation fault
> $HTTPD $ARGV
>
>
> make test =>
>
> ...
> server has died with status 255 (please examine t/logs/error_log)
>
> t/logs/error_log is empty.
>
> what else can i provide to track it down?

Get us a core dump if you can, ideally with debugging information.

http://perl.apache.org/docs/2.0/devel/debug/c.html#Analyzing_Dumped_Core_Files

In a nutshell, rebuild with

perl Makefile.PL MP_DEBUG=1 [...]

And proceed until you get a core dump.

Then use t/REPORT to submit a bug report, with the backtrace.

--
Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/
Attachments: signature.asc (0.24 KB)


pgollucci at p6m7g8

Apr 17, 2008, 3:47 PM

Post #4 of 10 (1489 views)
Permalink
Re: [ANNOUNCE] mod_perl-2.0.4 [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Philippe M. Chiasson wrote:
| Finally, it's here and it works with Perl 5.10!
|
| http://apache.org/dist/perl/mod_perl-2.0.4.tar.gz
| http://apache.org/dist/perl/mod_perl-2.0.4.tar.gz.asc (pgp sig)
|
| The package is also available on CPAN:
|
| file: $CPAN/authors/id/G/GO/GOZER/mod_perl-2.0.4.tar.gz
| size: 3727717 bytes
| md5: 1a05625ae6843085f985f5da8214502a
| sha1: 65299a16ec414a690a48a2bbe63acaa3c6bb897b
[Please drop CC's to ports <at> fbsd.org in replies.]

Hey, sorry, I didn't around to testing this before it came out :(

Default ports build on FreeBSD is broken

http://tinderbox-i386.p6m7g8.net/tb/errors/8.0-FreeBSD/mod_perl2-2.0.4,3.log



- --
- ------------------------------------------------------------------------
Philip M. Gollucci (philip[at]ridecharge.com)
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.8 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIB9NzdbiP+9ubjBwRAj/uAJ9fEC/70cY4jXzbpVEGlapQYriEewCdHCxA
cGlr1UBHAP5r46LEsFu+afE=
=1vig
-----END PGP SIGNATURE-----

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


gozer at apache

Apr 17, 2008, 5:00 PM

Post #5 of 10 (1493 views)
Permalink
Re: [ANNOUNCE] mod_perl-2.0.4 [In reply to]

Philip M. Gollucci wrote:
> Philippe M. Chiasson wrote:
> | Finally, it's here and it works with Perl 5.10!
> |
> | http://apache.org/dist/perl/mod_perl-2.0.4.tar.gz
> | http://apache.org/dist/perl/mod_perl-2.0.4.tar.gz.asc (pgp sig)
> |
> | The package is also available on CPAN:
> |
> | file: $CPAN/authors/id/G/GO/GOZER/mod_perl-2.0.4.tar.gz
> | size: 3727717 bytes
> | md5: 1a05625ae6843085f985f5da8214502a
> | sha1: 65299a16ec414a690a48a2bbe63acaa3c6bb897b
> [Please drop CC's to ports <at> fbsd.org in replies.]
>
> Hey, sorry, I didn't around to testing this before it came out :(
>
> Default ports build on FreeBSD is broken
>
> http://tinderbox-i386.p6m7g8.net/tb/errors/8.0-FreeBSD/mod_perl2-2.0.4,3.log

From that log:

/usr/local/bin/perl /usr/local/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.8/ExtUtils/typemap -typemap /work/a/ports/www/mod_perl2/work/mod_perl-2.0.4/xs/typemap Base64.xs > Base64.xsc && mv Base64.xsc Base64.c
cc -c -I/work/a/ports/www/mod_perl2/work/mod_perl-2.0.4/src/modules/perl -I/work/a/ports/www/mod_perl2/work/mod_perl-2.0.4/xs -I/usr/local/include/apache2 -I/usr/local/include/apache2 -I/usr/local/include -I/usr/local/include/apache2 -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -DMOD_PERL -DMP_COMPAT_1X -D_REENTRANT -D_THREAD_SAFE -DAP_HAVE_DESIGNATED_INITIALIZER -O2 -fno-strict-aliasing -pipe -DVERSION=\"0.009000\" -DXS_VERSION=\"0.009000\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.8/mach/CORE" -DMP_HAVE_APR_LIBS Base64.c
In file included from Base64.xs:25:
/work/a/ports/www/mod_perl2/work/mod_perl-2.0.4/xs/modperl_xs_typedefs.h:67: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
*** Error code 1

What's in xs/modperl_xs_typedefs.h:67 ? (it's generated, so I can easily tell)

--
Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/
Attachments: signature.asc (0.24 KB)


pgollucci at p6m7g8

Apr 17, 2008, 5:20 PM

Post #6 of 10 (1492 views)
Permalink
Re: [ANNOUNCE] mod_perl-2.0.4 [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Philippe M. Chiasson wrote:
|>
http://tinderbox-i386.p6m7g8.net/tb/errors/8.0-FreeBSD/mod_perl2-2.0.4,3.log

FWIW, also on 7.0
http://tinderbox-i386.p6m7g8.net/tb/errors/7.0-FreeBSD/mod_perl2-2.0.4,3.log
| What's in xs/modperl_xs_typedefs.h:67 ? (it's generated, so I can easily
| tell)

~From the 8-current tree:
http://p6m7g8.com/modperl_xs_typedefs.h

- --
- ------------------------------------------------------------------------
Philip M. Gollucci (philip[at]ridecharge.com)
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.8 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIB+lBdbiP+9ubjBwRAhNNAJ4/zpLJQhWkwxO405J9UI0Mg1H+0gCdEdGl
zFAPHHbS41aquX/2VWvA8/Y=
=p84q
-----END PGP SIGNATURE-----

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


gozer at apache

Apr 18, 2008, 1:13 AM

Post #7 of 10 (1487 views)
Permalink
Re: [ANNOUNCE] mod_perl-2.0.4 [In reply to]

Foo JH wrote:
> I don't know if it's known, but 2.2.4 is a relatively stable version in
> conjunction with AP5.8 + mp2.
>
> I guess this means I can't move into 5.10 yet.
>
> Issac Goldstand wrote:
>> I think we knew that (or am I getting mixed up with the mp1 RC?) and
>> it was supposed to be a known issue...

Mixed up with the mp1 RC I believe. This problems seems like news to me ;-(

--
Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/
Attachments: signature.asc (0.24 KB)


gozer at apache

Apr 18, 2008, 1:16 AM

Post #8 of 10 (1482 views)
Permalink
Re: [ANNOUNCE] mod_perl-2.0.4 [In reply to]

Philip M. Gollucci wrote:
> Philippe M. Chiasson wrote:
> |>
> http://tinderbox-i386.p6m7g8.net/tb/errors/8.0-FreeBSD/mod_perl2-2.0.4,3.log
>
> FWIW, also on 7.0
> http://tinderbox-i386.p6m7g8.net/tb/errors/7.0-FreeBSD/mod_perl2-2.0.4,3.log
> | What's in xs/modperl_xs_typedefs.h:67 ? (it's generated, so I can easily
> | tell)
>
> ~From the 8-current tree:
> http://p6m7g8.com/modperl_xs_typedefs.h

I don't have a FreeBSD machine handy, so, Philip, is there any chance you
could try and figure out a little more about what's going on?

Something is tripping up the compiler, so maybe
apache/include/apr_thread_rwlock.h has something funky in there (or isn't
even there)

Any chance you could run that one compilation invocation with
gcc -E instead ? That way, we can see the source _after_ macro
expansion, and it might help a lot in figuring out what's going on.

--
Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/
Attachments: signature.asc (0.24 KB)


pgollucci at p6m7g8

Apr 18, 2008, 3:40 PM

Post #9 of 10 (1466 views)
Permalink
Re: [ANNOUNCE] mod_perl-2.0.4 [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Philippe M. Chiasson wrote:
| Philip M. Gollucci wrote:
|> Philippe M. Chiasson wrote:
|> |>
|>
http://tinderbox-i386.p6m7g8.net/tb/errors/8.0-FreeBSD/mod_perl2-2.0.4,3.log

|>
|>
|> FWIW, also on 7.0
|>
http://tinderbox-i386.p6m7g8.net/tb/errors/7.0-FreeBSD/mod_perl2-2.0.4,3.log

|>
|> | What's in xs/modperl_xs_typedefs.h:67 ? (it's generated, so I can
|> easily
|> | tell)
|>
|> ~From the 8-current tree:
|> http://p6m7g8.com/modperl_xs_typedefs.h
|
| I don't have a FreeBSD machine handy, so, Philip, is there any chance you
| could try and figure out a little more about what's going on?
You do now, account info in offlist e-mail.

|
| Something is tripping up the compiler, so maybe
| apache/include/apr_thread_rwlock.h has something funky in there (or isn't
| even there)
My APR was compiled without Threads (/var/db/pkg/apr-nothr)

I'll look at tweaking the detection.

|
| Any chance you could run that one compilation invocation with
| gcc -E instead ? That way, we can see the source _after_ macro
| expansion, and it might help a lot in figuring out what's going on.
Don't think I need to do this give above.



- --
- ------------------------------------------------------------------------
Philip M. Gollucci (philip[at]ridecharge.com)
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.8 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFICSNNdbiP+9ubjBwRAm9/AJUYYympzjwfqksgXT2jeCrvkMyMAJwPZWgg
8umPQGJo9HMiHz+/xDXTEA==
=5ME5
-----END PGP SIGNATURE-----

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


gozer at apache

Apr 21, 2008, 12:51 AM

Post #10 of 10 (1394 views)
Permalink
Re: [ANNOUNCE] mod_perl-2.0.4 [In reply to]

Philip M. Gollucci wrote:
> Philippe M. Chiasson wrote:
> | Philip M. Gollucci wrote:
> |> Philippe M. Chiasson wrote:
> |> |>
> |>
> http://tinderbox-i386.p6m7g8.net/tb/errors/8.0-FreeBSD/mod_perl2-2.0.4,3.log
>
> |>
> |>
> |> FWIW, also on 7.0
> |>
> http://tinderbox-i386.p6m7g8.net/tb/errors/7.0-FreeBSD/mod_perl2-2.0.4,3.log
>
> |>
> |> | What's in xs/modperl_xs_typedefs.h:67 ? (it's generated, so I can
> |> easily
> |> | tell)
> |>
> |> ~From the 8-current tree:
> |> http://p6m7g8.com/modperl_xs_typedefs.h
> |
> | I don't have a FreeBSD machine handy, so, Philip, is there any chance you
> | could try and figure out a little more about what's going on?
> You do now, account info in offlist e-mail.
>
> |
> | Something is tripping up the compiler, so maybe
> | apache/include/apr_thread_rwlock.h has something funky in there (or isn't
> | even there)
> My APR was compiled without Threads (/var/db/pkg/apr-nothr)

Sounds like a problem with APR without threads.

> I'll look at tweaking the detection.

I think this patch to a bit of *magical* code should do the trick.

Index: lib/ModPerl/BuildMM.pm
===================================================================
--- lib/ModPerl/BuildMM.pm (revision 648960)
+++ lib/ModPerl/BuildMM.pm (working copy)
@@ -359,7 +359,7 @@

$apr_config ||= $build->get_apr_config();

- if ($path =~ m/(Thread|Global)Mutex/) {
+ if ($path =~ m/(Thread|Global)(Mutex|RWLock)/) {
return unless $apr_config->{HAS_THREADS};
}

Feels like something that doesn't belong in there, but rather in the
configuration somewhere in xs/maps...

--
Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/
Attachments: signature.asc (0.24 KB)

ModPerl dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.