Perl 5.8.7, Embperl 2.2.0 Segmentation Faults

2006-06-25 Thread Edwin S. Ramirez
Hello, I am having problems with Embperl 2.2.0 under SuSe 10. The system is an x86_64, running Linux 2.6.13, Apache 1.3.34 and mod_perl 1.29. I am running a very simple page which results in a segmentation fault, but most of the time the page returns successfully. From the error_log: [Sun Ju

RE: Segmentation faults in embperl2

2005-09-20 Thread Gerald Richter
> > Gerald Richter wrote: > >>Version of embperl is 2.0.0, mod_perl 2.0.1, apache 2.0.54 (prefork > >>mpm only), perl 5.8.4. > >> > >>Any ideas ? > >> > > > > > > How does your httpd.conf look like? > > > > Did you load the C part with LoadModule and the Perl part (with > > PerlModule or use)

Re: Segmentation faults in embperl2

2005-09-20 Thread Alvaro Lopes
Gerald Richter wrote: >>Version of embperl is 2.0.0, mod_perl 2.0.1, apache 2.0.54 >>(prefork mpm only), perl 5.8.4. >> >>Any ideas ? >> > > > How does your httpd.conf look like? > > Did you load the C part with LoadModule and the Perl part (with PerlModule > or use) both on startup? using Per

RE: Segmentation faults in embperl2

2005-09-20 Thread Gerald Richter
> > Version of embperl is 2.0.0, mod_perl 2.0.1, apache 2.0.54 > (prefork mpm only), perl 5.8.4. > > Any ideas ? > How does your httpd.conf look like? Did you load the C part with LoadModule and the Perl part (with PerlModule or use) both on startup? Gerald

Re: Segmentation faults in embperl2

2005-09-20 Thread Otto Lang
Am 20.09.2005 um 11:58 schrieb Alvaro Lopes: Hi list I'm having some technical problems with embperl. When apache2 handles a second request, the child dies with segmentation fault. The first request is processed fine. I was able to do a backtrace using gdb and httpd -X (the signal handler s

Segmentation faults in embperl2

2005-09-20 Thread Alvaro Lopes
Hi list I'm having some technical problems with embperl. When apache2 handles a second request, the child dies with segmentation fault. The first request is processed fine. I was able to do a backtrace using gdb and httpd -X (the signal handler shown in #3 was installed by me to handle SIGSEGV):

RE: Segmentation faults...

2003-08-11 Thread Justin Harrison
ent: August 10, 2003 2:33 PM > To: Justin Harrison; [EMAIL PROTECTED] > Subject: Re: Segmentation faults... > > > > > What is the best way to debug segmentation faults? Randomly > all of my > > apache children are segfaulting. I am fairly certain this is due to >

Re: Segmentation faults...

2003-08-10 Thread Gerald Richter
> > What is the best way to debug segmentation faults? Randomly all of my > apache children are segfaulting. I am fairly certain this is due to some > Embperl code being ran, but I don't know where to look, or how to start > looking... > First of all compile Embperl with

Re: Segmentation faults...

2003-08-05 Thread Luiz Fernando
Harrison wrote: > Hi, > > What is the best way to debug segmentation faults? Randomly all of my apache > children are segfaulting. I am fairly certain this is due to some Embperl > code being ran, but I don't know where to look, or how to start lo

Segmentation faults...

2003-08-04 Thread Justin Harrison
Hi, What is the best way to debug segmentation faults? Randomly all of my apache children are segfaulting. I am fairly certain this is due to some Embperl code being ran, but I don't know where to look, or how to start looking... J

Re: Embperl-2.0b8 httpd Segmentation Faults. Solved...Sorta

2002-08-27 Thread Gerald Richter
> > Yes it does. I'm certain it does. If make test is ok, we need a stackbacktrace. Compile Embperl with debug support perl Makefile.PL debug make install then start gdb gdb /path/to/httpd set args -f /path/to/your/httpd.conf -X r -> Now request the page that segfaults, after gdb reports the

Re: Embperl-2.0b8 httpd Segmentation Faults. Solved...Sorta

2002-08-27 Thread Jarrod Stenberg
--- Gerald Richter <[EMAIL PROTECTED]> wrote: > > > > EMBPERL_SESSION_MODE 2 > > > > Was the killer argument. With it commented out, > all > > works fine. So the problem must lie with > > Apache::SessionX > > Does make test work correctly? If not we should > solve this first, because > make

Re: Embperl-2.0b8 httpd Segmentation Faults. Unclosed tags?

2002-08-27 Thread Jarrod Stenberg
> (you haven't said what DBD driver you're using) DBD::mysql I'll try tuning the database cleanup. Thanks for the ideas. -Jarrod __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -

Re: Embperl-2.0b8 httpd Segmentation Faults. Unclosed tags?

2002-08-26 Thread Angus Lees
At Thu, 22 Aug 2002 07:03:40 -0700 (PDT), Jarrod Stenberg wrote: > Does not have any problems. This file uses this: > [$ while ($h = $sth->fetchrow_hashref()) $] > [$ endwhile $] > > But call it from the browser, and it kills the httpd > instance. (you haven't said what DBD driver you're using)

Re: Embperl-2.0b8 httpd Segmentation Faults. Solved...Sorta

2002-08-26 Thread Gerald Richter
> EMBPERL_SESSION_MODE 2 > > Was the killer argument. With it commented out, all > works fine. So the problem must lie with > Apache::SessionX > Does make test work correctly? If not we should solve this first, because make test should test all this things and show us what goes wrong... Gera

Re: Embperl-2.0b8 httpd Segmentation Faults. Unclosed tags?

2002-08-22 Thread Jarrod Stenberg
> PerlModule Embperl > PerlModule DBI > PerlModule DBD::whatever_you_use > > Does this change anything? If not would be nice to > get a stackbacktrace from > Apache. Start Apache with -X option to debug. I had to add: PerModule DBD::mysql Tried it, and it still faulted. Starting apache with

Re: Embperl-2.0b8 httpd Segmentation Faults. Unclosed tags?

2002-08-22 Thread Gerald Richter - ecos gmbh
> embpexec.pl drawCompressed.htm "yr=2002&mo=08" > > Does not have any problems. This file uses this: > [$ while ($h = $sth->fetchrow_hashref()) $] > [$ endwhile $] > > But call it from the browser, and it kills the httpd > instance. > Please make sure you have loaded DBI & Embperl at the serv

Re: Embperl-2.0b8 httpd Segmentation Faults. Unclosed tags?

2002-08-22 Thread Jarrod Stenberg
embpexec.pl drawCompressed.htm "yr=2002&mo=08" Does not have any problems. This file uses this: [$ while ($h = $sth->fetchrow_hashref()) $] [$ endwhile $] But call it from the browser, and it kills the httpd instance. FTR, both use the same perl. I have check and double-checked this. So they

Re: Embperl-2.0b8 httpd Segmentation Faults. Unclosed tags?

2002-08-22 Thread Jarrod Stenberg
> > Mmmh, Embperl 2 should generate the same Perl code > for both of these > examples. Maybe it's related to the "do stuff" part? > If you not already done > so please make that part very simple, for example > just a $i++ . Does it > still crash? It does not matter what I put in the block. For

Re: Embperl-2.0b8 httpd Segmentation Faults. Unclosed tags?

2002-08-21 Thread Gerald Richter
> So, of course I should move to XHTML as a good > practice, but is the unclosed tag thing something that > could cause Embperl to go nuts in 2.0b8? > Embperl doesn't care about if you close your tags or not. The only exception are table tags that are used for build dynamic tables, but it will no

Re: Embperl-2.0b8 httpd Segmentation Faults. Unclosed tags? Ignore previous.

2002-08-21 Thread Jarrod Stenberg
More info. I discovered that the segfaults are related to DBI. Given: # DBI is already loaded. $dbh = ... $sth = $dbh->prepare(...); $sth->execute(); And the above is a successful query leaving me a handle with stuff to do. If I do this: while ($h = $sth->fetchrow_hashref()) { #

Re: Embperl-2.0b8 httpd Segmentation Faults. Unclosed tags?

2002-08-21 Thread Jarrod Stenberg
More info. I discovered that the segfaults are related to DBI. Given: If I do this: while ($h = $sth->fetchrow_hashref()) { #do stuff } within the same block, it works fine. But, if I do this: [$ while ($h = $sth->fetchrow_hashref()) $] __

Embperl-2.0b8 httpd Segmentation Faults. Unclosed tags?

2002-08-21 Thread Jarrod Stenberg
I'm trying to get to the bottom of trouble with a web application that runs out of control and crashes the apache children (Apache/1.3.26 on 4.6.2-RELEASE with perl 5.6.1 [ all of my perl modules have been rebuilt with 5.6.1 which seems to be a good idea on FreeBSD ]). Not everything crashes, but