Periodic random script failures - Need pointers

2008-03-02 Thread Manoj Bist
Hi, I need help in figuring out why my mod perl registry script fails randomly/periodicall on 'https'. I am using modperl2 on ubuntu-dapper (libapache2-mod-perl2 2.0.2-2.3ubuntu1). The registry script is used to login over https. The script periodically/randomly gives internal error because in the

Re: Finding memory leaks

2007-10-24 Thread Manoj Bist
The following always works for me: Run apache2(pre fork) with '-X' option under valgrind: In my system it looks something like this: valgrind --leak-check=full /usr/sbin/apache2 -X If you are using any 'XS' based perl modules, it would show memory leaks/errors, if any in any of the loaded shar

Re: monitoring server and which ports they are connected to.

2007-10-02 Thread Manoj Bist
Try 'sudo lsof -i:443'. This is what I get on my system. sudo lsof -i:443 COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME apache2 14550 root5u IPv6 2251478 TCP *:https (LISTEN) apache2 14589 www-data5u IPv6 2251478 TCP *:https (LISTEN) apache2 26533 www-data

Re: load large data

2007-09-25 Thread Manoj Bist
You can use regular package inheritance(@ISA) support in perl to extend MyModule and created YourModule, where you can add any extra methods/override existing methods. On 9/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Thank you. > Sorry that module of Mymodule is a public module from CPAN

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

2007-09-04 Thread Manoj Bist
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. If you suspect it to be a memory corruption issue you can try running apache u

Re: mod_perl2 compiling error

2007-08-22 Thread Manoj Bist
me and help. > > Regards > Jon > > > Þann 8/22/2007, skrifaði "Manoj Bist" <[EMAIL PROTECTED]>: > > >In general to create a shared object the constituent object files > >should be PICable. Look for Makefile(s) which compile the individual > >source fil

Re: mod_perl2 compiling error

2007-08-22 Thread Manoj Bist
In general to create a shared object the constituent object files should be PICable. Look for Makefile(s) which compile the individual source files. It would have a variable like 'CFLAGS'. Adding '-fPIC' to it should take care of it. On 8/21/07, jónJósef Bjarnason <[EMAIL PROTECTED]> wrote: > Wh

Re: Special characters

2007-08-21 Thread Manoj Bist
You need to know the encoding of the characters you are using in perl and handle them accordingly. The following link should have sufficient information to help you trouble shoot this. http://search.cpan.org/~jhi/perl-5.8.0/pod/perluniintro.pod On 8/21/07, Dan King <[EMAIL PROTECTED]> wrote: > >

Re: How to display images ?-Not Working

2007-08-21 Thread Manoj Bist
Hi Rick, Please use Text::Template for generating the html you send to the client. As long as you keep appending the html string to $OUT, it should work under mod_perl2.0. http://search.cpan.org/~mjd/Text-Template-1.44/lib/Text/Template.pm Thanks, Manoj. On 8/21/07, RGKärcher <[EMAIL PROTECTE

Re: Problem with IPC:RUN on Windows

2007-08-17 Thread Manoj Bist
My understanding is that a perl module that manipulates stdout is not expected to work under mod_perl. IPC::Run manipulates stdout to make different processes connected by pipes work. You can also go through the following guidelines for porting your scripts to mod_perl. http://perl.apache.org/do

modperl and fprintf(stdout,...)

2007-08-16 Thread Manoj Bist
Hi, I would really appreciate if someone could answer the following question regarding modperl and writing to stdout for me: I have a perl binding for a C library which generates binary(audio/video) data. To push this binary data over an HTTP response, fprintf(stdout,...) does not work in contex

Re: Scripts works under CGI but not under mod_perl (and thread stack size)

2007-08-16 Thread Manoj Bist
linker and objcopy options I am able to take care of the problem. On 8/14/07, Perrin Harkins <[EMAIL PROTECTED]> wrote: > > On 8/14/07, Manoj Bist <[EMAIL PROTECTED]> wrote: > > Is it possible to change the stack size in mod_perl(Similar to ulimit -s > > unlimited etc.)?

Re: Scripts works under CGI but not under mod_perl (and thread stack size)

2007-08-14 Thread Manoj Bist
e not been able to find out if that is possible in apache2. 0. On 8/14/07, Perrin Harkins <[EMAIL PROTECTED]> wrote: > > On 8/14/07, Manoj Bist <[EMAIL PROTECTED]> wrote: > > Is it possible to change the stack size in mod_perl(Similar to ulimit -s > > unlimited etc.)

Re: Scripts works under CGI but not under mod_perl (and thread stack size)

2007-08-14 Thread Manoj Bist
Is it possible to change the stack size in mod_perl(Similar to ulimit -s unlimited etc.)? Thanks, Manoj. On 8/13/07, Manoj Bist <[EMAIL PROTECTED]> wrote: > > Hi Perrin, > > Is there some recommended way to detect if STDOUT is being manipulated? > This is what I am

Re: Scripts works under CGI but not under mod_perl

2007-08-13 Thread Manoj Bist
with the server. Is there some way to debug apache/mod_perl in the debugger? Thanks a lot, Manoj. On 8/13/07, Perrin Harkins <[EMAIL PROTECTED]> wrote: > > On 8/13/07, Manoj Bist <[EMAIL PROTECTED]> wrote: > > Thanks for the response. The C library is a third party libr

Re: Scripts works under CGI but not under mod_perl

2007-08-13 Thread Manoj Bist
Registry; 12 use Apache2::Const; 13 use CGI qw(-compile :all); 14 use CGI::Carp (); 15 1; - Manoj. On 8/13/07, Perrin Harkins <[EMAIL PROTECTED]> wrote: > > On 8/13/07, Manoj Bist <[EMAIL PROTECTED]> wrote: > > I created a perl binding for a third party "

Scripts works under CGI but not under mod_perl

2007-08-12 Thread Manoj Bist
Hi, I created a perl binding for a third party "C "library using swig. This works fine under CGI but consistently fails under mod_perl. Is there a known set of calls(mulithreading etc.) that is not expected to work under mod_perl? I have gone through almost all the mod_perl caveats that I could g