Re: seg faults when running modperl and GD::Graph

2007-09-05 Thread William A. Rowe, Jr.
Manoj Bist wrote: > One option would to be run apache under single threaded mode(option > -X) under gdb and see where it is crashing. Once you identify the > .so where it is crashing, you can try reproducing the crash outside > apache context. See also http://httpd.apache.org/dev/debugging.html

Error running mod_perl on Apache within FreeBSD jail

2007-09-05 Thread Briggs, Chris
I am running Apache 1.3 in a FreeBSD jail which works as expected. Next I added in mod_perl 1.0 by installing, adding the entry to the httpd.conf file to load dynamically and copy across the libraries to the jail. I also copied the usr/bin/perl file and the directories under perl5 to the jail,

[mp1] Eval in Mason causes segfault

2007-09-05 Thread Robert Landrum
I've run into a strange error recently and wanted to see if anyone else had come across this. Basically, I have have a set of database handles created as globals in the HTML::Mason::Commands namespace. To use these, we assign them to an object. i.e.: my $obj = new Foo; $obj->{my_dbh} = $my_

RE: seg faults when running modperl and GD::Graph

2007-09-05 Thread Rafael Caceres
Matt, I had the problem with PHP4, but you can do a quick test commenting the LoadModule php5_module line on your httpd.conf file and testing before going full course. If that prevents the crash, then my guess is you'll have to build PHP5 yourself. Rafael On Tue, 2007-09-04 at 14:06 -0700, Matt Wi

Basic Auth

2007-09-05 Thread Aaron Dalton
I have done some Googling, but can't seem to find an answer to what appears to me to be a pretty straightforward question. I am running Apache 2.2.4 with SSL and mod_perl. I have a virtual host protected by Basic Auth. That host is managed by a home-rolled, mod_perl handler. I want my handler t

Re: Basic Auth

2007-09-05 Thread Michael Peters
Aaron Dalton wrote: > I have done some Googling, but can't seem to find an answer to what > appears to me to be a pretty straightforward question. I am running > Apache 2.2.4 with SSL and mod_perl. I have a virtual host protected by > Basic Auth. That host is managed by a home-rolled, mod_perl h

Re: Basic Auth

2007-09-05 Thread Aaron Dalton
Michael Peters wrote: > Aaron Dalton wrote: >> I have done some Googling, but can't seem to find an answer to what >> appears to me to be a pretty straightforward question. I am running >> Apache 2.2.4 with SSL and mod_perl. I have a virtual host protected by >> Basic Auth. That host is managed

RE: seg faults when running modperl and GD::Graph

2007-09-05 Thread Matt Williamson
So I got apache to run under gdb, but I still am somewhat non-the-wiser. It appears to happen the second time that the handler is used to process the request, so I guess one workaround would be to call my script as a plain cgi. I'm not really how to interpret the gdb backtrace: Program received

Re: seg faults when running modperl and GD::Graph

2007-09-05 Thread William A. Rowe, Jr.
Matt Williamson wrote: > So I got apache to run under gdb, but I still am somewhat non-the-wiser. > It appears to happen the second time that the handler is used to process > the request, so I guess one workaround would be to call my script as a > plain cgi. FYI compiling with -g will often give

PDF creation tools

2007-09-05 Thread Bill Whillers
Hello, I'm looking for a fast and simple module for creating simple PDF format documents from mostly text data and possibly some small images (i.e. icons, etc.). Lot's of tools available on either CPAN or Source Forge, but it's been a while since I've looked at these and I'm guessing 1 or 2 ha

Re: PDF creation tools

2007-09-05 Thread Jay Scherrer
A very simple that I have used is PDF::Create. I don't know if they have done any upgrading. However, it had enabled me to create pdf files for tax purposes on the fly very easy. Jay Scherrer Scherrer Company Real Estate and Tax strategies 206.701.7952 Bill Whillers wrote: Hello, I'm looking

global vs multi-process

2007-09-05 Thread David Willams
Hello modperl, I'm coming to grips with multi-process vs. multi-threaded limitations (and benefits!). For example, during start up, for sharing read-only data among child processes, we do something like: %CACHE = get_data( ); Child processes cannot update %CACHE, so what other apache methods or

Re: global vs multi-process

2007-09-05 Thread Perrin Harkins
On 9/6/07, David Willams <[EMAIL PROTECTED]> wrote: > Child processes cannot update %CACHE, so what other apache methods or > architectural strategies exist (creative, elaborate, etc) or have been used > to update a similar hash? You'll find many discussions about sharing data in the list archives

Re: global vs multi-process

2007-09-05 Thread David Willams
Thanks Perrin - I have a translator-type application where the total store size of %CACHE key=values is in the low-millions. When the translation happens on a random, ad hoc string of sometimes thousands of "words", the process simply does something like this: Untranslated: hfj kei hty ... jan

Re: global vs multi-process

2007-09-05 Thread Perrin Harkins
On 9/6/07, David Willams <[EMAIL PROTECTED]> wrote: > When the translation happens on a random, ad hoc string of sometimes > thousands of "words", the process simply does something like this: > > Untranslated: > hfj kei hty ... jan oej wio > > Translated: > $CACHE{hfj} $CACHE{kei} $CACHE{hty}

Re: global vs multi-process

2007-09-05 Thread David Willams
Perrin - Thank you for your excellent, detailed response and experience. I did not consider your proxy scenario and I will probably revisit both it and your Berkley scenario a bit later. Obviously, I'm not involved with apache internals, but are you saying it's architecturally impossible for apac