Re: Error.pm under mod_perl

2003-12-30 Thread Dominique Quatravaux
y);" instead of just "use Error;", or the try blocks will simply do nothing exception-wise. This has bitten me more than once :) -- Dominique QUATRAVAUX Ingénieur senior 01 44 42 00 08 IDEALX pgp0.pgp Description: PGP signature

Re: HTML::Mason segfault

2004-07-21 Thread Dominique Quatravaux
es with XS does your application use? RedHat 7.x's broken DBI package has bitten us a number of times for example (solution: upgrade it from CPAN), with less than clear backtraces (just like the one you are getting). - -- Dominique QUATRAVAUX Ingénieur senior

Re: problem running suid scripts...

2004-08-06 Thread Dominique Quatravaux
ot as default 'apache' user. Hi, This is not possible from within mod_perl itself, as the Apache program does not have the necessary privileges to become root. You have to treat the setuid scripts using mod_cgi instead (maybe place them in a directory on their own). Regards, - -- Domin

mod_perl marketing

2004-11-30 Thread Dominique Quatravaux
annot but take the CGI-and-performance route when the competition is Java. Still, the techs out there hear about mod_perl's true powers mostly through hearsay. What about setting up some tech-oriented wiki to tip the balance backwards for the rest of us? This would be a great place

[TEST FAILURE] Apache 2 SEGVs during test run

2005-01-21 Thread Dominique Quatravaux
atus: Apache::Request: - CGI: 3.05 LWP: 5.800 mod_perl : 1.999020 3. This is the core dump trace: (if you get a core dump): (gdb) bt #0 0x4030d4d1 in __read_nocancel () from /lib/tls/libpthread.so.0 #1 0x in ?? () This report was generated by ./t/REPORT o

Re: t/apache/content_length_header.t failures

2005-01-25 Thread Dominique Quatravaux
then (unsurprisingly) test 2 passes, but 5 and 17 still fail in the same way as above. Regards, - -- Dominique QUATRAVAUX Ingénieur senior 01 44 42 00 08 IDEALX -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) Com

Re: t/apache/content_length_header.t failures

2005-01-25 Thread Dominique Quatravaux
), then (unsurprisingly) test 2 passes, but 5 and 17 still fail in the same way as above. Regards, - -- Dominique QUATRAVAUX Ingénieur senior 01 44 42 00 08 IDEALX -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) Com

[BUG] A few tests fail on RC4/5.6.1/Apache 1.3.26

2005-03-03 Thread Dominique Quatravaux
~ Built under linux ~ Compiled at Dec 23 2004 16:34:22 ~ %ENV: ~PERL_LWP_USE_HTTP_10="1" ~ @INC: ~/usr/local/lib/perl/5.6.1 ~/usr/local/share/perl/5.6.1 ~/usr/lib/perl5 ~/usr/share/perl5 ~/usr/lib/perl/5.6.1 ~/usr/share/perl/5.6.1 ~/usr/local/lib/si

[BUG MP1/MP2] Apache should bail out in case of syntax errors in section

2005-03-03 Thread Dominique Quatravaux
bogon left in $PerlConfig will subsequently cause Apache to abort :-] Regards, = LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so ServerRoot /tmp ErrorLog /tmp/log PidFile/dev/null TypesConfig/etc/mime.types Listen 12345 use Apache2; })] BAD SYNT

Re: [BUG] A few tests fail on RC4/5.6.1/Apache 1.3.26

2005-03-04 Thread Dominique Quatravaux
, shutting down END in modperl_extra.pl, pid=12596 - -- Dominique QUATRAVAUX Ingénieur senior 01 44 42 00 08 IDEALX -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

Re: [BUG MP1/MP2] Apache should bail out in case of syntax errors in section

2005-03-04 Thread Dominique Quatravaux
(PeerHost=>"localhost", ~ PeerPort=>$self->select_first_port())); ~} } # End of package Apache::TempTestConfig plan tests => 2; my $config = new Apache::TempTestConfig("runtimeerror"); $config->server_stop(); $confi

Re: [BUG] A few tests fail on RC4/5.6.1/Debian Apache 2.0.52-3

2005-03-04 Thread Dominique Quatravaux
2.0.x but some sort of hybrid. | If Debian testing turns out to have this problem, I think that the test should at least be skipped on that distro, otherwise I probably won't be the last one to report this :-). Anyway, thanks a lot for your support. - -- Dominique QUATRAVAUX

Re: [BUG] A few tests fail on RC4/5.6.1/Debian Apache 2.0.52-3

2005-03-05 Thread Dominique Quatravaux
er wrote: | This is caused by a patch that the Debian version applies. I've | filed a bug report with them to remove it. Thanks Damon for dealing with the Debian side of things. | Contact me off-list if you need assistance with this before the | Debian package is fixed. Nice of you, but I'

How to link mod_perl with a debugging libperl?

2005-03-09 Thread Dominique Quatravaux
-rdynamic -L/usr/local/lib - -L/usr/lib/perl/5.6.1/CORE -ldebugperl -ldebugperl And so DynaLoader.a is gone, and of course the resulting mod_perl.so doesn't bootstrap. How can I link with -ldebugperl without manually fiddling with the Makefile (which I did, and it works gre

Re: How to link mod_perl with a debugging libperl?

2005-03-09 Thread Dominique Quatravaux
pick | libperld under MP_DEBUG=1. Check. - -- Dominique QUATRAVAUX Ingénieur senior 01 44 42 00 08 IDEALX -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enig

[BUG] Bad refcounting in Apache->push_handlers()

2005-03-09 Thread Dominique Quatravaux
lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl . *** Packages of interest status: Apache::Request: - CGI: 2.752 LWP: 5.800 mod_perl : 1.26, 1.999021 3. This is the core dump trace: (if you get a core dump): N/A This report was generated by ./t/REPORT on Wed Mar 9 11:57:18 2005 GMT. -8<-- End Bug Report --8<-- -- << Tout n'y est pas parfait, mais on y honore certainement les jardiniers >> Dominique Quatravaux <[EMAIL PROTECTED]>

Re: User auth with mod_perl proc

2005-03-10 Thread Dominique Quatravaux
e user's browser (e.g. pop up the password box), you have to read RFC2616 and RFC2617. Or just use a pre-existing module from CPAN, mostly forget about all this and be done in minutes :-) - -- Dominique QUATRAVAUX Ingénieur senior 01 44 42 00 08

Re: [BUG MP1/MP2] Apache should bail out in case of syntax errors in section

2005-03-10 Thread Dominique Quatravaux
able(aTHX_ p, dcfg); ~ FREETMPS;LEAVE; ~ } - -- Dominique QUATRAVAUX Ingénieur senior 01 44 42 00 08 IDEALX -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://e

Re: Apache::DB with Emacs editor support

2005-03-13 Thread Dominique Quatravaux
nts, type in the path of your wrapper script followed by a bogus command-line argument (e.g. "/home/dom/bin/apache-gud mod_perl"). The debugger should stop at the "$DB::single = 1" line above. Regards, - -- Dominique QUATRAVAUX Ingénieur senior

Re: Apache::DB with Emacs editor support

2005-03-13 Thread Dominique Quatravaux
ppose that Komodo would not work out of the box either. - -- Dominique QUATRAVAUX Ingénieur senior 01 44 42 00 08 IDEALX -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.

[BUG] line numbering off-by-one with Apache::DB and RegistryCooker

2005-03-14 Thread Dominique Quatravaux
mpiled_handler(). ~ # args: $self - registry blessed object ~ # rtrn: nothing ~ # efct: the CODE field gets adjusted @@ -569,7 +571,7 @@ ~ unless ${^TAINT}; ~""; ~}, - - 'w' => sub { "use warnings;\n" }, + 'w' => s

Re: [BUG] line numbering off-by-one with Apache::DB and RegistryCooker

2005-03-15 Thread Dominique Quatravaux
d object # rtrn: nothing # efct: the CODE field gets adjusted @@ -569,7 +571,7 @@ unless ${^TAINT}; ""; }, - 'w' => sub { "use warnings;\n" }, + 'w' => sub { "use warnings; " }, ); sub rewrite_shebang { --

Re: [BUG] line numbering off-by-one with Apache::DB and RegistryCooker

2005-03-16 Thread Dominique Quatravaux
-588,7 +589,8 @@ $prepend .= $switches{$_}->(); } } -${ $self->{CODE} } =~ s/^/$prepend/ if $prepend; + + return $prepend; } # -- Dominique QUATRAVAUX Ingénieur senior 01 44 42 00 08 IDEALX pgptbbWrYBLsh.pgp Description: PGP signature

[WISH] A Perlish way to detect mod_perl major version (= not $ENV{MOD_PERL})

2005-03-17 Thread Dominique Quatravaux
interim measure: sub modperl_major_version { ~use DynaLoader (); ~return 1 if DynaLoader::dl_find_symbol_anywhere("XS_Apache_define"); ~return 2 if DynaLoader::dl_find_symbol_anywhere("XS_ModPerl__Util_exit"); ~return undef; } - -- Dominique QUATRAVAUX

Re: [WISH] A Perlish way to detect mod_perl major version (= not $ENV{MOD_PERL})

2005-03-18 Thread Dominique Quatravaux
he->server directly built into mod_perl.so itself, then everything would be lovely. And while we are at it, we could call it "mod_perl::API_VERSION()" and have it return a constant number (this would be quite cheap resource-wise). Well, I guess I should get

Re: [BUG] line numbering off-by-one with Apache::DB and RegistryCooker

2005-03-18 Thread Dominique Quatravaux
es = ( @@ -572,7 +573,7 @@ 'w' => sub { "use warnings;\n" }, ); -sub rewrite_shebang { +sub shebang_to_perl { my $self = shift; my($line) = ${ $self->{CODE} } =~ /^(.*)$/m; my @cmdline = split /\s+/, $line; @@ -588,7 +589,8 @@ $prepend .= $switches{$_

Re: [BUG] line numbering off-by-one with Apache::DB and RegistryCooker

2005-03-18 Thread Dominique Quatravaux
### Index: docs/api/ModPerl/RegistryCooker.pod === --- docs/api/ModPerl/RegistryCooker.pod (revision 158046) +++ docs/api/ModPerl/RegistryCooker.pod (working copy) @@ -120,9 +120,9 @@

[PATCH] Re: [BUG] Bad refcounting in Apache->push_handlers()

2005-03-31 Thread Dominique Quatravaux
r->print($r->notes->get("test_waz_zere") ? "ok 1\n" : + "not ok 1\n"); +Apache2::OK; +} + +1; +__DATA__ + +PerlModule TestHooks::inlined_handlers_server_wide + + SetHandler modperl + PerlResponseHand

Re: advice needed: mod_perl reverse proxy

2005-04-21 Thread Dominique Quatravaux
're a GPL shop but we do not redistribute at large, a bit like what MySQL.com does), but anyway it's a custom-built thing targeted to WSSO, and you'd be probably better off starting from scratch or from HTTP::Proxy by Philippe Bruhat. Regards, - -- Dominique QUATRAVAUX

Robust way to check for version number [FEATURE REQUEST / HOW-TO]

2005-06-29 Thread Dominique Quatravaux
cluding early initialization, and so on. FEATURE REQUEST: I'd love to get rid of the "use B;" crockery above, e.g. return mod_perl::version_running() if exists &mod_perl::version_running(); Best regards and thanks for all the great work! - -- Dominique QUATRAVAUX

Re: Robust way to check for version number [FEATURE REQUEST / HOW-TO]

2005-07-04 Thread Dominique Quatravaux
ock as a temporary workaround to be used by other MP2-related package maintainers out there (esp. Apache::DB - Pretty please? :), not as a patch suggestion for mod_perl itself. > Sorry for the late reply on this, managed to get way behind on > E-mail over the last wee

Re: Am I running mod perl 2?

2005-08-01 Thread Dominique Quatravaux
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Geoffrey Young wrote: > if $ENV{MOD_PERL} is true you're running under mod_perl. Sorry to be rude about this, but no. This *needs* fixing. http://marc.theaimsgroup.com/?l=apache-modperl&m=112005579327997&w=2 - -- Domi

Re: Am I running mod perl 2?

2005-08-01 Thread Dominique Quatravaux
*not* $ENV{MOD_PERL}) would be a second best. - -- Dominique QUATRAVAUX Ingénieur senior 01 44 42 00 08 IDEALX -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail

Re: Am I running mod perl 2?

2005-08-01 Thread Dominique Quatravaux
n environment variable at program startup! Therefore the whole $ENV{MOD_PERL} idea very much looks like a bad NCSA-legacy thinko to me (mimicked from $ENV{GATEWAY_INTERFACE}, which *does* actually make sense). - -- Dominique QUATRAVAUX Ingénieur senior 01 44 42 00 08

Re: mod_perl2 and PHP

2005-08-08 Thread Dominique Quatravaux
that eval'able code only comes to PHP through a trusted channel, that is, $_SERVER["REDIRECT_FOO"] for well-known values of FOO *ONLY*. Don't eval stuff from the GET cmdline! - -- Dominique QUATRAVAUX Ingénieur senior 01 44 42 00 08

Re: mod_perl2 and PHP

2005-08-09 Thread Dominique Quatravaux
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Geoffrey Young wrote: > > Dominique Quatravaux wrote: > >> $r->subprocess_env() (undocumented but present in mod_perl 1.3 >> >> $r->internal_redirect() (again undocumented but present in >> mod_perl 1.3 > >