Saturday, 16 January 2010
|
| apache 2.0.47 mod_proxy : proxy: error reading status line from remote
server Carl Brewer 05:33:17 |
| | Hello
I'm in the process of moving a large web hosting site from apache 1.3 to 2.0, and we use a lot of reverse proxying.
Our backend server's running mod_perl and other goodies, and is 1.3.x, OS is RedHat linux 7.3 on i386. The proxy server and the backend server are running on the same box.
I'm seeing some interesting behaviour with mod_proxy on 2.0.47 connecting to the backend server. I don't see this with our 1.3.x mod_proxy server.
Occasionally attempts to connect to the backend server give me an error I can't work out.
I see this in the error logs :
[Wed Oct 15 12:32:40 2003] [error] [client xx.xx.xx.xx] proxy: error reading status line from remote server www.foo.bar [Wed Oct 15 12:32:40 2003] [error] [client xx.xx.xx.xx] proxy: Error reading from remote server returned by /content/content.pl
And the browser displays :
Proxy Error
The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /content/content.pl.
Reason: Error reading from remote server
Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.6b Server at www.foo.bar Port 80
(relax about the openssl version, it's patched )
A reload then sees the correct page loaded - it's happening maybe every 20 or 30 connections?
I did a google search for the error string and found some references to some bugs in 2.0.32, and a config issue for enhydra, but they both seemed unrelated to this issue. Could this be a problem with the backend server misbehaving moreso than the proxy? One reason we're moving to 2.0 is for some of the better granularity with control of mod_proxy (timeouts and such) as we sometimes see erratic behaviour (load induced, we suspect) and a number of proxy errors connecting to the backend server.
my apache2 is compiled with :
$ ./configure --enable-deflate --enable-proxy --enable-proxy-connect --enable-proxy-http --enable-ssl --enable-rewrite --enable-cache --enable-mem-cache
and is configured as follows for the virtual host in question :
RewriteEngine on RewriteLogLevel 0 # RewriteLogLevel 1 # RewriteLog /tmp/a2_rewrite.log RewriteRule ^/errorreporting - [last]
# Skip info still on old (non-mod_perl) Admin system RewriteCond %{REQUEST_URI} !^/admin/admin2 RewriteRule ^/(.*\.pl)$ http://www.foo.bar:10080/$1 [P,L] # RewriteRule ^/index.html(.*)$ http://www.foo.bar:10080/index.pl$1 [P,L] RewriteRule ^/S.{16}/(.*)$ /$1 #NoCache * CacheDisable / ProxyPassReverse / http://www.foo.bar:10080/
Has anyone seen this before and knows what I'm doing wrong? Is there any more info I need to provide in this question?
thanks
Carl
-- ======================= Vivitec Pty. Ltd. Suite 6, 51-55 City Rd. Southbank, 3006. Ph. +61 3 8626 5626 Fax +61 3 9682 1000 =======================
--------------------------------------------------------------------- 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
|
| | 3 answer | Add comment |
Friday, 15 January 2010
|
| DBM convertion fron Netscape Enterprise server to Apache.... Patrick Harlin 13:21:45 |
| | Hi,
I got an old DBM file on a Netscape Enterprice Server, now I would like to move all the users and passwords stored in the DBM file. I would like to move the data into an apache 1.3.27 server. But there seems to be some compability problems between the DBM format on these platforms (se section from apache documentation below):
Important compatibility note: The implementation of "dbmopen" in the apache modules reads the string length of the hashed values from the DBM data structures, rather than relying upon the string being NULL-appended. Some applications, such as the Netscape web server, rely upon the string being NULL-appended, so if you are having trouble using DBM files interchangeably between applications this may be a part of the problem.
Has anyone a solution on how to easily move the user info between the platforms ? Or is there any possibility to get the data from the Netscape DBM file into a .htpasswd file ?
/Cheers,
Patrick Harlin, SysAdmin LuleГҐ University of Technology
--------------------------------------------------------------------- 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
|
| | 1 answer | Add comment |
|
| Diff Passwd File | Loggin for users Steve 13:21:08 |
| | Hey, Just wondering if its possible to make httpd use a different /etc/passwd file to get its users from? or is there like a mysql patch or anything?
Also
Just say if someone opens there web document eg
http://xxx.com/~user1/index.html
Is there is way to get http://xxx.com/~user1/* to log to a different log file?
/Steve
--------------------------------------------------------------------- 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
|
| | 1 answer | Add comment |
Tuesday, 12 January 2010
|
Topic awaiting moderation clothing 14:00:32 |
Saturday, 9 January 2010
|
Topic awaiting moderation 351100 03:14:08 |
Saturday, 14 November 2009
|
| Mod_Rewrite install Jeff Lee 22:27:28 |
| | Ive spent the morning searching the web and apache's documentation for instructions on how to install mod_rewrite and I cannot find any helpful instructions. Could someone please point me in the right direction or help me to install mod_rewrite so I can lessen the amount of spam I get every minute.
Thanks, Jeff Lee
--------------------------------------------------------------------- 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 |
Friday, 18 September 2009
|
| Could I have some help on installing Apache SSL Charlene Lee 19:22:21 |
| | Dear Apache Groups, Is it possible to get some help on how to install Apache with SSL version 2.2.3. It is said that with this version of Apache it already comes with SSL. What are the steps to follow to install, compile, configure and enable SSL with this version? This is the error I get when I tried to install and configure Apache with SSL version 2.2.3: It saids that it cannot find the Toolkit . configure: error: ... No recognized SSL/TLS toolkit detected. The steps I took to configure was I added the --enable-ssl command to the configuration step: ./configure --prefix=/home/httpd --enable-ssl --enable-module=so Yours Sincerely, Charlene L. Send instant messages to your online friends http://au.messenger.yahoo.com |
| | 9 answers | Add comment |
Thursday, 10 September 2009
|
Topic awaiting moderation wholesale2wd 17:18:35 |
Wednesday, 9 September 2009
|
| Permission to connect to AJP socket Ryszard Lach 10:14:20 |
| | Hi.
I have problem with configuration of mod_proxy_ajp, or, rather, I'm pretty sure my config is good but there is a problem with kernel persmissions or even mod_proxy_jk?
Here are the details:
OS: Fedora Core 5 Apache: httpd-2.2.0-5.1.2 (Fedora 5 package) Config:
<Proxy *># I don't know if it does mather, leave it just in case Order Deny,Allow Allow from all </Proxy> ProxyRequests Off ProxyPreserveHost On ProxyPass /manager/ ajp://localhost:8109/manager/
Problem: httpd cannot connect to 8109 port. Tomcat is listening on that port (checked with 'telnet localhost 8109' running as 'apache' user).
error_log:
[debug] mod_proxy_ajp.c(44): proxy: AJP: canonicalising URL //localhost:8109/manager/html [debug] proxy_util.c(1373): [client 192.168.1.14] proxy: ajp: found worker ajp://localhost:8109/manager/ for ajp:/ /localhost:8109/manager/html [debug] mod_proxy.c(736): Running scheme ajp handler (attempt 0) [debug] mod_proxy_ajp.c(474): proxy: AJP: serving URL ajp://localhost:8109/manager/html [debug] proxy_util.c(1754): proxy: AJP: has acquired connection for (localhost) [debug] proxy_util.c(1811): proxy: connecting ajp://localhost:8109/manager/html to localhost:8109 [debug] proxy_util.c(1911): proxy: connected /manager/html to localhost:8109 [debug] proxy_util.c(2005): proxy: AJP: fam 2 socket created to connect to localhost [error] (13)Permission denied: proxy: AJP: attempt to connect to 127.0.0.1:8109 (localhost) failed [error] ap_proxy_connect_backend disabling worker for (localhost) [error] proxy: AJP: failed to make connection to backend: localhost [debug] proxy_util.c(1769): proxy: AJP: has released connection for (localhost)
And strace of httpd's process:
32429 socket(PF_NETLINK, SOCK_RAW, 0) = 17 32429 bind(17, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0 32429 getsockname(17, {sa_family=AF_NETLINK, pid=32429, groups=00000000}, [12]) = 0 32429 time(NULL) = 1155920517 32429 sendto(17, "\24\0\0\0\26\0\1\3\205\362\345D\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20 32429 recvmsg(17, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"<\0\0\0\24\0\2\0\205\362\345D\255~\0\0\2\10\200 \376\1\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 128 32429 recvmsg(17, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0\205\362\345D\255~\0\0\n\200\20 0\376\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 128 32429 recvmsg(17, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\205\362\345D\255~\0\0\0\0\0\0 \1\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20 32429 close(17) = 0 32429 gettimeofday({1155920517, 693251}, NULL) = 0 32429 write(10, "[Fri Aug 18 19:01:57 2006] [debu"..., 147) = 147 32429 socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 17 32429 fcntl64(17, F_GETFL) = 0x2 (flags O_RDWR) 32429 fcntl64(17, F_SETFL, O_RDWR|O_NONBLOCK) = 0 32429 gettimeofday({1155920517, 693522}, NULL) = 0 32429 write(10, "[Fri Aug 18 19:01:57 2006] [debu"..., 112) = 112 32429 connect(17, {sa_family=AF_INET, sin_port=htons(8109), sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EACCES (Permission denied) 32429 close(17) = 0
As far as I can see it is not a problem of apache configuration - if it would be so, httpd process would not try to connect to 127.0.0.1:8109. I suppose it is a problem with SOCK_RAW option during creation of socket which could be prohibited for non-root user by the kernel, but since apache is by default configured to NOT to run as root - it would mean there is a serious bug in mod_proxy (honestly - I doubt it).
What's going on, then?
T.I.A.
Richard.
-- "First they ignore you. Then they laugh at you. Then they fight you. Then you win." - Mohandas Gandhi.
--------------------------------------------------------------------- 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
|
| | 1 answer | Add comment |
Friday, 4 September 2009
|
| Failed downloads: "Could not get next bucket brigade" Todd Hivnor 20:30:13 |
| | I've got one user who always seems to have problems downloading files from my Apache server. She reports that the download process hangs, often with 1% of the file remaining to download.
The server logs have this error:
(104)Connection reset by peer: Could not get next bucket brigade [500, #0]
I'm running Apache 2.0.51 on Fedora Core 2.
Does anyone know how to address this bug ?
- Todd
--------------------------------- Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster. |
| | 6 answers | Add comment |
Friday, 3 July 2009
|
| GET /scripts/.%252e/.%252e/winnt/system32/cmd.exe?/c+dir+c Sergio Morilla 18:04:02 |
| | Hi,
IВґve used Apache::CodeRed to get rid of nimda attaks. Now I have a good number of entries like this on my error log and some interesting variations on this.
I was wondering if there is a way to use LocationMatch or FilesMatch or may be some other directive to direct all urls containing cmd.exe (non existent on linux) to a cgi handler.
I'm not very good at REs so may be I'm just failing to set the directives properly.
Any hints???
Thanks
Sergio D. Morilla Sistemas
Tipoiti SATIC San MartГn 647 Piso 2 Tel. : +54 11 4314-4482 C1004AAM - Buenos Aires Fax : +54 11 4508-6425 Argentina e-mail smorilla@tipoiti.com
|
| | 6 answers | Add comment |
Wednesday, 1 July 2009
|
| compile error in mod_ntlm2-0.1 - missing apxs Gayal 08:30:21 |
| | 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."
|
| | 7 answers | Add comment |
Wednesday, 6 May 2009
|
Tomcat on browser do not work, squalled 13:36:29 |
| | Please identify the problem? I HAVE DOWNLOADED tomcat 6.0.& DONE CORRECT SETTINGS BUT WHENEVER I LOAD IT ON BROWSER IT DO NOT WORK.PLEASE IDENTIFY THE PROBLEM & PROVIDE THE SOLUTION. I tried changing ports from 8080 to 80, 8080 to 8081 but nothing works. The tomcat is up and running but whenever I try to test Tomcat in browser, the page seems to load but in reality nothing appears there Thanks for the replies!! Please help me out |
| | Add comment |
Saturday, 21 March 2009
|
| Security Problems ??? Torsten Foertsch 14:44:26 |
| | Hi,
almost a month ago there was this posting on the users list
http://www.gossamer-threads.com/lists/modperl/modperl/99170#99170
stating there was a security related bug in modperl.
Since then there were no svn updated touching the code. I'd like to know if my servers are secure. So, where can I get more information about the bug to perhaps help to fix it?
Who knows more about the bug, please issue a statement if it is a bug or not. If it is but nobody has the resources to fix it, please let me know (privately) what it is. If I can I'll do it then.
Torsten
-- Need professional mod_perl support? Just hire me: torsten.foertsch@gmx.net
|
| | Add comment |
Friday, 20 March 2009
|
| mp2 hangs when running make test Oliver Block 21:29:42 |
| | Hello everybody,
I'd like to submit the following bug report. In order to understand the problem I changed /conf/modperl_extra.pl after `make test` has failed. I wanted to know if startup_info() returns, so I added code to an empty line (line 37):
(/conf/modperl_extra.pl) ... startup_info(); Apache2::ServerUtil->server->log->info('peep'); # manually added test_add_config(); ...
It seems to me as if the call to Apache Apache2::ServerUtil->server->log->info helps to prevent the test from hanging.
I have no idea why, but you may find out. I enclosed both test summaries, make test and make test with modificions. to the end of this posting.
Best regards,
Oliver Block
****************** apache2ctl -v ***************************
Server version: Apache/2.2.11 (Linux/SUSE) Server built: Mar 18 2009 18:09:34
********************** perl -V *******************************
Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Platform: osname=linux, osvers=2.6.25, archname=x86_64-linux-thread-multi uname='linux oldfield 2.6.25 #1 smp 2008-12-08 03:55:28 +0100 x86_64 x86_64 x86_64 gnulinux ' config_args='-ds -e -Dprefix=/usr -Dvendorprefix=/usr -Dinstallusrbinperl -Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_gdbm -Duseshrplib=true -Doptimize=-O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -g -Wall -pipe -Accflags=-DPERL_USE_SAFE_PUTENV' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=define, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -g -Wall -pipe', cppflags='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe' ccversion='', gccversion='4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036]', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib64' libpth=/lib64 /usr/lib64 /usr/local/lib64 libs=-lm -ldl -lcrypt -lpthread perllibs=-lm -ldl -lcrypt -lpthread libc=/lib64/libc-2.8.so, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.8' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/CORE' cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib64'
Characteristics of this binary (from libperl): Compile-time options: DEBUGGING MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_TRACK_MEMPOOL PERL_USE_SAFE_PUTENV USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under linux Compiled at Jan 28 2009 15:28:34 @INC: /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl . ********************* make test **************************** ... /usr/bin/perl -Iblib/arch -Iblib/lib \ t/TEST -clean [warning] setting ulimit to allow core files ulimit -c unlimited; /usr/bin/perl /usr/src/packages/BUILD/mod_perl-2.0.4/t/TEST -clean APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= APACHE_TEST_APXS= \ /usr/bin/perl -Iblib/arch -Iblib/lib \ t/TEST -bugreport -verbose=0 [warning] setting ulimit to allow core files ulimit -c unlimited; /usr/bin/perl /usr/src/packages/BUILD/mod_perl-2.0.4/t/TEST -bugreport -verbose=0 [warning] root mode: changing the files ownership to 'nobody' (65534:65533) [warning] testing whether 'nobody' is able to -rwx /usr/src/packages/BUILD/mod_perl-2.0.4/t "/usr/bin/perl" -Mlib=/usr/src/packages/BUILD/mod_perl-2.0.4/Apache-Test/lib -MApache::TestRun -e 'eval { Apache::TestRun::run_root_fs_test(65534, 65533, q[/usr/src/packages/BUILD/mod_perl-2.0.4/t]) }';
[warning] result: OK [warning] the client side drops 'root' permissions and becomes 'nobody' /usr/sbin/httpd2-prefork -d /usr/src/packages/BUILD/mod_perl-2.0.4/t -f /usr/src/packages/BUILD/mod_perl-2.0.4/t/conf/httpd.conf -D APACHE2 -D PERL_USEITHREADS using Apache/2.2.11 (prefork MPM)
waiting 120 seconds for server to start: .[Fri Mar 20 19:02:26 2009] [info] 6 Apache2:: modules loaded [Fri Mar 20 19:02:26 2009] [info] 0 APR:: modules loaded [Fri Mar 20 19:02:26 2009] [info] base server + 28 vhosts ready to run tests .......................................................................................................................... waiting 120 seconds for server to start: not ok [ error] giving up after 121 secs. If you think that your system is slow or overloaded try again with a longer timeout value. by setting the environment variable APACHE_TEST_STARTUP_TIMEOUT to a high value (e.g. 420) and repeat the last command.
[ error] server failed to start! (please examine t/logs/error_log) +--------------------------------------------------------+ | Please file a bug report: http://perl.apache.org/bugs/ | +--------------------------------------------------------+ make: *** [run_tests] Fehler 1
************ make test (with modifications) ****************
Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/apache/util.t 8 4 1-4 7 tests and 1 subtest skipped. Failed 1/238 test scripts. 4/2457 subtests failed. Files=238, Tests=2457, 127 wallclock secs (88.53 cusr + 16.14 csys = 104.67 CPU) Failed 1/238 test programs. 4/2457 subtests failed. [warning] server localhost:8529 shutdown [ error] error running tests (please examine t/logs/error_log) +--------------------------------------------------------+ | Please file a bug report: http://perl.apache.org/bugs/ | +--------------------------------------------------------+ make: *** [run_tests] Fehler 1
************************************************************
--
|
| | Add comment |
Thursday, 19 March 2009
|
| Apache::SizeLimit + solaris Update 10 Adam Prime 16:03:46 |
| | There was a thread today on the users list where a guy was running into problems with SizeLimit on Solaris update 10 [1]. Attached are 2 patches, one against the version of Apache2::SizeLimit in the 2.04 distribution, and the other against the version in SVN. the SVN version still tests fine on linux, but I can't test it on solaris at home, and the solaris boxes I do have access to don't have update 10 on them.
I'm also not sure if what I did is acceptable or not, but it should work, I think. I also didn't make the change in the 1.3 tree.
Adam
[1] http://marc.info/?t=123630641100001&r=1&w=2
--- SizeLimit.pm.orig 2009-03-06 01:19:31.000000000 -0500 +++ SizeLimit.pm 2009-03-06 01:22:22.000000000 -0500 @@ -52,7 +52,8 @@ if Apache2::MPM->is_threaded(); # decide at compile time how to check for a process' memory size. - if (SOLARIS && $Config{'osvers'} >= 2.6) { + my ($major,$minor) = split('.',$Config{'osvers'}); + if (SOLARIS && $major >= 2 && $minor >= 6) { $HOW_BIG_IS_IT = \&solaris_2_6_size_check;
Index: lib/Apache/SizeLimit/Core.pm =================================================================== --- lib/Apache/SizeLimit/Core.pm (revision 750777) +++ lib/Apache/SizeLimit/Core.pm (working copy) @@ -131,7 +131,8 @@ } BEGIN { - if ($Config{'osname'} eq 'solaris' && $Config{'osvers'} >= 2.6 ) { + my ($major,$minor) = split('.',$Config{'osvers'}); + if ($Config{'osname'} eq 'solaris' && $major >= 2 && $minor >= 6 ) { *_platform_check_size = \&_solaris_2_6_size_check; *_platform_getppid = \&_perl_getppid; }
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org |
| | 5 answers | Add comment |
Tuesday, 17 March 2009
|
| [RELEASE CANDIDATE] mod_perl-1.31 RC6 Philippe M. Chiasson 06:38:06 |
| | <note> Apologies, but RC5 was generated on a Mac and included bogus resource forks in the tarball, breaking MakeMaker on any non-mac platform. This RC is the exact same thing as RC5, without the resource forks. </note>
The mod_perl 1.31 release candidate 6 is ready. It can be downloaded here:
http://www.apache.org/~gozer/mp1/mod_perl-1.31-rc6.tar.gz
SHA1(mod_perl-1.31-rc6.tar.gz)= 1b917d51fd4b0030cd8d018a35d3d98cdfcca0a4 MD5(mod_perl-1.31-rc6.tar.gz)= db7b0bde837ba8b2ffef855218d9360f
Please give it a spin in your favorite configuration and report any problems. Especially needed against Perl-5.10 and on Windows.
The summary of what has changed since 1.30 are (from Changes):
On Win32, mod_perl.h needs to include <malloc.h> before the perl headers, at least when built with USE_ITHREADS [Steve Hay]
Win32 needs PERL_SYS_INIT/PERL_SYS_TERM calls when built with USE_ITHREADS [sic--that's different to USE_THREADS]. In fact, they ought to be always called if they are defined [Steve Hay]
Fix potential segfault when the environment contains NULL values [Mike Schilli]
Fix static APACI build against newer apache-1.3.38+ [Gozer]
Fixed modules/regex.t test 4 on Win32 [Steve Hay]
Avoid possible segfault when PerlFreshRestart is On. [Michael Rendell <michael@cs.mun.ca>]
Prevent segfault when running with perl >= 5.9.3 [Steve Hay]
Fix shared libary extensions on Win32 to be .dll not .so [Nikolay Ananiev <ananiev@thegdb.com>]
Patch to mod_perl.dsp to remove /D _WINSOCK2API_ on Win32 for perl >= 5.8.6 [Steve Hay]
-- Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5 http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/
|
| | 1 answer | Add comment |
Sunday, 15 March 2009
|
| New GUI for Apache Guest 22:23:41 |
| | Hello everybody, I'm writing a GUI for apache. Right now I 'only' have a working parser (in python). I need people to submit their configuration files so that I can see if the parser really works or not. As soon as I am quite confident that the parser works I'll move on the GUI. Please note that the parser as is does not support include directives. I'll add them asap. If you are so kind to contribute your httpd.conf file please note that it'll be made publicly available. You can check out the project at apacheconsole.sourceforge.net. Bye and thanks, P.S.: please bear with me if I'm posting to the wrong place... Umberto Nicoletti - unicoletti@arpa.veneto.it | sysmaster@arpa.veneto.it Tel. 049-8239380 (assistenza) "We'll try to make different mistakes this time." - Larry Wall |
| | 13 answers | Add comment |
Friday, 13 March 2009
|
| [RELEASE CANDIDATE] mod_perl-1.31 RC5 Philippe M. Chiasson 17:55:50 |
| | The mod_perl 1.31 release candidate 5 is ready. It can be downloaded here:
http://www.apache.org/~gozer/mp1/mod_perl-1.31-rc5.tar.gz
MD5(mod_perl-1.31-rc5.tar.gz)= 68dafd0a864603bd977739b06b56954a SHA1(mod_perl-1.31-rc5.tar.gz)= 2b4e24673ca6e1387dbc2f86faf84f63e8bb298c
Please give it a spin in your favorite configuration and report any problems. Especially needed against Perl-5.10 and on Windows.
The summary of what has changed since 1.30 are (from Changes):
On Win32, mod_perl.h needs to include <malloc.h> before the perl headers, at least when built with USE_ITHREADS [Steve Hay]
Win32 needs PERL_SYS_INIT/PERL_SYS_TERM calls when built with USE_ITHREADS [sic--that's different to USE_THREADS]. In fact, they ought to be always called if they are defined [Steve Hay]
Fix potential segfault when the environment contains NULL values [Mike Schilli]
Fix static APACI build against newer apache-1.3.38+ [Gozer]
Fixed modules/regex.t test 4 on Win32 [Steve Hay]
Avoid possible segfault when PerlFreshRestart is On. [Michael Rendell <michael@cs.mun.ca>]
Prevent segfault when running with perl >= 5.9.3 [Steve Hay]
Fix shared libary extensions on Win32 to be .dll not .so [Nikolay Ananiev <ananiev@thegdb.com>]
Patch to mod_perl.dsp to remove /D _WINSOCK2API_ on Win32 for perl >= 5.8.6 [Steve Hay]
-- Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5 http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/
|
| | 3 answer | Add comment |
Thursday, 12 March 2009
|
| RE: [Fwd: Re: Apache 1.3.41 / mod_perl 1.30 / Perl 5.8.9] Steve Hay 17:48:11 |
| | There is already a note in the Changes file in SVN (added by the revision that changed mod_perl.c itself).
I think we ought to release mod_perl-1.31 to save other people from wasting time like this investigating bugs that are already fixed.
Someone else recently tripped up another bug that's already fixed: http://marc.info/?l=apreq-dev&m=123572735005838&w=2
|
| | 4 answer | Add comment |
Thursday, 5 March 2009
|
| "Too many arguments for subroutine" after convert to mod_perl Csross 11:32:26 |
| | I am converting some cgi scripts to enable them to run under mod_perl. I have one script that I defined as a package and reference it via the package name in the calling program. That eliminated my "undefined subroutine" errors but I just got one I do not know. Any help would be appreciated.
I am getting the error
[error] Too many arguments for packagesubs::getResultSet at /usr/local/apache2/cgi-bin2/launch_frm.cgi line 209, near "$strSQL)"\n
In my calling program I have
$sth = packagesubs::getResultSet($strSQL);
In the called program I have
package packagesubs;
sub getResultSet() { $sqlQuery=$_[0]; $sth = $dbh->prepare($sqlQuery); $sth->execute || die "Can't prepare statement: $DBI::errstr"; return $sth; }
-- View this message in context: http://www.nabble.com/%22Too-many-arguments-for-subroutine%22-after-convert-to-mod_perl-tp22338572p22338572.html Sent from the mod_perl - Dev mailing list archive at Nabble.com.
|
| | 1 answer | Add comment |
Thursday, 26 February 2009
|
| RE: Apache HTTPD segfaults w/ mod_perl 1.0 Steve Hay 19:37:51 |
| | Karsten Kroesch wrote:
Hi! I'm running an Apache 1.3.39 with mod_perl 1.0 freshly compiled by myself on Solaris 10 (The Perl application I'm dealing with, refused to work on Apache 2.x and mod_perl 2, though using compat. mode). The application seems to work fine in the first place, but then showed some odd behaviour. The error_log says: "[notice] child pid 14240 exit signal Segmentation Fault (11), possible coredump in /etc/httpd" and when I enabled core dumping, I see the stack trace attached below. I cannot see whether a script is causing the failure. Can anyone give me a hint where to search for the reason? Is it the fault of a script or the mod_perl lib itself? Any help is appreciated; thanks in advance! Karsten -------8<-------------- bash-3.00# pstack core.httpd.14240 core 'core.httpd.14240' of 14240: /opt/apache-1.3.39/bin/httpd -DSSL 001322e4 Perl_av_undef (0, 1, a696c, 12ff24, 20bdf8, fef71414) + 4 0005a634 What version of perl are you using? If its 5.10.x then from your stack trace I would guess that you've been bitten by the bug that was fixed here:
http://svn.apache.org/viewvc?view=rev&revision=555908
Unfortunately, that was committed just after mod_perl-1.30 was released and 1.31 still hasn't been released yet. Try manually applying that change to your mod_perl source and rebuilding it (or else get the current dev version from SVN).
|
| | Add comment |
Thursday, 19 February 2009
|
| Shutdown behavior Torsten Foertsch 17:07:22 |
| | Hi,
why do we not call perl's cleanup at child exit?
Here my setup:
<Perl> package My::Test; use strict; use warnings; sub new { my (undef, $data)=@_; my $inst=bless \$data; warn "$$: a new instance is born: $inst ($$inst)\n"; $inst; } sub DESTROY {warn "$$: DESTROY $_[0] (${$_[0]})\n"}
$My::PInstance=My::Test->new('parent'); </Perl>
PerlChildInitHandler "sub {$My::CInstance=My::Test->new('child')}"
The destructor is called only once for $My::PInstance at server shutdown. This may be questionably right because if the object is created in the parent process so it is destroyed there and only there.
But the $My::CInstance destructor is never called.
Of course I can add a PerlChildExitHandler
PerlChildExitHandler \ "sub {undef $_ for($My::PInstance, $My::CInstance)}"
or an END block
<Perl> END {undef $_ for($My::PInstance, $My::CInstance)} </Perl>
Both are called at child shutdown. But that is a bit counter-intuitive since:
perl -e '{ package My::Test; use strict; use warnings; sub new { my (undef, $data)=@_; my $inst=bless \$data; warn "$$: a new instance is born: $inst ($$inst)\n"; $inst; } sub DESTROY { warn "$$: DESTROY $_[0] (${$_[0]})\n"; } } $My::PInstance=My::Test->new("parent");fork;' 8982: a new instance is born: My::Test=SCALAR(0x7c79b8) (parent) 8982: DESTROY My::Test=SCALAR(0x7c79b8) (parent) 8983: DESTROY My::Test=SCALAR(0x7c79b8) (parent)
And then we have $r->child_terminate which simply calls exit() at C-level in a request pool cleanup. So, no perl-level cleanup at all is done.
Do you think this is the right behavior? If not, what do you think would be correct?
Torsten
-- Need professional mod_perl support? Just hire me: torsten.foertsch@gmx.net
|
| | 2 answer | Add comment |
|