Tuesday, 27 March 2007
|
| A-SL 0.91 and mp 1.30 a Plan Philip M. Gollucci 04:21:34 |
| | Hi All,
The following just happened:
svn mv https://svn.apache.org/repos/asf/perl/Apache-SizeLimit/trunk \ https://svn.apache.org/repos/asf/perl/Apache-SizeLimit/trunk-unstable
svn cp https://svn.apache.org/repos/asf/perl/Apache-SizeLimit/tags/0_9 \ https://svn.apache.org/repos/asf/perl/Apache-SizeLimit/trunk
http://svn.apache.org/viewvc?view=rev&revision=428211 was applied to the 'new' trunk.
svn copy https://svn.apache.org/repos/asf/perl/Apache-SizeLimit/trunk/lib/Apache/SizeLimit.pm https://svn.apache.org/repos/asf/perl/modperl/1.x/trunk/lib/Apache/SizeLimit.pm
Gozer will Roll Apache-SizeLimit-0.91-RC3 and the final release along with mod_perl-1.30-rc2 and the final release simultaneously.
This will keep CPAN and mp1 versions of Apache-SizeLimit in sync and make the upgrade path much safer.
** Gozer will not forget to double check that ** $Apache::SizeLimit::VERSION ** matches in mp1 and Apache-SizeLimit.
HTH
-- ------------------------------------------------------------------------ Philip M. Gollucci (philip.gollucci@ticketmaster.com) 310.360.2689 Senior Software Engineer - TicketMaster - http://ticketmaster.com 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF
|
| | 1 answer | Add comment |
Monday, 26 March 2007
|
| I decided to give alms with the sum of $8m that I have with Mr Nelson Cole 20:52:16 |
| | $B?7$7$$%a!<%k%"%I%l%9$r$*CN$i$;$7$^$9?7$7$$%a!<%k%"%I%l%9!'(B nelsoncoleuk23@yahoo.co.jp
I decided to give alms with the sum of $8m that I have with ISLE OF MAN BANK U.K. because my condition now is too critical and if you can help reach me with your full contacts.
- Mr Nelson Cole
|
| | Add comment |
Sunday, 25 March 2007
|
| Re: svn commit: r521890 - in /perl/modperl/branches/1.x: Changes
MANIFEST Makefile.PL RELEASE lib/m Philip M. Gollucci 12:46:29 |
| | perl/modperl/branches/1.x/RELEASE + % make tag Since Apache-SizeLimit is an external, we need to add instructions to update svn:external properties in the tag director after being made to point at something other then 'trunk' or this tag will be invalid after the first commit to A-SL post release.
-- ------------------------------------------------------------------------ Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708 Consultant / http://p6m7g8.net/Resume/resume.shtml Senior Software Engineer - TicketMaster - http://ticketmaster.com 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF
Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.
|
| | Add comment |
Friday, 23 March 2007
|
| forthcoming mp1 release Geoffrey Young 23:12:56 |
| | hi all
ok, a release of mod_perl 1.0 is forthcoming. here are issues we need to address:
o the META.yml file in the MANIFEST is causing me grief, to the point where I can't 'make dist' without removing it first. I don't really grok this META.yml foo, so I may just alter the MANIFEST and move forward.
o the Apache-SizeLimit tests fail under various circumstances because
Apache-SizeLimit/../lib
isn't in @INC. to reproduce, just nuke all Apache/ directories in your /usr/lib/perl, re-install Apache-Test, and go.
I'm not sure what to do with this latter issue. really, we need to make sure we include the proper directory for a mp1-based install while not wrecking an independent A-SL CPAN install.
so, someone needs to address this issue well or we need to back out the A-SL integration for this release.
whatever the path, it probably needs to happen today
--Geoff
|
| | 1 answer | Add comment |
|
| Fwd: Apache::Reload crash patch Matt Sergeant 20:29:51 |
| | Now that A::R is managed by you guys
Begin forwarded message:
From: Liam Bryan <liam@richard-group.com> Date: March 15, 2007 8:36:39 AM EDT (CA) To: matt@sergeant.org Cc: Richard Joel <joel@richard-group.com> Subject: Apache::Reload crash patch Matt: At our company, we use the Apache::Reload module in most of our production installations, since we will often need to make adjustments without a restart of Apache. We manage multiple sites; and put site-specific customizations into separate .pm files. But, if one of these custom modules throws a compile error, then Apache::Reload will crash on line 158: Compilation failed in require at /Library/Perl/5.8.7/darwin-2level/ Unfortunately, this error is thrown in Apache, and thus crashes every site we're managing, not just the specific customized site. We found that by wrapping the particular error with an eval{} and then trapping $@, we could prevent this error from cascading across all of our managed sites. Here's what we've customized it to be: eval {require $key;}; warn("Apache::Reload: FAILED $package:\n\t$@") if $@; The eval{} does add some overhead, but a fairly negligible amount. If you'd like more detail, feel free to ask me. Thanks! Liam Bryan The Richard Group, Inc. liam@richard-group.com 703.584.5804
______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
|
| | 4 answer | Add comment |
|
| Security Fix [mp2] Fred Moyer 18:07:54 |
| | Philip gave a +1 here - http://marc.info/?l=apache-modperl&m=117462227916610&w=2
I think I need another +1, right?
Working on the mp1 patch.
Index: Changes =================================================================== --- Changes (revision 508723) +++ Changes (working copy) @@ -12,6 +12,9 @@
=item 2.0.4-dev
+fix unescaped variable interprolation in regular expression +[Randal L. Schwartz <merlyn@stonehenge.com>, Fred Moyer <fred@redhotpenguin.com>] + Make $r->the_request() writeable [Fred Moyer <fred@redhotpenguin.com>]
Index: ModPerl-Registry/lib/ModPerl/RegistryCooker.pm =================================================================== --- ModPerl-Registry/lib/ModPerl/RegistryCooker.pm (revision 508723) +++ ModPerl-Registry/lib/ModPerl/RegistryCooker.pm (working copy) @@ -337,7 +337,7 @@ my $self = shift;
my $path_info = $self->{REQ}->path_info; - my $script_name = $path_info && $self->{URI} =~ /$path_info$/ + my $script_name = $path_info && $self->{URI} =~ /\Q$path_info\E$/ ? substr($self->{URI}, 0, length($self->{URI}) - length($path_info)) : $self->{URI};
|
| | 4 answer | Add comment |
|
| RT - need 2.0.3 version added Philip M. Gollucci 12:16:59 |
| | Hi,
Geoff, we need a 2.0.3 'component' in RT for mod_perl2.
I don't seem to be able to add this. Can you ?
-- ------------------------------------------------------------------------ Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708 Consultant / http://p6m7g8.net/Resume/resume.shtml Senior Software Engineer - TicketMaster - http://ticketmaster.com 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF
Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.
|
| | Add comment |
|
| [RELEASE CANDIDATE] Apache-SizeLimit 0.91 RC2 Philip M. Gollucci 11:50:14 |
| | A release candidate for Apache-SizeLimit 0.91-RC2 is now available.
http://people.apache.org/~pgollucci/asl/Apache-SizeLimit-0.91-rc2.tar.gz
Please download, test, and report back.
I believe this will be the last Release Candidate for .91.
*** Pending a successful release, This package will be integrated into *** both mod_perl 1.x and mod_perl 2.x CORE distributions.
Changes since 0.91-RC1: ------------------------ - Minor fixes to the test suite to skip them on darwin
------------------------------------------------------------------------ Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708 Consultant / http://p6m7g8.net/Resume/resume.shtml Senior Software Engineer - TicketMaster - http://ticketmaster.com 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF
Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.
|
| | Add comment |
|
| [patch] fix unescaped variable interprolation in regular expression Fred Moyer 07:49:41 |
| | I have a +1 from Phillip [1](mp2 patch), another?
[1] http://marc.info/?l=apache-modperl&m=117462227916610&w=2
Index: Changes =================================================================== --- Changes (revision 521567) +++ Changes (working copy) @@ -10,6 +10,9 @@
=item 1.30_01-dev
+fix unescaped variable interprolation in regular expression +[Randal L. Schwartz <merlyn@stonehenge.com>, Fred Moyer <fred@redhotpenguin.com>] + Pull in the new Apache-SizeLimit from http://svn.apache.org/repos/asf/perl/Apache-SizeLimit/trunk and obsolete the previous lib/Apache/SizeLimit.pm. Index: lib/Apache/PerlRun.pm =================================================================== --- lib/Apache/PerlRun.pm (revision 521567) +++ lib/Apache/PerlRun.pm (working copy) @@ -168,7 +168,7 @@ $uri) if $Debug && $Debug & 4;
my $path_info = $r->path_info; - my $script_name = $path_info && $uri =~ /$path_info$/ ? + my $script_name = $path_info && $uri =~ /\Q$path_info\E$/ ? substr($uri, 0, length($uri)-length($path_info)) : $uri;
|
| | 3 answer | Add comment |
Wednesday, 21 March 2007
Saturday, 17 March 2007
|
| [Fwd: [rt.cpan.org #25506] Failed "make test" in 2.0.3 at t/apache/util.t
and t/api/serve Geoffrey Young 17:16:12 |
| |
-------- Original Message -------- Subject: [rt.cpan.org #25506] Failed "make test" in 2.0.3 at t/apache/util.t and t/api/server_const.t Date: Sat, 17 Mar 2007 02:31:16 -0400 From: via RT <bug-mod_perl@rt.cpan.org> Reply-To: bug-mod_perl@rt.cpan.org To: undisclosed-recipients:; References: <RT-Ticket-25506@rt.cpan.org> <rt-3.6.HEAD-5172-1174109749-1045.25506-5-0@rt.cpan.org>
Queue: mod_perl Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=25506 >
Hi. This is imacat. I have more information regarding to this failure.
I searched the Google and found a way to dig into this issue, so I did more tests.
The error in t/apache/util.t is due to the locale issue that the server return the time in the user's locale. Maybe you should unset the locale or set it to "C" before testing.
The error in t/api/server_const.t is due to the minor version difference in server version text, as described and suggested in:
http://marc.theaimsgroup.com/?l=apache-modperl&m=116923516222025&w=2
I attached the console log that reproduces this error. Please tell me if you need any more information. Thank you.
imacat@rinse src/mod_perl-2.0.3 % /usr/sbin/httpd -d /usr/local/src/mod_perl-2.0.3/t -f /usr/local/src/mod_perl-2.0.3/t/conf/httpd.conf -D APACHE2 -D PERL_USEITHREADS [Sat Mar 17 14:20:36 2007] [warn] Useless use of AllowOverride in line 1461. [Sat Mar 17 14:20:36 2007] [info] 6 Apache2:: modules loaded [Sat Mar 17 14:20:36 2007] [info] 0 APR:: modules loaded [Sat Mar 17 14:20:36 2007] [info] base server + 29 vhosts ready to run tests [Sat Mar 17 14:20:37 2007] [warn] The Alias directive in mod_perl at line 1 will probably never match because it overlaps an earlier Alias. [Sat Mar 17 14:20:37 2007] [warn] The Alias directive in mod_perl at line 1 will probably never match because it overlaps an earlier Alias. [Sat Mar 17 14:20:37 2007] [warn] The Alias directive in mod_perl at line 1 will probably never match because it overlaps an earlier Alias. [Sat Mar 17 14:20:37 2007] [warn] The Alias directive in mod_perl at line 1 will probably never match because it overlaps an earlier Alias. [Sat Mar 17 14:20:37 2007] [warn] The Alias directive in mod_perl at line 1 will probably never match because it overlaps an earlier Alias. imacat@rinse src/mod_perl-2.0.3 % lynx -dump http://127.0.0.1:8529/TestApache__util 1..8 # Running under perl version 5.008008 for linux # Current time local: Sat Mar 17 14:20:37 2007 # Current time GMT: Sat Mar 17 06:20:37 2007 # Using Test.pm version 1.25 # Using Apache/Test.pm version 1.29 # testing : Apache2::Util::ht_time($pool) # expected: (?-xism:^\w+, \d\d \w+ \d\d\d\d \d\d:\d\d:\d\d) # received: ??, 17 3?? 2007 06:21:11 GMT not ok 1 # testing : Apache2::Util::ht_time($pool, $time) # expected: (?-xism:^\w+, \d\d \w+ \d\d\d\d \d\d:\d\d:\d\d) # received: ??, 17 3?? 2007 06:21:11 GMT not ok 2 # testing : Apache2::Util::ht_time($pool, $time, $fmt) # expected: (?-xism:^\w+, \d\d \w+ \d\d\d\d \d\d:\d\d:\d\d) # received: ??, 17 3?? 2007 06:21:11 GMT not ok 3 # testing : Apache2::Util::ht_time($pool, $time, $fmt, $gmt) # expected: (?-xism:^\w+, \d\d \w+ \d\d\d\d \d\d:\d\d:\d\d) # received: ??, 17 3?? 2007 14:21:11 CST not ok 4 # testing : Apache2::Util::escape_path / partial=1 / default # expected: a%20'long'%20file%3f.html # received: a%20'long'%20file%3f.html ok 5 # testing : Apache2::Util::escape_path / partial=1 / explicit # expected: a%20'long'%20file%3f.html # received: a%20'long'%20file%3f.html ok 6 # testing : Apache2::Util::escape_path / partial=0 # expected: a%20'long'%20file%3f.html # received: a%20'long'%20file%3f.html ok 7 # testing : Apache2::Util::escape_path / partial=0 / ./ prefix # expected: ./a%20'long'%20file%3f.html: # received: ./a%20'long'%20file%3f.html: ok 8
imacat@rinse src/mod_perl-2.0.3 % lynx -dump http://127.0.0.1:8529/TestAPI__server_const 1..3 # Running under perl version 5.008008 for linux # Current time local: Sat Mar 17 14:20:37 2007 # Current time GMT: Sat Mar 17 06:20:37 2007 # Using Test.pm version 1.25 # Using Apache/Test.pm version 1.29 # testing : Apache2::ServerUtil::server_root() # expected: /usr/local/src/mod_perl-2.0.3/t # received: /usr/local/src/mod_perl-2.0.3/t ok 1 # testing : Apache2::ServerUtil::get_server_built() # expected: Mar 15 2007 14:21:02 # received: Mar 15 2007 14:21:02 ok 2 # testing : Apache2::ServerUtil::get_server_version() # expected: Apache/2.2.4 (Unix) # received: Apache/2.2.4 not ok 3
imacat@rinse src/mod_perl-2.0.3 % kill $(</usr/local/src/mod_perl-2.0.3/t/logs/httpd.pid) imacat@rinse src/mod_perl-2.0.3 %
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org |
| | Add comment |
Friday, 16 March 2007
|
| Google Summer of Code project idea request Supun Kamburugamuva 09:14:18 |
| | Hi all,
I'm a computer science and engineering undergraduate student at the University of Moratuwa, Sri Lanka. I'm interested in doing a project on Apache/Perl for the Google Summer of Code 2007 competition.
Currently I'm working as an intern at WSO2 (www.wso2.org) for my industrial training. I'm actively involved in Apache Web Services Axis2C project for more than five months. I received the Apache Axis2C Committership for implementing IIS Support for Axis2C. I have gained reasonable amount of knowledge and experience in open source projects during the past few months and I'm hoping to continue my contribution to open source projects.
I'll be really pleased if someone can suggest a project idea for Google Summer of Code 2007.
Thanks in advance, Supun Kamburugamuva.
|
| | Add comment |
Thursday, 15 March 2007
|
| mp2 segfault Torsten Foertsch 15:34:11 |
| | Hi,
I have found a reproducible way to segfault a mod_perled httpd.
My environment:
httpd 2.2.3 mpm worker mod_perl 2.0.3 perl 5.8.8 (Suse linux 10.2)
and my httpd.conf ------------------------------------------------------------------------ LoadModule log_config_module "/opt/apache22-worker/libexec/mod_log_config.so" LoadModule mime_module "/opt/apache22-worker/libexec/mod_mime.so" LoadModule dir_module "/opt/apache22-worker/libexec/mod_dir.so" LoadModule perl_module "/opt/apache22-worker/libexec/mod_perl.so"
PerlPassEnv APACHE_TEST_TRACE_LEVEL PerlPassEnv HARNESS_PERL_SWITCHES
User "r2" Group "users" ServerName localhost:8529 Listen 0.0.0.0:8529
ServerRoot "/home/r2/work/arvato/Apache2-Translation/t" DocumentRoot "/home/r2/work/arvato/Apache2-Translation/t/htdocs"
PidFile /home/r2/work/arvato/Apache2-Translation/t/logs/httpd.pid ErrorLog /home/r2/work/arvato/Apache2-Translation/t/logs/error_log LogLevel debug
TransferLog /home/r2/work/arvato/Apache2-Translation/t/logs/access_log
ServerAdmin you@example.com
#needed for http/1.1 testing KeepAlive On
HostnameLookups Off
<Directory /> Options FollowSymLinks </Directory>
LockFile /home/r2/work/arvato/Apache2-Translation/t/logs/accept.lock StartServers 1 MinSpareThreads 1 MaxSpareThreads 1 ThreadsPerChild 1 MaxClients 2 MaxRequestsPerChild 0
<Perl> package TestConfig;
use strict; use Apache2::RequestRec; use Apache2::RequestIO; use Apache2::RequestUtil; use Apache2::CmdParms; use Apache2::Directive; use Apache2::Module; use Apache2::Const -compile=>qw{OK};
Apache2::Module::add( __PACKAGE__, [{name=>'TestHandlerConfig'}] );
sub TestHandlerConfig {}
sub handler { my $r=shift;
$r->content_type('text/plain'); $r->print( "OK\n" );
return Apache2::Const::OK; } </Perl>
PerlInterpScope handler #PerlFixupHandler "sub {$_[0]->add_config([q{Options Indexes}]); return Apache2::Const::DECLINED;}" PerlFixupHandler "sub {$_[0]->add_config([q{TestHandlerConfig 20}]); return Apache2::Const::DECLINED;}" <Location /xxx> SetHandler modperl PerlResponseHandler TestConfig #TestHandlerConfig 20 </Location> ------------------------------------------------------------------------
Now, when /xxx is accessed httpd dumps core each other time. A stack trace says: #0 0xb7f7f410 in ?? () #1 0xbfd64878 in ?? () #2 0x00000001 in ?? () #3 0xbfd64873 in ?? () #4 0xb7d9a02b in __read_nocancel () from /lib/libpthread.so.0 #5 0x08092d59 in ap_mpm_pod_check (pod=0x81fbd20) at pod.c:54 #6 0x08090748 in child_main (child_num_arg=0) at worker.c:1258 #7 0x080908f4 in make_child (s=0x80b7f48, slot=0) at worker.c:1341 #8 0x08090a29 in startup_children (number_to_start=1) at worker.c:1375 #9 0x08091292 in ap_mpm_run (_pconf=0x80b60a8, plog=0x80e4160, s=0x80b7f48) at worker.c:1725 #10 0x08062b7e in main (argc=5, argv=0xbfd64b14) at main.c:717
Line 54 of pod.c looks quite innocent:
rc = read(fd, &c, 1);
So, what is important for the bug?
1) PerlInterpScope handler: without it no segfaults 2) Access /xxx not /index.html. /index.html works normal, no segfaults 3) The fixup handler must set TestHandlerConfig, not some built-in statements like Options 4) It can also be a maptostorage handler
Any hint where to look?
Torsten
|
| | 3 answer | Add comment |
|
| need help: httpd: with SSL - howto ?! Guest 06:52:09 |
| | Hi,
When I start httpd using: apachectl startssl, I get errors:
[Sun Sep 15 01:11:39 2002] [error] mod_ssl: Init: (localhost) Unable to configure RSA server private key (OpenSSL library error follows) [Sun Sep 15 01:11:39 2002] [error] OpenSSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
However, I checked keys look okay, I was able to decipher via command:
openssl x509 -noout -text -in server.crt
Any suggestions ?
Thank you,
__________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | 4 answer | Add comment |
Wednesday, 14 March 2007
|
| A Reminder : A Study on Free/Open Sourec Software Anu Gupta DCSA 08:11:59 |
| | Dear Perl Contributors,
I seek help from designers, developers, testers,defect fixers,project managers or playing any other key role in Free/Open Source software development or maintenence in carrying out a study on practices and problems of defect management in various Free/Open Source Software projects. The insights gained from the study can further help us to extract publicly accessible defect data and determine impact of defect management practices on software quality. Please spend a few minutes of your precious time to fill up the Questionnaire. The most of the questions follow multiple choice formats and are quite easy to answer.
To have the Online Questionnaire, please visit:
http://anu.puchd.ac.in/phpESP/public/survey.php?name=FOSS_Defect_Survey
(You can also copy and paste this link into your browser, and hit the 'Return' key.)
I hope you will find all the questions interesting and thought-provoking. Your answers will be kept anonymous.The data thus collected will only be used for research purpose.It would be nice if you may further refer this mail to others actively engaged with Free/Open Source Software development. If you have any query or suggestions then feel free to contact.
Thank You
With regards,
Anu Gupta Senior Lecturer Department of Computer Science and Applications, Panjab University, Chandigarh. INDIA
In case of any problem in accessing/using the above mentioned link please contact: E-mail: anugupta@pu.ac.in anugupta98@gmail.com
|
| | Add comment |
Thursday, 8 March 2007
|
| A Survey on Defect Management Practices in Free/Open Source Software Anu Gupta DCSA 11:45:47 |
| | Dear Perl Contributors,
I seek help from designers, developers, testers,defect fixers,project managers or playing any other key role in Free/Open Source software development or maintenence in carrying out a study on practices and problems of defect management in various Free/Open Source Software projects. The insights gained from the study can further help us to extract publicly accessible defect data and determine impact of defect management practices on software quality. Please spend a few minutes of your precious time to fill up the Questionnaire. The most of the questions follow multiple choice formats and are quite easy to answer.
To have the Online Questionnaire, please visit:
http://anu.puchd.ac.in/phpESP/public/survey.php?name=FOSS_Defect_Survey
(You can also copy and paste this link into your browser, and hit the 'Return' key.)
I hope you will find all the questions interesting and thought-provoking. Your answers will be kept anonymous.The data thus collected will only be used for research purpose.It would be nice if you may further refer this mail to others actively engaged with Free/Open Source Software development. If you have any query or suggestions then feel free to contact.
Thank You
With regards,
Anu Gupta Senior Lecturer Department of Computer Science and Applications, Panjab University, Chandigarh. INDIA
In case of any problem in accessing/using the above mentioned link please contact: E-mail: anugupta@pu.ac.in anugupta98@gmail.com
|
| | Add comment |
Wednesday, 7 March 2007
|
| Name Resolution error John 10:47:29 |
| | Hi all
I have installed apache 2.2.3
Apache starts automatically, so there is an error
[Mon Jan 08 20:11:27 2007] [error] (EAI 3)Temporary failure in name resolution: Could not resolve host name DomainName1 -- ignoring! [Mon Jan 08 20:11:27 2007] [error] (EAI 3)Temporary failure in name resolution: Could not resolve host name DomainName2-- ignoring!
DomainName1 and DomainName2 are the names for my virtual hosts.
After that error I have to reload apache and then everything works fine.
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | 15 answers | Add comment |
|
| [mp1] Segfaults in ap_table_get (Apache::Registry corruption?) Christopher Shumway 00:45:45 |
| | Hi folks,
Sorry to bug the dev modperl list, but I could really use some expert advice on this problem.
About once every 15-45 minutes or so a httpd process will segfault when serving a modperl page. I've built apache httpd, modperl and perl with debuging symbols, and have gotten a few core images.
Here are the relvent software versions: FreeBSD 6.1-RELEASE-p14 running an SMP kernel Perl 5.8.8 built for i386-freebsd-64int apache+mod_ssl-1.3.37+2.8.28 mod_perl-1.29
Here's the gdb backtrace:
#0 0x08050c55 in ap_table_get (t=0x31412d38, key=0x9d67a88 "Expires") atalloc.c:1444 #1 0x2850a6df in XS_Apache_cgi_header_out (cv=0x8899c34) at Apache.c:2662 #2 0x285c5f88 in Perl_pp_entersub () at pp_hot.c:2913 #3 0x285a5ecb in Perl_runops_debug () at dump.c:1459 #4 0x2854bf19 in S_call_body (myop=0xbfbfead0, is_eval=0 '\0') atperl.c:2731 #5 0x2854bacb in Perl_call_sv (sv=0x889a258, flags=4) at perl.c:2646 #6 0x284f6497 in perl_call_handler (sv=0x889a258, r=0x88e0038, args=0x0) atmod_perl.c:1668 #7 0x284f5b24 in perl_run_stacked_handlers (hook=0x2851fd2f "PerlHandler",r=0x88e0038, handlers=0x889a090) at mod_perl.c:1381 #8 0x284f3bb1 in perl_handler (r=0x88e0038) at mod_perl.c:904 #9 0x08054d96 in ap_invoke_handler (r=0x88e0038) at http_config.c:476 #10 0x0806a3ed in process_request_internal (r=0x88e0038) athttp_request.c:1299 #11 0x0806a44c in ap_process_request (r=0x88e0038) at http_request.c:1315 #12 0x08061177 in child_main (child_num_arg=8) at http_main.c:4898 #13 0x0806146c in make_child (s=0x8099038, slot=8, now=1172591147) athttp_main.c:5077 #14 0x080617a8 in perform_idle_server_maintenance () at http_main.c:5262 #15 0x08061d6d in standalone_main (argc=2, argv=0xbfbfeeec) athttp_main.c:5525 #16 0x08062391 in main (argc=2, argv=0xbfbfeeec) at http_main.c:5793
What looks like is happening is the table being passed to ap_table_get() is bogus.
(gdb) frame 0 #0 0x08050c55 in ap_table_get (t=0x31412d38, key=0x9d67a88 "Expires") at alloc.c:1444 1444 table_entry *elts = (table_entry *) t->a.elts; (gdb) list 1439 t->a.nelts = 0; 1440 } 1441 1442 API_EXPORT(const char *) ap_table_get(const table *t, constchar *key) 1443 { 1444 table_entry *elts = (table_entry *) t->a.elts; 1445 int i; 1446 1447 if (key == NULL) 1448 return NULL; (gdb) print *t Cannot access memory at address 0x31412d38
I'm not sure why, but the data structure Apache r doesn't appear to be getting populated correctly:
#1 0x2850a6df in XS_Apache_cgi_header_out (cv=0x8899c34) at Apache.c:2662 2662 if((val = (char *)table_get(r->headers_out, key))) (gdb) list 2657 char *val; 2658 2659 SV * RETVAL; 2660 2661 r = sv2request_rec(ST(0), "Apache", cv); 2662 if((val = (char *)table_get(r->headers_out, key))) 2663 RETVAL = newSVpv(val, 0); 2664 else 2665 RETVAL = newSV(0); 2666 (gdb) print *r->headers_out $5 = {a = {pool = 0x31412d38, elt_size = 0, nelts = 0, nalloc = 0, elts = 0x0}} (gdb)
I'd love to get to the bottom of this one, but I could use some insight.
|
| | 5 answers | Add comment |
Tuesday, 6 March 2007
|
| Redirect URL in AuthCookie Amish Desai 23:08:11 |
| |
Hi,
I am facing issue in Redirecting URL after the user authenticates himself using AuthCookie. I am new to Apache Per modules. any code with the implementation would be appreciated.
My user wants to access xyz.html page on web server, now since that folder is proctected he is shown a login.pl form for Authentication. the form has 3 fields username/password/groupid. Using AuthCookie I am calling my own sub subroutine for login in Sample::AuthCookie.pm which as follows.
sub login($$$){
my $self = shift; my $r = shift; my $q=new CGI;
my %args = $r->method eq 'POST' ? $r->content : $r->args; my $name='destination';
my $redirect_url= $args{$name};
#printf (STDOUT $redirect_url); print $q->redirect($redirect_url);
#return OK; }
It takes me back to login.pl page when I hit submit and does not redirect me to xyz.html page. Login.pl page has hidden form element as destination. After reading AuthCookie page it says we need to implement authen_cred and authen_ses_key in your subclass. So question is when does this 2 sub routines get called and how? What should be the code in tis subroutines?
My http.conf is <Location /cgi-bin/> AuthType Sample::AuthCookieHandler AuthName WhatEver PerlAuthenHandler Sample::AuthCookieHandler->authenticate PerlAuthzHandler Sample::AuthCookieHandler->authorize Require valid-user PerlSendHeader On #Options +FollowSymLinks </Location> # Login location. <Files AUTHORIZE> AuthType Sample::AuthCookieHandler AuthName WhatEver SetHandler perl-script PerlHandler Sample::AuthCookieHandler->login </Files>
thanks, Amish -- View this message in context: http://www.nabble.com/Redirect-URL-in-AuthCookie-tf3357975.html#a9340031 Sent from the mod_perl - Dev mailing list archive at Nabble.com.
|
| | Add comment |
Friday, 2 March 2007
|
| Password Marco Supino 19:58:07 |
| | Hi,
Running Apache 1.3.26 on Solaris.
I am tring to setup a user authentication from within a HTML file, i used a javascript so i can forward to the right directory the username and password entered in a "form" (for example
assword@,www.XX.com,/secured] -->http://user assword@www.XX.com/secured), this works great if the username and password are correct,
Is there any way of not asking for the password the second time if the first fails ? (if it fails, apache pops up the username/password window, which i dont want),
I think of using mod_rewrite to change error 401 to 403, but didnt have much luck with it, any better idea ? or an example would be great.
Thanks.
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org |
| | 30 answers | Add comment |
Tuesday, 20 February 2007
|
| Trying to get a backtrace while debugging stacked handlers bug Fred Moyer 16:46:43 |
| | Hello,
I've been hacking on this issue here - http://marc.theaimsgroup.com/?l=apache-modperl-dev&m=115827296213433&w=2
and am trying cause a core dump so I can look through the backtrace with gdb and figure out what's going on. I'm a bit new to this level of debugging so please bear with my naivete (have had my copy of practical mod_perl handy so that's been my guide but I still need a little help)
To do this, I pushed a handler which should core dump, as so:
# all 3 run PerlPostReadRequestHandler TestHooks::stacked_handlers2::ok TestHooks::stacked_handlers2::ok PerlPostReadRequestHandler TestHooks::stacked_handlers2::push_handlers PerlPostReadRequestHandler TestHooks::stacked_handlers2::dump
sub dump { my $r = shift; $r->log->error("Dumping core"); Debug::DumpCore::segv(); }
but I'm not getting a core file. I've built mod_perl with MP_TRACE=1 and MP_DEBUG=1, and set MP_PERL_TRACE=all, but I haven't gotten the granularity I desire when running the test with ./t/TEST -VERBOSE t/hooks/stacked_handlers2.t. I get the call stack down to the handler level, but I need to get a more fine grained view of what functions are being called.
Any advice welcome I know I'll figure it out eventually, but I'm guessing that this stuff is old hat to everyone on this list.
Thanks,
Fred
|
| | 1 answer | Add comment |
Monday, 19 February 2007
|
| perl Makefile.PL failed with Can't locate DBI.pm in @INC error Aynsy 19:45:25 |
| | Hi,
I am new to perl. I am trying to install DBI module for postgre in my machine.
When I try to install the module, i got the following error,
perl Makefile.PL
Can't locate DBI.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/sun4-solaris /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/sun4-solaris /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at Makefile.PL line 7. BEGIN failed--compilation aborted at Makefile.PL line 7.
Please advice Thanks -- View this message in context: http://www.nabble.com/perl-Makefile.PL-failed-with-Can%27t-locate-DBI.pm-in-%40INC-error-tf3250401.html#a9035704 Sent from the mod_perl - Dev mailing list archive at Nabble.com.
|
| | 1 answer | Add comment |
Wednesday, 14 February 2007
|
| ap_global_ctx error when starting apache 1.3.22 Peter Louis Escudero 23:54:03 |
| | I have a SunFire V210 with a Sun Crypto Accelerator 500 card. The OS is Solaris 9 (4/04), & I had to install Apache v1.3.22 just so I could run "sslconfig" & configure Apache to work with the crypto card. Now I have the certs installed, but when I go to start Apache I get the following error: bash-2.05# ./apachectl start Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/mod_ssl.so.1.3.22 into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /usr/local/apache/libexec/mod_ssl.so.1.3.22: symbol ap_global_ctx: referenced symbol not found ./apachectl start: httpd could not be started
I googled the error & got 2 hits, the 2nd of which had a solution: configure Apache with --enable-rule=EAPI. Problem is, that solution was for v1.3.12. I tried to recompile my version with that flag, to no avail. There's no such thing as an EAPI rule for v1.3.22! Hence, this call for help. Any info you can provide will be greatly appreciated.
Peter Escudero
|
| | 3 answer | Add comment |
Tuesday, 13 February 2007
|
| Re: svn commit: r506365 - in /perl/modperl/trunk: Changes t/response/TestAPI/request_rec.pm
xs/maps Geoffrey Young 00:41:35 |
| | phred@apache.org wrote:> Author: phred> Date: Mon Feb 12 00:18:55 2007> New Revision: 506365> > URL: http://svn.apache.org/viewvc?view=rev&rev=506365> Log:> Make $r->the_request() writeable.> Change suggested by Alden DoRosario <adorosario@chitika.com>> Change reviewed by Geoffrey Young <geoff@modperlcookbook.org>
fred++
--Geoff
|
| | 1 answer | Add comment |
Friday, 9 February 2007
|
| compile error in mod_ntlm2-0.1 - missing apxs Gayal 13:44:22 |
| | Greetings,
I want to compile mod_ntlm2-0.1 It has a Makefile. Makefile has APXS=apxs tool enable. When run make install, i get the following error.
apxs -c -o mod_ntlm.so -Wc,-shared mod_ntlm.c make: apxs: Command not found make: *** [mod_ntlm.so] Error 127
There is NO apxs file in my Linux box while installing Apache Server.
-- Gayal Rupasinghe SU-APIIT "The willingness to make a commitment even when results are unknown."
|
| | 5 answers | Add comment |
|