Re: Segmentation Fault: RedHat 6.[01] / Apache 1.3.12 / mod_perl1.22 / perl 5.005_03 / IE 5

2000-04-02 Thread Doug MacEachern
On Thu, 30 Mar 2000, Robert Jenks wrote: I'm having a very strange problem. I'm running a very large application under apache/mod_perl (100+ modules; httpd children grow to 40+MB). The application uses Apache::DBI (DBD::Oracle) CGI.pm, so I have it running as a handler and everything

Re: httpd coredumps

2000-04-02 Thread Doug MacEachern
On Mon, 3 Apr 2000, Tobias Brox wrote: if you could follow the hints in the SUPPORT doc for getting a stacktrace, that would help a great deal. Here we are ... hm ... it doesn't seem to tell much. The request is after the server root, and I haven't set up any perl handlers ... so then

Re: Set DocumentRoot from modperl

2000-04-02 Thread Doug MacEachern
there have been several requests for the ability to modify the DocumentRoot, i reckon it's about time we allow that. caveats: if you want the DocumentRoot to be reset to the original value after the request is over, you'll have to do that yourself, something like: my $old_docroot =

Re: Perl 5.6 and mod_perl

2000-03-31 Thread Doug MacEachern
On Thu, 30 Mar 2000, Rodney Broom (OE) wrote: U guess. Lots of weird little errors that I can't quite resolve. I can get Apache installed, but if I build with mod_perl, I can't get cgi or indexing to work. They just spit out segment fault errors. if you could follow the hints in the SUPPORT

Re: Error on CGI execution

2000-03-31 Thread Doug MacEachern
On Fri, 31 Mar 2000, Paolo Tealdi wrote: Hello all. What exactly means this error (from my error_log ) "Attempt to free non-existent shared string during global destruction. " It is from a big CGI ported in mod_perl. Unfortunately i haven't written it (the CGI, not mod_perl :-) ) and

RE: Segmentation Fault: RedHat 6.[01] / Apache 1.3.12 / mod_perl 1.22 / perl 5.005_03 / IE 5

2000-03-31 Thread Doug MacEachern
On Fri, 31 Mar 2000, Vivek Khera wrote: "GY" == Geoffrey Young [EMAIL PROTECTED] writes: GY PerlFreshRestart causes a great many problems, most for indeterminate GY reasons, but its behavior is at least documented I'm curious, now with the new code in 1.22 that dl_unloads all of the

Re: installing with apache

2000-03-31 Thread Doug MacEachern
After having compiled mod_perl and apache together, shouldn't mod_perl be enabled in httpd.conf? It isn't. Have I done things correctly? no, you need to add the mod_perl configuration to httpd.conf yourself.

Re: what's the apache mod_perl speedup factor?

2000-03-31 Thread Doug MacEachern
tom, my direct reply to you bounced, but this should probably be on the list anyhow... - Transcript of session follows - ... while talking to mail.perl.com.: MAIL From:[EMAIL PROTECTED] 550 Your site is blacklisted as a spam haven. 554 [EMAIL PROTECTED]... Service unavailable On

Re: mod_perl (DSO) dumping core with perl 5.6.0

2000-03-31 Thread Doug MacEachern
On Fri, 31 Mar 2000, Paul G. Weiss wrote: Please help. I've tried many things. I'm building this on Solaris 2.6. I'm tring to get mod_perl (1.22) to load as a DSO. It is dieing as follows: that's a shame, Perl 5.005_56-ish worked fine as a dso under solaris. mod_perl's Makefile.PL tries

Re: Problem Compiling with Perl 5.6.0

2000-03-30 Thread Doug MacEachern
On Thu, 30 Mar 2000, Steve Hay wrote: Thanks for this! I tried it with the latest mod_perl cvs: mine now compiles perfectly too (_never_ seen that before!!!), and there's now only 1 unresolved external symbol instead of 7. Looks like it could be nearly there - I'll try another one some

Re: Modperl 1.22 and Perl 5.6.0

2000-03-30 Thread Doug MacEachern
On Wed, 29 Mar 2000, Jeffrey W. Baker wrote: configure Perl with -Dusemymalloc Wait, doesn't usemymalloc mean to use the system's native malloc? This from INSTALL: "To build without perl's malloc, you can use the Configure command sh Configure -Uusemymalloc" yeah,

Re: [Patch] Apache::DB on Win32

2000-03-30 Thread Doug MacEachern
thanks Gerald, applied for 0.07. On Wed, 29 Mar 2000, Gerald Richter wrote: Hi Doug, the following patch allows Apache::DB to be used on Win32 Systems: In DB.xs wrap the SIGINT call at the last line inside a conditional, like: #ifndef WIN32 if (ApacheSIGINT)

Re: getting mod_perl working

2000-03-30 Thread Doug MacEachern
try 1.22 instead of 1.21 On Wed, 29 Mar 2000, Quadrilateral I was wrote: I've been trying to get ePerl installed on a redhat system, and I seem to have narrowed it down to a problem with mod_perl and/or apache. Whenever I add a PerlModule statement to httpd.conf and try to restart httpd,

Re: [make test warns] mod_perl/mod_ssl

2000-03-30 Thread Doug MacEachern
httpd.conf should have: IfModule mod_ssl.c SSLDisable SSLSessionCache none /IfModule ok, applied, thanks!

Re: Can't locate object method OPEN via package Apache

2000-03-30 Thread Doug MacEachern
On Thu, 30 Mar 2000, Sam Carleton wrote: I am trying to get the Apache::Magick module from the O'Reilly book "Writing Apache Modules with Perl and C" to work. The error I am running into is: Can't locate object method "OPEN" via package "Apache" (line 80) The looks real simply:

Re: More segfault problems

2000-03-30 Thread Doug MacEachern
On Wed, 29 Mar 2000, Shevek wrote: I can't find any documentation for what RULE_EXPAT does, the only occurrence at all is in Apache src/Configure, where it seels to compile in the expat lite library. RULE_EXPAT=no disables the expat lite library. there have been reports of it clashing with

Re: performance mongers: since when is using CGI.pm or Apache::Registrydishonorable?

2000-03-30 Thread Doug MacEachern
geez. i don't recall "Apache::Registry vs. pure PerlHandler" or "Apache::Request vs. CGI.pm" ever being so harsh. but they have been compared, for good reason. Apache::Registry maps a request to a file and generates a subroutine to run the code contained in that file. if you use a

Re: [admin] NO HTML posts please!

2000-03-30 Thread Doug MacEachern
esrever ni snoitseuq gnirewsna diova esaelp dna On 30 Mar 2000, Randal L. Schwartz wrote: "Angel" == Angel R Rivera [EMAIL PROTECTED] writes: Angel how about avoiding the me toos... Yeah, and the people that post "upside down", with the answer *before* the question!

Re: [PATCH 5.6.0] local $SIG{FOO} restoration

2000-03-30 Thread Doug MacEachern
On Wed, 29 Mar 2000, Hugo wrote: I believe that this (or take2) might cause a problem for code like: sub handler { print "sig handled" } my $handlesub = "handler"; [... something reads $handlesub in numeric context ...] $SIG{ALRM} = $handlesub; i suppose the handler should

Re: [ANNOUNCE] mod_perl-1.22

2000-03-28 Thread Doug MacEachern
On Thu, 23 Mar 2000, Ruben I Safir wrote: Is there any security issues forcing an upgrade? no.

Re: [patch] mod_perl-1.22 and SGI_BOOST

2000-03-28 Thread Doug MacEachern
On Fri, 24 Mar 2000, Ville Skyttä wrote: The -DSGI_BOOST option is broken in mod_perl 1.22 (minor typo), a patch is attached. thanks, applied. Further, the "perl Makefile.PL" section of the installation has changed somewhat from 1.21_03, resulting in some strange warnings / errors. these

Re: Re-coding some noddy routines in C

2000-03-28 Thread Doug MacEachern
On Fri, 24 Mar 2000, Dave Hodgkinson wrote: General question: We have two little bits of mod_perl code we run, one that pops our accellerating proxy IP address off the X-Forwarded-For list and the other that stuffs one of a variety of possible cookies into the basic auth field of the

Re: Modperl 1.22 and Perl 5.6.0

2000-03-28 Thread Doug MacEachern
On Fri, 24 Mar 2000, Ken Kosierowski wrote: What is the best way to compile the new Perl 5.6.0 with Modperl 1.22? same way you compile 5.005 with mod_perl Should I use the 5.005 compatible flags or start from scratch and recompile the modules I use? you don't need the 5.005 compat flags

Re: More segfault problems

2000-03-28 Thread Doug MacEachern
On Fri, 24 Mar 2000, Shevek wrote: Now we get rid of the DOM tree. 44 $document-dispose; And the child segfaults. But if I don't have the dumper, that does not happen. What is the best way to get around this? Is undefining $d an appropriate technique? did you configure

Re: Why 'require' required?

2000-03-28 Thread Doug MacEachern
On Sun, 26 Mar 2000, Jie Gao wrote: Another thing is, it seems there is no way to get at "allow/deny from" from within mod_perl. "deny from all" will work, but "deny from ip.addres." does not. no, because the allowdeny typedef is private in mod_access.c however, you can implement directive

Re: perl 5.6/mod_perl 1.22/apache 1.3.12

2000-03-28 Thread Doug MacEachern
On Mon, 27 Mar 2000, Charles Day wrote: Just spent half the day trying marry these 3. mod_perl doesn't build. DSO/apxs errors as described by others. these errors were just warnings, try cvs if you want to get rid of them. did you have other problems too?

Re: why can not test, but can run

2000-03-28 Thread Doug MacEachern
On Mon, 27 Mar 2000, David Yang wrote: I can not test my mod_perl, everytime I test my mod_perl, just as the document told me, it will letting apache warm up . failed what does t/logs/error_log say?

Re: Signal Abort

2000-03-28 Thread Doug MacEachern
On Tue, 28 Mar 2000 [EMAIL PROTECTED] wrote: Hi, my environment is Server: Apache/1.3.3 (Unix) mod_perl/1.16 on Solaris, you might want to upgrade to recent versions of apache and mod_perl #26 0xee8e86b8 in IM_FreeMbox () #27 0xef4b8f14 in XS_Mailbox_DESTROY () if you can compile this

Re: possible bug: mod_perl 1.22 (Perl 5.6 / Apache 1.3.12)

2000-03-28 Thread Doug MacEachern
On Tue, 28 Mar 2000, Dave Seidel wrote: and now everything is working correctly. What I don't undetrstand is that the original code was identical in mod_perl 1.21, but I didn't have this problem. Could this be due to some internal change in Perl 5.6? probably, thanks for the fix!

[PATCH 5.6.0] local $SIG{FOO} restoration

2000-03-28 Thread Doug MacEachern
when 'local $SIG{ALRM} = sub {...}' goes out of scope, magic_setsig() sets the SIGALRM handler to SIG_DFL, rather than the original handler. this causes quite a bit of trouble running inside of apache, since 'local $SIG{ALRM}' unhooks the apache SIGALRM handler for the life of that proccess. the

[ANNOUNCE] mod_perl-1.22

2000-03-23 Thread Doug MacEachern
The URL http://perl.apache.org/dist/mod_perl-1.22.tar.gz has entered CPAN as file: $CPAN/authors/id/DOUGM/mod_perl-1.22.tar.gz size: 344615 bytes md5: 5ec093c3b11c5b411d28aa1447b4a0bc Changes since 1.21_03: proxy support fixed wrt RFC2068, thanks to Benjamin Elijah Griffin for the

[ANNOUNCE] mod_perl-1.21_03

2000-03-15 Thread Doug MacEachern
The URL http://perl.apache.org/dist/mod_perl-1.21_03.tar.gz has entered CPAN as file: $CPAN/authors/id/DOUGM/mod_perl-1.21_03.tar.gz size: 343622 bytes md5: c76342b8b576e0c59d4f5bf4d347ca0a this is very close to 1.22, hopefully no longer than another day or two away. Changes since

Re: setting perl handler based on MIME type?

2000-01-27 Thread Doug MacEachern
On Thu, 27 Jan 2000, Jim Winstead wrote: Is there a way to set a PerlHandler for a specific MIME type? Something like "PerlTypeHandler text/html HTML::Template"? (Yes, I know I can use a Files section. Not quite as slick, and that mucks up $r-location.) there's no builtin config like that,

Re: Static linking of Sybase::DBlib to mod_perl?

2000-01-27 Thread Doug MacEachern
On Thu, 27 Jan 2000, Thomas Corte wrote: Hi, I'd like to use sybperl from a (statically linked) mod_perl httpd. I only have older non-PIC sybase client libraries here (the OS is hp/ux), so I can't build sybase as a loadable object for perl. That is, it seems I have to compile mod_perl

Re: mod_perl and Content-Negotiation

2000-01-27 Thread Doug MacEachern
On Thu, 27 Jan 2000, Bruce W. Hoylman wrote: I see Apache::RegistryNG @ISA Apache::PerlRun. Furthermore, perldoc Apache::PerlRun states the following: The Apache::Registry handler is much faster than Apache::PerlRun. However, Apache::PerlRun is much faster than CGI

Re: Problems building GTop...

2000-01-27 Thread Doug MacEachern
On Thu, 27 Jan 2000, Stas Bekman wrote: Hmm, let's see Doug wrote GTop... so is this ontopic? :) Check the libgtop homepage for more info and help. (hint: README file includes the URL) hmm, well I didn't put any email address in the GTop package :) Apparantly, you either don't have it

Re: mod_perl and Content-Negotiation

2000-01-27 Thread Doug MacEachern
On Thu, 27 Jan 2000, Stas Bekman wrote: * Apache::RegistryNG doesn't stat() the script on each request, like Registry does. not true, RegistryNG is the same as Registry, aside from using filename instead of uri for the namespace. you're thinking of RegistryBB Doug will have to confirm my

Re: Results of calling perl_shutdown in mp_dso_unload

2000-01-26 Thread Doug MacEachern
On Fri, 21 Jan 2000, Daniel Jacobowitz wrote: (with appropriate changes to unload DSOs after shutting down perl, of course). I still get memory leakage - that's not terribly surprising - but it is much less. It's on the order of about 24K/restart and is probably the fault of some module

RE: mod_perl 1.21 - CGI.pm 2.56 error in phase other than conten t

2000-01-26 Thread Doug MacEachern
from chapter 9 of wrapmod: There are a number of standard variables that Apache adds to the environment prior to invoking the content handler. These include DOCUMENT_ROOT and SERVER_SOFTWARE. By default, the complete C%ENV hash is not set up until the content response phase. Only variables set

Re: PerlRun and Exporter() vars

2000-01-26 Thread Doug MacEachern
On Mon, 27 Dec 1999, John M Vinopal wrote: More about the undef of package variables. Sure enough, the variables are nuked in PerlRun::flush_namespace(). This can be inhibited by removing them from the script's namespace before termination: my $name = __PACKAGE__ . '::';

Re: Status in httpd access log

2000-01-26 Thread Doug MacEachern
have a look at Apache::RedirectLogFix On Thu, 6 Jan 2000, Mark Nudelman wrote: I'm writing my first module using modperl, so I'm probably doing something really wrong, but I haven't been able to figure this out. I want my script to return an HTTP error code to the client, and I want that

Re: Perl modules in apache configuration

2000-01-26 Thread Doug MacEachern
if you compile modperl with PERL_TRACE=1 and setenv MOD_PERL_TRACE s then you should see some useful diagnostics when mod_perl is processing Perl sections. On Sun, 9 Jan 2000 [EMAIL PROTECTED] wrote: Hello! I'm trying to configure httpd.conf using Perl sections (mod_macro is not enough for

Re: Memory leak/server crashes

2000-01-26 Thread Doug MacEachern
there are hints in the SUPPORT doc on how to debug such problems. there was also several "Hanging process" threads in the past weeks with more tips, search in the archives for keywords gdb, .gdbinit, curinfo if you can get more insight from those tips, we can help more. On Sun, 9 Jan 2000,

Re: Help

2000-01-26 Thread Doug MacEachern
sounds like your script is running under mod_cgi, not mod_perl On Tue, 11 Jan 2000, Akio wrote: I´m programming in mod_perl and I'm trying to use libapreq-0.31 but when I call method new, I get the msg "Can't locate object method "new" via package "Apache::Request"". The package

Re: problems with module at root of web site

2000-01-26 Thread Doug MacEachern
On Wed, 12 Jan 2000, Sean Chittenden wrote: Mind if I ask a nit-pick of a performance question? Currently speed and performance are of upmost importance (I'm currently involved in a mod_perl vs JServ development race). That being said, isn't pushing a handler onto the request stack

RE: mod_perl bug (mod_perl 1.21; Apache 1.3.9).

2000-01-26 Thread Doug MacEachern
On Wed, 19 Jan 2000, John Hughes wrote: what happens if you preload Apache::Registry in httpd.conf: PerlModule Apache::Registry Didn't try that. But code examination seems to imply that it would have no effect. 1. Apache::Registry gets run, so: unless (defined

Re: Suggested improvements to RegistryLoader.pm - stuff for virtualhosts

2000-01-26 Thread Doug MacEachern
On Wed, 19 Jan 2000, John Hughes wrote: It would be nice if RegistryLoader.pm let me load a script for a virtual host in such a way that I didn't have to worry about how they were represented. Something like: my $r = Apache::RegistryLoader-new; $r-handler($uri, $filename,

Re: Problems w/ CGI under mod_perl

2000-01-26 Thread Doug MacEachern
perhaps you should call Apache-request-new($r)-register_cleanup(\CGI::_reset_globals); there is no Apache::new method the problem here (which has come up many times in the past), is that CGI.pm uses the Apache-request method to get a reference to the global $r. this normally isn't set

Re: horrible memory consumption

2000-01-26 Thread Doug MacEachern
have a look at the Apache::Status in the cvs tree, there are hooks into B::TerseSize which is used to measure Perl memory usage. On Wed, 19 Jan 2000, Jason Terry wrote: Is there a way I can tell where my memory usage is going in an Apache child? I have a server that starts with acceptable

Re: send_fd and timeout problem

2000-01-26 Thread Doug MacEachern
On Thu, 20 Jan 2000, Martin Lichtin wrote: Doug MacEachern wrote: mod_perl doesn't set it's own alarm when $r-send_fd is called. did you call $r-print or print before hand? Hmm, no, I do something like this: $r-content_type('application/octet-stream'); my($size) = -s $fh; $r

Re: Performance ?'s regarding Apache::Request

2000-01-26 Thread Doug MacEachern
On Thu, 20 Jan 2000, Clifford Lang wrote: mod_perl 1.21 Apache 1.3.9 Solaris 2.5.1, Linux 6.0 Is this a good or bad idea? I want to create an inheritable module based on Apache::Request mainly for uploading files, then create individual PerlHandler modules for individual page content.

Re: Can't exec programs ?

2000-01-26 Thread Doug MacEachern
On Thu, 20 Jan 2000, Pierre-Yves BONNETAIN wrote: [EMAIL PROTECTED] said: you'll get a better idea of the problem running strace (or truss) against the server. in any case, you should avoid any code that's forking a process, since it's throwing performance out the window. Is

Re: problem

2000-01-26 Thread Doug MacEachern
On Thu, 20 Jan 2000, Etienne Pelaprat wrote: Hi All, I've hit a problem that I can't seem to rectify. I compile mod_perl with EVERYTHING=1, but in one of my modules, I get the error: [Wed Jan 19 20:30:05 2000] null: Rebuild with -DPERL_STACKED_HANDLERS to $r-push_handlers at

Re: problem

2000-01-26 Thread Doug MacEachern
On Thu, 20 Jan 2000, Cliff Rayman wrote: unfortunately PERL_STACKED_HANDLERS used to be experimental and therefore EVERYTHING includes just about EVERYTHING except PERL_STACKED_HANDLERS. i think you need to add PERL_STACKED_HANDLERS=1 to your long list of Makefile.PL parameters. this

Re: CGI.pm and QUERY_STRING fixup

2000-01-26 Thread Doug MacEachern
On Mon, 24 Jan 2000, Bill Moseley wrote: ... Under mod_cgi I can clean up $ENV{QUERY_STRING} at the start of a program by removing leading '' and double '', but that doesn't work, obviously, under mod_perl. Could someone suggest a way to clean up the query string from within an

Re: CGI.pm and QUERY_STRING fixup

2000-01-26 Thread Doug MacEachern
On Tue, 25 Jan 2000, Bill Moseley wrote: Ok, this seems to work, but perldoc Apache doesn't say anything about setting it. Is this at risk of not working in the future? you can set $r-args, that won't be going away in the future.

Re: Apache::AuthCookie takeover?

2000-01-26 Thread Doug MacEachern
On Tue, 25 Jan 2000, Ken Williams wrote: Can someone set the maintainer of Apache::AuthCookie to be me? patch below :) thanks Ken!! diff -u -u -r1.63 apache-modlist.html --- apache-modlist.html 1999/11/24 02:40:01 1.63 +++ apache-modlist.html 2000/01/27 05:19:27 @@ -114,7 +114,7 @@ *

Re: self url

2000-01-26 Thread Doug MacEachern
On Wed, 26 Jan 2000, Vladimir Ivaschenko wrote: Hello, Is there a way to get the URL of the current document in Embperl? Sort of like $q-self_url in CGI.pm. from chapter 9 of wrapmod: If the URI argument is omitted, the Iparse() method will construct a fully qualified URI from B$r

Re: numerous segv's, bus errors

2000-01-26 Thread Doug MacEachern
On Wed, 26 Jan 2000, Steven Parkes wrote: We've been getting many segv's and bus errors on apache processes since adding modperl. Env: Apache 1.3.11 (though we had the same thing under 1.3.9.), Perl 5.005003, modperl 1.21, hpux 11.00. At first most of the failures were coming within

Re: Results of calling perl_shutdown in mp_dso_unload

2000-01-26 Thread Doug MacEachern
On Wed, 26 Jan 2000, Daniel Jacobowitz wrote: Here's a question - an apache patch should be able to mark the module as not-to-unload (although since it should be not-to-unload-unless-removed-from-config it would be a bit more complicated than that - still not impossible). But is that

RE: Proxy example in eagle book does not work

2000-01-19 Thread Doug MacEachern
On Wed, 19 Jan 2000, Jonas Nordström wrote: I had the same problem. What does the "1" mean? That the sub returns with a true value? yes, from ch9: =item do() This method provides a way to iterate through an entire table item by item. Pass it a reference to a code subroutine to be called

Re: [ID 20000118.004] DynaLoader doesn't dlclose XS code on interpreter

2000-01-19 Thread Doug MacEachern
Unfortunately I can't actually get mod_perl + a load of other stuff to build on 5.005_63, so I can't see if it cures the mod_perl problem. you need modperl from cvs to use 5.005_62+ http://perl.apache.org/from-cvs/ Could a DynaLoader guru have a quick look at the patch and let me know if

Re: Attempt to free unreferenced scalar during global destruction.

2000-01-18 Thread Doug MacEachern
On Thu, 4 Nov 1999, Andrei A. Voropaev wrote: Hi! For some reason I get lots of 'Attempt to free unreferenced scalar during global destruction.' in my error log. Any one can give me a pointer where to search for the problem? it's most likely due to a buggy xs module. that message

Re: SegFaults caused by Apache::Cookie during ChildExit

2000-01-18 Thread Doug MacEachern
On Wed, 22 Dec 1999, Clinton Gormley wrote: I am using a home-baked session manager on my web site. I clean up expired sessions by called a child exit handlder and this all worked rather well. However, we have recompiled Perl, Apache, mod_perl and Perl modules with pgcc and a different

Re: your mail

2000-01-18 Thread Doug MacEachern
On Thu, 23 Dec 1999, Li,Yuan N.(NXI) wrote: I have fought hard quite a few days trying to add mod_perl1.21 onto apache 1.3.9 on HP 11. I use the c compiler comes with the machine, and installed Perl 5.00503 under my home directory /home/c015932/opt/perl(I do not have access to the root),

Re: a possible bug with Apache::Server::ReStarting

2000-01-18 Thread Doug MacEachern
Hi, While documenting the 'restart twice on start' apache's behavior, I've tested $Apache::Server::ReStarting and $Apache::Server::Starting. Perl section is executed twice -- OK. startup.pl is executed once -- OK. $Apache::Server::ReStarting never gets set! - I suppose it's a

Re: send_fd and timeout problem

2000-01-18 Thread Doug MacEachern
On Fri, 7 Jan 2000, Martin Lichtin wrote: Hi, I'm using send_fd() to send relatively large files. Apache's Timeout is currently set to 60s and indeed, mod_perl aborts as soon as the minute elapses. (error msg: mod_perl: Apache-print timed out). However, it shouldn't do that, right?

Re: Perl modules in apache configuration

2000-01-18 Thread Doug MacEachern
On Sun, 9 Jan 2000 [EMAIL PROTECTED] wrote: "Eric" == Eric writes: Eric On Sun, Jan 09, 2000 at 08:47:04PM +0300, [EMAIL PROTECTED] wrote: I'm trying to configure httpd.conf using Perl sections (mod_macro is not enough for me), but the result is weird. Eric Do you have a specific

Re: File upload bug in libapreq

2000-01-18 Thread Doug MacEachern
On Tue, 11 Jan 2000, Jim Winstead wrote: There appears to be a file upload bug in libapreq that causes httpd processes to spin out of control. There's a mention of this in the mailing list archives with a patch that seems to be a partial solution, but we're still seeing problems even with

Re: Patch to Apache::RedirectFixLog in mod_perl-1.21

2000-01-18 Thread Doug MacEachern
looks good, thanks David! On Tue, 11 Jan 2000, David D. Kilzer wrote: Hi, The patch below fixes a problem in Apache::RedirectFixLog when the URI being logged required use of a filename listed the DirectoryIndex directive. The solution is described in the following post by Doug

Re: alarm() in Apache::Registry

2000-01-18 Thread Doug MacEachern
On Thu, 13 Jan 2000, Bill Moseley wrote: At 08:50 AM 1/13/00 +0200, you wrote: Does anyone have experience using an alarm() call under Apache::Registry? http://perl.apache.org/guide/debug.html#Handling_the_server_timeout_case Should I set alarm(0) as my script "exits" or is it ok to

Re: Apache::Registry should allow script to _only_ set return code

2000-01-18 Thread Doug MacEachern
thanks Charles, I think your patch is the way to go for now, or something close to it for 1.22 On Thu, 13 Jan 2000, Charles Levert wrote: Hi. [ I use Apache 1.3.9 and mod_perl 1.21. ] I believe that there is a difference between the following two behaviors for an Apache module handler:

Re: Proxy example in eagle book does not work

2000-01-18 Thread Doug MacEachern
On Fri, 14 Jan 2000, Jason Bodnar wrote: A line in the proxy example of the eagle book on page 380 does not seem to work (entirely): The line: $r-headers_in-do(sub {$request-header(@_);}); what if you change that to: $r-headers_in-do(sub {$request-header(@_); 1}); ?

Re: a possible bug with Apache::Server::ReStarting

2000-01-18 Thread Doug MacEachern
On Wed, 19 Jan 2000, Stas Bekman wrote: Why? Some users need a control of what gets reloaded and what not on server start (Yes I know if you put in startup.pl file it loads only once) For example parsing and loading some heavy xml files... Why do you want to take it away? I think

Re: [PATCH] Compiling mod_perl with ActivePerl

1999-12-21 Thread Doug MacEachern
On Tue, 7 Sep 1999, Jochen Wiedmann wrote: Hi, attached you find a somewhat larger patch as a first step in order to get mod_perl running with ActivePerl. This is mainly to get the public source tree in sync with my work: I am still far away from getting it running. What I did so far is

Re: Read query string on POST request?

1999-12-21 Thread Doug MacEachern
On Thu, 16 Dec 1999, Tobias Hoellrich wrote: I pass a session id in the query string between invocations for my current project (only if the client does not support Cookies). My main handler is also responsible for creating an Apache::Request object right at the beginnig of the handler

Re: broken USE_APXS (was Re: Apache::Scoreboard - problem compiling)

1999-12-21 Thread Doug MacEachern
Anyone using USE_APXS has any ideas of why USE_APXS makes the installation incomplete? fixed now in cvs.

Re: Problems with dynamically-loaded perl modules under Solaris2.5.1

1999-12-21 Thread Doug MacEachern
On Thu, 16 Dec 1999, Dan Rench wrote: On Mon, 13 Dec 1999, Doug MacEachern wrote: are you still stuck on this? Yes. To reiterate: Solaris 2.5.1 sparc, gcc 2.95, perl 5.005_03 (configured with Solaris hints), mod_perl 1.21, apache 1.3.9, mod_fastcgi 2.2.2. Everything works fine

Re: Another install question: CGI.pm not found

1999-12-21 Thread Doug MacEachern
On Thu, 16 Dec 1999, Bill Moseley wrote: What obvious thing am I missing? During make test this gets written to the error log: Can't locate CGI.pm in @INC at /mod_perl-1.21/t/net/perl/cgi.pl line 7. that's a strange error, because 5.005+ reports the @INC paths, e.g.: % perl -MNotHere

Re: PerlModule/Require didn't work ??

1999-12-21 Thread Doug MacEachern
On Thu, 16 Dec 1999 [EMAIL PROTECTED] wrote: hi, I was wondering why the PerlModule and perlRequire didn't work for me. I have a fresh installation of : apache 1.3.9 + mod_perl 1.21 (that is bundled in RedHat6.1), what was my surprise to see that when I try to use something like :

Re: Another install question: CGI.pm not found

1999-12-21 Thread Doug MacEachern
79) %grep cgi.pl t/logs/error_log Can't locate CGI.pm in @INC at /data/_g/lii/apache/src/heavy/mod_perl-1.21/t/net/perl/cgi.pl line 3. again, I don't think it's possible for 5.005+ to produce this error message without listing the contents of @INC. cgi.pl is generated from cgi.pl.PL and also

Re: [Re: [Re: again - more then one PerlTransHandler]]

1999-12-21 Thread Doug MacEachern
At least that's what I thought ! In fact now Apache lets me use more then one PerlTransHandler, but it doesn't care of what is the return codes are!!! Even I return OK, it still calls next registered handlers. Really weird! mod_perl does care. but, mod_perl stacked handlers are not

Re: Problem running LWP under modperl (LONG)

1999-12-21 Thread Doug MacEachern
On Tue, 21 Dec 1999, Barry Hoggard wrote: I can't get LWP::UserAgent to run correctly under modperl, but I can make it work from the command line or as a regular CGI. strange, works fine here. }, 'HTTP::Headers' ), '_rc' = 500,

Re: Core dump on graceful restart.

1999-12-21 Thread Doug MacEachern
(gdb) where #0 0x80f4d4b in do_clean_objs () #1 0x80f4ccf in visit () #2 0x80f4df2 in Perl_sv_clean_objs () #3 0x80c2418 in perl_destruct () #4 0x8062920 in perl_shutdown () #5 0x8063aee in perl_child_exit () do you create any global objects that don't go out of scope until the

Re: Hanging processes [LONG with debugging output]

1999-12-15 Thread Doug MacEachern
(gdb) perl_get_sv("Apache::Constants::AUTOLOAD") Apache::Constants::OPT_EXECCGI what I was about to suggest trying is already in the modperl cvs Changes: preload Apache::Constants::OPT_EXECCGI() for Apache::{Registry,PerlRun} thanks to Chris Remshaw for spotting this w/ Apache::DProf so try

Re: mod_perl 1.21 - CGI.pm 2.56 error in phase other than content

1999-12-14 Thread Doug MacEachern
On Fri, 10 Dec 1999 [EMAIL PROTECTED] wrote: Does nay one know how to get round the bug in the above combination. When I create a new CGI in any phase other than Response I get a Can't call method "register_cleanup" on an undefined value at /usr/lib/perl5/5.00505/CGI.pm line 263. This

Re: silent failure when I try to use PerlRequire in httpd.conf

1999-12-14 Thread Doug MacEachern
if you build with PERL_TRACE=1 and start the server like so: % setenv MOD_PERL_TRACE=1 % httpd -X you should get some helpful diagnotics. On Sat, 11 Dec 1999, Bill Marrs wrote: Hi, I've been using mod_perl successfully albeit minimally for a couple months now. I'm trying to tune

Re: more then one PerlTransHandler

1999-12-14 Thread Doug MacEachern
On 12 Dec 1999, Evgenii Bazarov wrote: Hi! I tried to set more then one PerlTransHandler but if I specify both on the same line, Apache says "syntax error", otherwise it see only the last one. make sure you have built the server with at least PERL_STACKED_HANDLERS=1 or EVERYTHING=1. if

Re: Newbie: Tough times with sfio

1999-12-14 Thread Doug MacEachern
On Sun, 5 Dec 1999, hamid khoshnevis wrote: Hello, I am a newbie modperl'er and I am tyring to get system calls to return data to modperl (via stdout). Based on what I have read, sfio need to be linked in. Has anyone successfully done so and does stdout gets directed properly. you can

Re: simple xml parsing within html

1999-12-14 Thread Doug MacEachern
On Thu, 9 Dec 1999, G.W. Haywood wrote: any suggestions on making HTML::Parser work faster Performance is a real issue in mod_perl systems, so I've put some work into this. Maybe it will spawn a thread. Here are a couple of suggestions for speeding up HTML::Parser. Apparently the

Re: Unloading a library

1999-12-14 Thread Doug MacEachern
On Tue, 7 Dec 1999, Matt Sergeant wrote: How can I completely unload a library and all memory associated with it, and unload any dso's connected with that library? For example, say I use XML::Parser in a Perl section - I don't want that hanging around - it's a big library, so I'd like to

Re: PerlFreshRestart and %INC

1999-12-14 Thread Doug MacEachern
On Fri, 3 Dec 1999, Tim Bunce wrote: ... But is that _really_ what PerlFreshRestart does? I thought it destroyed the entire perl interpreter before then recreating one from scratch? this is the way PerlFreshRestart works at the moment. the original implementation did destroy the interpreter

Re: Apache::StatINC problem with use base

1999-12-14 Thread Doug MacEachern
On Sun, 5 Dec 1999, Autarch wrote: I encountered a problem using Apache::StatINC with modules that have the directive: use base qw( SomeClass ); The error I got was the following: [Mon Dec 6 07:35:47 1999] [error] Inherited %FIELDS can't override existing %FIELDS at

Re: Name: overview

1999-12-14 Thread Doug MacEachern
On Sat, 4 Dec 1999, Victor Zamouline wrote: Let me overview the propositions that have been made: 1) Eagle, proposed by Ged Haywood. Copyrighted by O'Reilly, but it looks like this problem can be solved. 2) Hedgehog, proposed by Stas Bekman. 3) Oyster, proposed by Randy Harmon 4)

Re: Book: guestbook.cgi

1999-12-14 Thread Doug MacEachern
On Sun, 12 Dec 1999, Michael Dearman wrote: I've copied example 4-15 and multi-checked it, for the past couple of days. Finally used a copy of the example obtained from the book site. But still have problems. modperl.com has the book source tarball, including a newer version of the guestbook

Re: @INC and make test

1999-12-14 Thread Doug MacEachern
looks like the httpd you are running does not have Apache::Util linked in. EVERYTHING=1 should take care of that, which you can see using nm: % nm ../apache-1.3/src/httpd | grep Util 0809b800 T XS_Apache__Util_escape_html 0809b750 T XS_Apache__Util_escape_uri 0809b8a0 T XS_Apache__Util_ht_time

Re: Hanging processes

1999-12-14 Thread Doug MacEachern
On Fri, 10 Dec 1999, Tony Demark wrote: I am having a problem with hanging httpd processes. I have done some AV searches as well as investigated the list archives and did not find any conclusive answer to this problem. If I missed it, can someone point me in the right direction? If any

Re: silent failure when I try to use PerlRequire in httpd.conf

1999-12-14 Thread Doug MacEachern
#1 0x403da306 in ?? () from /etc/httpd/modules/libperl.so broken record mod_perl+dso is not a stable mix, try linking mod_perl static /broken record

Re: Hanging processes

1999-12-14 Thread Doug MacEachern
On Tue, 14 Dec 1999, Tony Demark wrote: Doug, Tried what you suggest, but with seemingly disappointing results. (below) The hangs seem to come _after_ the logging phase - the heap just keep growing and the process takes up all available CPU, but it doesn't seem to be doing anything!

Re: troubleshooting seg fault/child exit

1999-12-14 Thread Doug MacEachern
[Tue Dec 14 15:44:22 1999] [notice] child pid 13243 exit signal Segmentation fault (11) -- ... If someone could please point me in the right direction or FAQ, I, and my sanity, would be most happy. there are quite a few tips on debugging core dumps posted between last night

<    3   4   5   6   7   8   9   >