ithread+event mpm tips for a segfault free ride

2023-11-26 Thread Joe Schaefer
efficiency boosts in your modperl handlers with sealed.pm, (but avoid reentrancy/recursion for those subs, or you may segfault). -- Joe Schaefer, Ph.D. <https://sunstarsys.com/orion/features> Orion - The Enterprise Jamstack Wiki <https://sunstarsys.com/orion/features> 954.253.3732

Re: New segfault with 2.4.20 with mod_perl

2016-05-31 Thread William A Rowe Jr
On Tue, May 31, 2016 at 7:35 AM, William A Rowe Jr wrote: > On May 29, 2016 01:02, "Jie Gao" wrote: > > > > Hi All > > > > I wonder if anybody is looking at this issue. At the moment, the build > cores even at the end of generating a Makefile. > > > >

Re: New segfault with 2.4.20 with mod_perl

2016-05-31 Thread William A Rowe Jr
On May 29, 2016 01:02, "Jie Gao" wrote: > > Hi All > > I wonder if anybody is looking at this issue. At the moment, the build cores even at the end of generating a Makefile. > > If not, I would like to get my hands dirty in an attmpt to get the ball rolling. Any help on how

Re: New segfault with 2.4.20 with mod_perl

2016-05-29 Thread Jie Gao
Jr <wr...@rowe-clan.net> > Subject: Re: New segfault with 2.4.20 with mod_perl > User-Agent: Mutt/1.5.21 (2010-09-15) > > Hi All > > I wonder if anybody is looking at this issue. At the moment, the build cores > even at the end of generating a Makefile. > > If no

Re: New segfault with 2.4.20 with mod_perl

2016-05-29 Thread Jie Gao
W. Rowe Jr would be much appreciated. Regards, Jie * William A Rowe Jr <wr...@rowe-clan.net> wrote: > Date: Thu, 19 May 2016 11:23:33 -0500 > From: William A Rowe Jr <wr...@rowe-clan.net> > To: httpd <d...@httpd.apache.org>, modperl@perl.apache.org > Subject: Re

Re: New segfault with 2.4.20 with mod_perl

2016-05-19 Thread William A Rowe Jr
Re-sending to include the correct perl.a.o dev list. On Thu, Apr 14, 2016 at 1:25 PM, William A Rowe Jr wrote: > The defect appears to be in t/protocol/TestProtocol/pseudo_http.pm... > > First, the handler is registered using > > PerlProcessConnectionHandler

Re: $[ causes segfault with mod_perl 2.0.9, apache 2.4.10

2015-05-21 Thread Randolf Richardson
Hello, simply adding Perl $[ /Perl to /etc/apache2/apache2.conf (or PerlPostConfigRequire a file containing $[) causes apache to segfault (trace below). Strangely this happens _only_ if mod_php is also loaded! Is PHP acting like a Poltergeist? (Sorry, I couldn't resist

RE: mod_perl always segfault on thread creation

2012-08-24 Thread Doug Hunt
Subject: Re: mod_perl always segfault on thread creation -=| hack bear, 22.08.2012 16:16:33 -0700 |=- I'm doing a dynamic build (the default setting I believe.) here are the ldd results (that's how we can tell, right?) To me this seems like a static build. Yes, it links dynamicly to system

RE: mod_perl always segfault on thread creation

2012-08-24 Thread hack bear
is there any existing RPM for RHEL that is dynamic build already? Date: Thu, 23 Aug 2012 09:17:48 +0300 From: d...@debian.org To: modperl@perl.apache.org Subject: Re: mod_perl always segfault on thread creation -=| hack bear, 22.08.2012 16:16:33 -0700 |=- I'm doing a dynamic build

RE: mod_perl always segfault on thread creation

2012-08-24 Thread Doug Hunt
='-shared -O2 -L/usr/local/lib -fstack-protector' And BTW is there any existing RPM for RHEL that is dynamic build already? Date: Thu, 23 Aug 2012 09:17:48 +0300 From: d...@debian.org To: modperl@perl.apache.org Subject: Re: mod_perl always segfault on thread creation

Re: mod_perl always segfault on thread creation

2012-08-23 Thread Damyan Ivanov
-=| hack bear, 22.08.2012 16:16:33 -0700 |=- I'm doing a dynamic build (the default setting I believe.) here are the ldd results (that's how we can tell, right?) To me this seems like a static build. Yes, it links dynamicly to system libraries, but the perl library is staticly linked.

RE: mod_perl always segfault on thread creation

2012-08-22 Thread hack bear
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -m64 -mtune=nocona', Then I install the perl build, build mod_perl and install. Verify I'm using the new versions in apache. But still the script produces segfault consistently. Did people ever get threads

RE: mod_perl always segfault on thread creation

2012-08-22 Thread Doug Hunt
-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -m64 -mtune=nocona', Then I install the perl build, build mod_perl and install. Verify I'm using the new versions in apache. But still the script produces segfault consistently. Did people ever get

RE: mod_perl always segfault on thread creation

2012-08-22 Thread hack bear
(0x7fbe6de0e000) /lib64/ld-linux-x86-64.so.2 (0x0039be80) libfreebl3.so = /lib64/libfreebl3.so (0x7fbe6dbac000) Date: Wed, 22 Aug 2012 17:11:32 -0600 From: dh...@ucar.edu To: hackingb...@hotmail.com CC: modperl@perl.apache.org Subject: RE: mod_perl always segfault on thread creation

RE: mod_perl always segfault on thread creation

2012-08-21 Thread Rommel Sharma
: Tuesday, August 21, 2012 2:06 AM To: modperl@perl.apache.org Subject: mod_perl always segfault on thread creation hi, This is totally frustrating. My mod_perl script always causes segmentation fault when it tries to create a thread. I searched the Web and this forum, but there is still

Re: [mp2] mod_perl 2.0.7 Segfault When Loading Certain Perl Module

2012-08-21 Thread Doug Hunt
successfully the first time by running strace. The segfault can be traced to one line in Carp.pm: % # Transform an argument to a function into a string. sub format_arg { ... # The following handling of control chars

mod_perl always segfault on thread creation

2012-08-20 Thread hack bear
hi, This is totally frustrating. My mod_perl script always causes segmentation fault when it tries to create a thread. I searched the Web and this forum, but there is still no definitive answers. My perl and mod_perl are of pretty recent versions and I check for the inclusion of useithreads

Re: [mp2] mod_perl 2.0.7 Segfault When Loading Certain Perl Module

2012-08-20 Thread Doug Hunt
) We can tell that apache starts up perl successfully the first time by running strace. The segfault can be traced to one line in Carp.pm: % # Transform an argument to a function into a string. sub format_arg

Re: [mp2] mod_perl 2.0.7 Segfault When Loading Certain Perl Module

2012-08-14 Thread Fred Moyer
httpd.conf which worked previously. As far as I can tell, the segfault seems to be triggered while trying to load any Perl module using either PerlModule directive or in Perl block in httpd.conf that directly or indirectly use Carp, or even just try to load Carp itself. Strace shows

Re: [mp2] mod_perl 2.0.7 Segfault When Loading Certain Perl Module

2012-08-14 Thread Jason Lin
Hello Fred, Thank you for pointing out the upcoming release. Unfortunately, after checking out and installing the latest version from SVN, I'm still seeing the same issue. Apache still segfault while trying to load any Perl module that directly or indirectly use Carp. According to SVN info

[mp2] mod_perl 2.0.7 Segfault When Loading Certain Perl Module

2012-08-13 Thread Jason Lin
httpd.conf which worked previously. As far as I can tell, the segfault seems to be triggered while trying to load any Perl module using either PerlModule directive or in Perl block in httpd.conf that directly or indirectly use Carp, or even just try to load Carp itself. Strace shows

Re: [mp2] [BUG] Segfault with Test::More - duping STDOUT?

2011-12-07 Thread gAzZaLi
$second_num ) ); } 1; ### End Broken.pm ### Another option is to 'use Test::More' explicitly: (Do note that I have managed to segfault this) use Apache::Test qw(:withtestmore); use Test::More; And finally, if it works for you, to use Test.pm and not Test::More with just use

Re: [mp2] [BUG] Segfault with Test::More - duping STDOUT?

2011-12-07 Thread Torsten Förtsch
On Wednesday, 07 December 2011 02:37:19 gAzZaLi wrote: Another option is to 'use Test::More' explicitly: (Do note that I have managed to segfault this) use Apache::Test qw(:withtestmore); use Test::More; As of Apache::Test 1.35++ this is wrong. Sorry about the interface change. The point

Re: [mp2] [BUG] Segfault with Test::More - duping STDOUT?

2011-12-07 Thread Torsten Förtsch
On Tuesday, 06 December 2011 17:40:14 Merlyn Kline wrote: To REPRODUCE the problem, you need a Broken.pm module like this: package Broken; my $Testout; create(); sub create { # Insert {# at the start of this line and the segfault goes away open( $Testout, STDOUT ) or die Can't

[mp2] [BUG] Segfault with Test::More - duping STDOUT?

2011-12-06 Thread Merlyn Kline
discovered that simply useing Test::More in a mod_perl script causes my apache to segfault. I originally reported this to the author of Test::More (see https://rt.cpan.org/Public/Bug/Display.html?id=69687) but now believe the problem to have wider scope. By progressively removing code from my

mod_perl SegFault in RequestRec::print after sending 32kB of data

2011-11-15 Thread Laurent Simonneau
-- Start Bug Report 8-- 1. Problem Description: Apache segfault when using mod_perl. Seems to occures when a process send more than 32kB of data. 2. Used Components and their Configuration: *** mod_perl version 2.05 *** using /tmp/libapache2-mod-perl2-2.0.5/lib

Re: Bug report: #0 file_dup (new_file=0xbfd296d4, old_file=0x0, p=0x80a70a8, which_dup=1) at file_io/unix/filedup.c:59 segfault

2011-05-05 Thread A. Przygienda
Same problem on 2.0.5 and gentoo 2010 That's how I run it r -D SSL -D SSL_DEFAULT_VHOST -D DEFAULT_VHOST -D INFO -D DAV -D DAV_FS -D CACHE -D MEM_CACHE -D PHP5 -D PERL_VHOST -D PYTHON -D STATUS -D PROXY -D PROXY_HTML -d /usr/lib/apache2 -f /etc/apache2/httpd.conf -E

Segfault in mod_perl 1 during global destruction due to Apache::Table refcount issues

2011-03-24 Thread demerphq
We recently ran into the problem documented here: http://www.mail-archive.com/modperl@perl.apache.org/msg00947.html http://tech.groups.yahoo.com/group/modperl/messages/55410?threaded=1m=evar=1tidx=1 We ended up finding the offending global storage that was holding on the Apache::Table

Bug report: #0 file_dup (new_file=0xbfd296d4, old_file=0x0, p=0x80a70a8, which_dup=1) at file_io/unix/filedup.c:59 segfault

2011-03-19 Thread A. Przygienda
-8-- Start Bug Report 8-- 1. Problem Description: Crash gentoo apache2 start. core dump below, think tries to dup a 0 file pointer [DESCRIBE THE PROBLEM HERE] 2. Used Components and their Configuration: *** mod_perl version 2.04 *** using

Re: Bug report: #0 file_dup (new_file=0xbfd296d4, old_file=0x0, p=0x80a70a8, which_dup=1) at file_io/unix/filedup.c:59 segfault

2011-03-19 Thread Fred Moyer
Have you tried 2.0.5? On Sat, Mar 19, 2011 at 9:15 AM, A. Przygienda p...@mail.zeta2.ch wrote: -8-- Start Bug Report 8-- 1. Problem Description:  Crash gentoo apache2 start. core dump below, think tries to dup  a 0 file pointer  [DESCRIBE THE

Re: Bug report: #0 file_dup (new_file=0xbfd296d4, old_file=0x0, p=0x80a70a8, which_dup=1) at file_io/unix/filedup.c:59 segfault

2011-03-19 Thread A. Przygienda
On 03/19/2011 06:11 PM, Fred Moyer wrote: Have you tried 2.0.5? nope, was on gentoo 2008 which I tried to keep but looks like I must upgrade so I check out 2011 distro now and see whether it persists -- tony On Sat, Mar 19, 2011 at 9:15 AM, A. Przygienda p...@mail.zeta2.ch wrote:

Re: DBI 1.61{1,6} + DBD::mysql 4.01{6,8} = segfault on Ubuntu 10.10 amd64? (reprise)

2011-02-08 Thread Perrin Harkins
version. There's some stuff about recent fixes for segfaults in the changes file. Next thing I'm going to try is to selectively remove bits from my startup.pl to pinpoint areas of the code that might lead to this segfault. Not a bad idea, but you also could remove Class::XSAccessor completely

Re: DBI 1.61{1,6} + DBD::mysql 4.01{6,8} = segfault on Ubuntu 10.10 amd64? (reprise)

2011-02-08 Thread Cosimo Streppone
. The first thing I'd suggest is making sure you have the latest version. There's some stuff about recent fixes for segfaults in the changes file. Confirmed. Class::XSAccessor 0.11 (latest CPAN version atm) fixes my segfault problems. Thanks Perrin, -- Cosimo

DBI 1.61{1,6} + DBD::mysql 4.01{6,8} = segfault on Ubuntu 10.10 amd64? (reprise)

2011-02-07 Thread Cosimo Streppone
Hi all, I'm still trying to track down this weird segfault problem on Apache startup. I had originally targetet dbi-users@ because it initially seemed to be DBI-related. Was trying to get some feedback, has anyone ever seen this? type of question. Now I have a stack backtrace, that might narrow

Re: DBI 1.61{1,6} + DBD::mysql 4.01{6,8} = segfault on Ubuntu 10.10 amd64? (reprise)

2011-02-07 Thread Michael Lackhoff
::XSAccessor through Class::Accessor::Grouped. That's the only use of Class::XSAccessor I could find in my perl directories. Next thing I'm going to try is to selectively remove bits from my startup.pl to pinpoint areas of the code that might lead to this segfault. In the meantime, does thing ring a bell

Re: [PATCH] END blocks may segfault

2010-07-02 Thread Alex Hunsaker
On Wed, Jun 30, 2010 at 02:49, Tim Bunce tim.bu...@pobox.com wrote: I suggest the code shift items off the main array, like perl does, but also push those items onto a new temp array. Find attached a patch that does the above (perhaps naively), passes a make test and fixes the reported

Re: [PATCH] END blocks may segfault

2010-07-01 Thread Alex Hunsaker
On Wed, Jun 30, 2010 at 16:37, Tim Bunce tim.bu...@pobox.com wrote: On Wed, Jun 30, 2010 at 09:24:42AM -0600, Alex Hunsaker wrote: On Wed, Jun 30, 2010 at 02:49, Tim Bunce tim.bu...@pobox.com wrote: I suggest the code shift items off the main array, like perl does, but also push those items

Re: [PATCH] END blocks may segfault

2010-06-30 Thread Tim Bunce
subs... But at least we wont segfault/crap out. Thoughts? I think getting rid of the segfault is a good thing. But if the main problem is issues with NYTProf, then it seems like this change won't solve the core problem of autogenerated null end blocks faulting. I'm don't fully

Re: [PATCH] END blocks may segfault

2010-06-30 Thread Alex Hunsaker
On Wed, Jun 30, 2010 at 02:49, Tim Bunce tim.bu...@pobox.com wrote: On Tue, Jun 29, 2010 at 09:50:00PM -0700, Fred Moyer wrote: I think getting rid of the segfault is a good thing.  But if the main problem is issues with NYTProf, then it seems like this change won't solve the core problem

Re: [PATCH] END blocks may segfault

2010-06-30 Thread Tim Bunce
On Wed, Jun 30, 2010 at 09:24:42AM -0600, Alex Hunsaker wrote: On Wed, Jun 30, 2010 at 02:49, Tim Bunce tim.bu...@pobox.com wrote: On Tue, Jun 29, 2010 at 09:50:00PM -0700, Fred Moyer wrote: I think getting rid of the segfault is a good thing.  But if the main problem is issues with NYTProf

Re: [PATCH] END blocks may segfault

2010-06-29 Thread Fred Moyer
breakage into deployments which use MP::RC Another option would be to copy/local() the array in modpler_perl_call_list.  Of course that still wont get it right because we wont run any newly defined subs... But at least we wont segfault/crap out. Thoughts? I think getting rid of the segfault

[PATCH] END blocks may segfault

2010-06-28 Thread Alex Hunsaker
in modpler_perl_call_list. Of course that still wont get it right because we wont run any newly defined subs... But at least we wont segfault/crap out. Thoughts? --- modperl_util.c.orig 2010-06-28 10:58:53.535686254 -0600 +++ modperl_util.c 2010-06-28 11:01:25.059112059 -0600 @@ -467,30 +467,12 @@ void

Segfault in Perl_av_undef

2009-05-07 Thread Brian Hirt
I just built up a new mod_perl1.30 with apache 1.3.41 and started seeing segfaults in my logs. I ended up tracking the problem down to http://svn.apache.org/viewvc?view=revrevision=555908 It looks like a fix was committed almost 2 years ago. So my questions are these. Is a 1.31 ever going

Re: Segfault in Perl_av_undef

2009-05-07 Thread Fred Moyer
On Thu, May 7, 2009 at 4:41 PM, Brian Hirt bh...@mobygames.com wrote: I just built up a new mod_perl1.30 with apache 1.3.41 and started seeing segfaults in my logs.   I ended up tracking the problem down to http://svn.apache.org/viewvc?view=revrevision=555908 It looks like a fix was committed

mod_perl2 + ModPerl::RegistryPrefork + Test::Builder = segfault

2008-09-04 Thread Berg, Eric
::RegistryPrefork causes it to segfault on a very regular basis. Here's the message I posted on CPAN Forum for Test::Simple: Recently, during the process of porting all my apache 1.3/mod_perl 1.x CGI's running under ModPerl::RegistryPrefork, I started running into regular segfaults. After a whole bunch

RE: mod_perl2 + ModPerl::RegistryPrefork + Test::Builder = segfault

2008-09-04 Thread Berg, Eric
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Perrin Harkins Sent: Thursday, September 04, 2008 6:36 PM To: Berg, Eric Cc: modperl@perl.apache.org Subject: Re: mod_perl2 + ModPerl::RegistryPrefork + Test::Builder = segfault On Thu, Sep 4, 2008 at 6:09 PM, Berg, Eric

Re: Lost connection to MySQL server during query (was Segfault when connecting during Apache startup)

2008-07-03 Thread Tobias Kremer
I don't know the details, but there is something about the way PerlModule works in mod_perl 1 that causes it to load the module again when apache restarts at startup (it runs yours conf file twice when you start, as documented). Using an explicit use() puts an entry in %INC and fixes the

Re: Lost connection to MySQL server during query (was Segfault when connecting during Apache startup)

2008-07-02 Thread Tobias Kremer
Quoting Perrin Harkins [EMAIL PROTECTED]: How are you loading this? With a PerlModule call? Can you try loading it from a Perl section like this? Perl use MyModule; /Perl Wow, it seems that this fixes the problem! At least with my minimal application. Here's the debug output which looks

Re: Lost connection to MySQL server during query (was Segfault when connecting during Apache startup)

2008-07-02 Thread Tobias Kremer
Quoting Tobias Kremer [EMAIL PROTECTED]: Quoting Perrin Harkins [EMAIL PROTECTED]: How are you loading this? With a PerlModule call? Can you try loading it from a Perl section like this? Perl use MyModule; /Perl Wow, it seems that this fixes the problem! Do you have any idea what

Re: Lost connection to MySQL server during query (was Segfault when connecting during Apache startup)

2008-07-02 Thread Perrin Harkins
On Wed, Jul 2, 2008 at 5:12 AM, Tobias Kremer [EMAIL PROTECTED] wrote: No more errors there either! :) Great! I don't know anything about the internals but to me the mod_perl source looks like PerlModule is using require instead of use to load modules. I guess that is making the difference?

Re: Lost connection to MySQL server during query (was Segfault when connecting during Apache startup)

2008-07-01 Thread Tobias Kremer
Quoting Perrin Harkins [EMAIL PROTECTED]: On a closer look, you're not. You are keeping around your $foo closure variable in handler(), as well as putting it in a global. It's not obvious why that causes this problem. If you want to determine whether Apache::DBI is malfunctioning for you in

Re: Lost connection to MySQL server during query (was Segfault when connecting during Apache startup)

2008-07-01 Thread Perrin Harkins
On Tue, Jul 1, 2008 at 3:42 AM, Tobias Kremer [EMAIL PROTECTED] wrote: Removing Apache::DBI makes the errors go away. Ok. First, check that you're on the latest version. Then, turn on the debug flag and see if it thinks it is reusing the startup connection or not. - Perrin

Re: Lost connection to MySQL server during query (was Segfault when connecting during Apache startup)

2008-07-01 Thread Tobias Kremer
Quoting Perrin Harkins [EMAIL PROTECTED]: Ok. First, check that you're on the latest version. Then, turn on the debug flag and see if it thinks it is reusing the startup connection or not. Yes, I'm using the latest 1.07 release. I already had the debug flag on and it's correctly telling me

Re: Lost connection to MySQL server during query (was Segfault when connecting during Apache startup)

2008-07-01 Thread Perrin Harkins
On Tue, Jul 1, 2008 at 9:56 AM, Tobias Kremer [EMAIL PROTECTED] wrote: Yes, I'm using the latest 1.07 release. I already had the debug flag on and it's correctly telling me that it's skipping connection during server startup. Yes, but what does it tell you on the first connection AFTER

Re: Lost connection to MySQL server during query (was Segfault when connecting during Apache startup)

2008-07-01 Thread Tobias Kremer
Quoting Perrin Harkins [EMAIL PROTECTED]: Yes, but what does it tell you on the first connection AFTER startup? It should say whether it's making a new connection or not. Here's the complete debug output which suggests that the connection during startup is reused for the first request. On

Re: Lost connection to MySQL server during query (was Segfault when connecting during Apache startup)

2008-07-01 Thread Perrin Harkins
On Tue, Jul 1, 2008 at 10:08 AM, Tobias Kremer [EMAIL PROTECTED] wrote: On server start: 20097 Apache::DBI skipping connection during server startup, read the docu !! 20097 Apache::DBI push PerlCleanupHandler 20097 Apache::DBI need ping: yes 20097 Apache::DBI new connect

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-30 Thread Perrin Harkins
On Mon, Jun 30, 2008 at 4:54 AM, Tobias Kremer [EMAIL PROTECTED] wrote: We never fork and I thought that Apache::DBI takes care of checking if a connection went stale by utilizing DBI's/DBD::mysql's ping() method? It does, but it can't stop you from doing things like putting a database handle

Re: Lost connection to MySQL server during query (was Segfault when connecting during Apache startup)

2008-06-30 Thread Tobias Kremer
Quoting Perrin Harkins [EMAIL PROTECTED]: On Mon, Jun 30, 2008 at 4:54 AM, Tobias Kremer [EMAIL PROTECTED] wrote: We never fork and I thought that Apache::DBI takes care of checking if a connection went stale by utilizing DBI's/DBD::mysql's ping() method? It does, but it can't stop you from

Re: Lost connection to MySQL server during query (was Segfault when connecting during Apache startup)

2008-06-30 Thread Perrin Harkins
On Mon, Jun 30, 2008 at 9:28 AM, Tobias Kremer [EMAIL PROTECTED] wrote: Ok, I narrowed it down to the database connection initiated during server startup. As soon as I remove it the errors vanish completely. Good, that's major progress. Here are some snippets to illustrate what I'm doing: I

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-30 Thread Frank Maas
On Mon, Jun 30, 2008 at 10:54:20AM +0200, Tobias Kremer wrote: Any other ideas? Thanks! It could be that your query(result) is too large for the 'max_allowed_packet' setting. The mysql-client that is connected to your process will then silently die, giving the 'Lost mysql...' error as result.

Re: Lost connection to MySQL server during query (was Segfault when connecting during Apache startup)

2008-06-30 Thread Tobias Kremer
Quoting Perrin Harkins [EMAIL PROTECTED]: I don't see anything in this code, but you're not really showing us much here. I think you'll need to try commenting out parts of it until you find which part breaks it. I'd start with that selectall_arrayref that you store. I can reproduce the

Re: Lost connection to MySQL server during query (was Segfault when connecting during Apache startup)

2008-06-30 Thread Michael Peters
Tobias Kremer wrote: use vars qw( $dbh $thefoo ); Why are you storing the DB handle in a global variable? If you do that then Apache::DBI can't help you if the connection goes away. -- Michael Peters Plus Three, LP

Re: Lost connection to MySQL server during query (was Segfault when connecting during Apache startup)

2008-06-30 Thread Tobias Kremer
Quoting Michael Peters [EMAIL PROTECTED]: Tobias Kremer wrote: use vars qw( $dbh $thefoo ); Why are you storing the DB handle in a global variable? If you do that then Apache::DBI can't help you if the connection goes away. To make this variable available to all Mason components.

Re: Lost connection to MySQL server during query (was Segfault when connecting during Apache startup)

2008-06-30 Thread Michael Peters
Tobias Kremer wrote: Quoting Michael Peters [EMAIL PROTECTED]: Why are you storing the DB handle in a global variable? If you do that then Apache::DBI can't help you if the connection goes away. To make this variable available to all Mason components. Then use a method to do this, not a

Re: Lost connection to MySQL server during query (was Segfault when connecting during Apache startup)

2008-06-30 Thread Tobias Kremer
On 30.06.2008, at 17:10, Perrin Harkins wrote: It's not Apache::DBI that's caching it -- you're caching it. Don't put a database handle in a global before you fork. It will stay, and there's nothing Apache::DBI can do about it. Could you please show me the exact line in my example in which I

Re: Lost connection to MySQL server during query (was Segfault when connecting during Apache startup)

2008-06-30 Thread Perrin Harkins
On Mon, Jun 30, 2008 at 1:40 PM, Tobias Kremer [EMAIL PROTECTED] wrote: Could you please show me the exact line in my example in which I put the database handle in a global during startup? On a closer look, you're not. You are keeping around your $foo closure variable in handler(), as well as

Re: [mp2] Segfault on using $r-content_type()

2008-06-30 Thread Philippe M. Chiasson
Stephen Howard wrote: 1. Problem Description: I have an intermittent segfault with one particular ResponseHandler. The segfault, when it occurs, is triggered by calling $r-content_type in a lightly modified CGI::Simple (I made changes to it as it wasn't playing well with mod_perl2). What

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-27 Thread Tobias Kremer
Quoting Tobias Kremer [EMAIL PROTECTED]: On 25.06.2008, at 20:58, Amiri Barksdale wrote: I had big trouble with DBD::mysql 4.007. I didn't get rid of my segfault problem running mod_perl 1.31 until I went back to 4.004. Thanx. It really looks a lot like my problem: http://bugs.mysql.com

RE: Segfault when connecting during Apache startup with Apache::DBI

2008-06-27 Thread Brian Gaber
On AIX 5.2 I am using Perl 5.8.0, MySQL 5.0.51a, Apache 2.2.28, mod_perl 2.04, DBI 1.604 and DBD 4.0007 and it all works good. --Brian -Original Message- From: Tobias Kremer [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2008 5:51 AM To: modperl@perl.apache.org Subject: Re: Segfault

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-27 Thread Perrin Harkins
On Fri, Jun 27, 2008 at 5:51 AM, Tobias Kremer [EMAIL PROTECTED] wrote: Now if I could just get rid of those annoying random Commands out of sync and Lost connection to MySQL server during query errors that happen once in a while ... Those generally mean that you timed out (set MySQL's

[mp2] Segfault on using $r-content_type()

2008-06-26 Thread Stephen Howard
1. Problem Description: I have an intermittent segfault with one particular ResponseHandler. The segfault, when it occurs, is triggered by calling $r-content_type in a lightly modified CGI::Simple (I made changes to it as it wasn't playing well with mod_perl2). What might be going awry

Segfault when connecting during Apache startup with Apache::DBI

2008-06-25 Thread Tobias Kremer
We have a mod_perl application that needs to connect to the database during Apache startup to prefetch some data. The database handle for this is not stored or re-used in any way. According to the documentation, Apache::DBI does not cache database connections made during server startup, so I

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-25 Thread Tobias Kremer
- Ubuntu Feisty with apache-perl. - stock Ubuntu Perl 5.8.8 (which unfortunately comes with threads) - self-rolled DBD::mysql (against libmysqlclient15-dev), DBI and Apache::DBI I should have mentioned that we're using DBI 1.605, Apache::DBI 1.07 and DBD::mysql 4.007. The Ubuntu apache-perl

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-25 Thread Tobias Kremer
Quoting Tobias Kremer [EMAIL PROTECTED]: - Ubuntu Feisty with apache-perl. - stock Ubuntu Perl 5.8.8 (which unfortunately comes with threads) - self-rolled DBD::mysql (against libmysqlclient15-dev), DBI and Apache::DBI I should have mentioned that we're using DBI 1.605, Apache::DBI 1.07

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-25 Thread Tobias Kremer
Quoting André Warnier [EMAIL PROTECTED]: I don't know if the above versions are imposed to you, but in case you have a choice, I would recommend de-installing your Apache and mod_perl, and re-install the Apache 2.2 version and the mod_perl that goes with it. Apache 1.x and mod_perl 1.x are old

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-25 Thread Perrin Harkins
this is a problem with the new DBD::mysql then, rather than Apache::DBI. If you want to determine that the problem is the version and not your compile options, you can compile the Ubuntu versions yourself and see if they segfault. Another possibility here is that although Apache::DBI doesn't cache

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-25 Thread Amiri Barksdale
I had big trouble with DBD::mysql 4.007. I didn't get rid of my segfault problem running mod_perl 1.31 until I went back to 4.004. Amiri On Jun 25, 2008, at 12:14 PM, Perrin Harkins wrote: On Wed, Jun 25, 2008 at 5:49 AM, Tobias Kremer [EMAIL PROTECTED] wrote: After de-installing

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-25 Thread Tobias Kremer
On 25.06.2008, at 20:58, Amiri Barksdale wrote: I had big trouble with DBD::mysql 4.007. I didn't get rid of my segfault problem running mod_perl 1.31 until I went back to 4.004. Thanx. It really looks a lot like my problem: http://bugs.mysql.com/bug.php?id=36810 I'll try reverting

Re: Segfault Help!?!?

2008-06-05 Thread amiribarksdale
It appears that downgrading DBD::mysql to version 4.004 has done the trick. Amiri -- View this message in context: http://www.nabble.com/Segfault-Help%21-%21--tp17599739p17668030.html Sent from the mod_perl - General mailing list archive at Nabble.com.

Re: Segfault Help!?!?

2008-06-05 Thread Fred Moyer
What version were you using that was causing the problems? amiribarksdale wrote: It appears that downgrading DBD::mysql to version 4.004 has done the trick. Amiri -- Red Hot Penguin Consulting LLC mod_perl/PostgreSQL consulting and implementation http://www.redhotpenguin.com/

Re: Segfault Help!?!?

2008-06-05 Thread amiribarksdale
Fred Moyer wrote: What version were you using that was causing the problems? 4.007. Amiri -- View this message in context: http://www.nabble.com/Segfault-Help%21-%21--tp17599739p17675687.html Sent from the mod_perl - General mailing list archive at Nabble.com.

Re: Segfault Help!?!?

2008-06-04 Thread Amiri Barksdale
I reinstalled mysql from source and recompiled my DBD::mysql against its new libs, and I still get the same backtrace: Using host libthread_db library /lib64/tls/libthread_db.so.1. ... #0 0x002a994cf93e in mysql_send_query () from /home/mysql/lib/mysql/libmysqlclient.so.15 (gdb) bt

Re: Segfault Help!?!?

2008-06-03 Thread amiribarksdale
Does anyone have any guidance on what I should do here? Amiri -- View this message in context: http://www.nabble.com/Segfault-Help%21-%21--tp17599739p17627528.html Sent from the mod_perl - General mailing list archive at Nabble.com.

Re: Segfault Help!?!?

2008-06-03 Thread Fred Moyer
amiribarksdale wrote: Does anyone have any guidance on what I should do here? Amiri From the archive thread: - http://www.nabble.com/Segfault-Help%21-%21--tp17599739p17627528.html Here are two short snippets of gdb output from the other evening. Can someone lead me in the right direction

Re: Segfault Help!?!?

2008-06-03 Thread amiribarksdale
this message in context: http://www.nabble.com/Segfault-Help%21-%21--tp17599739p17628964.html Sent from the mod_perl - General mailing list archive at Nabble.com.

Re: Segfault Help!?!?

2008-06-03 Thread Fred Moyer
amiribarksdale wrote: Yes, I moved from 32 bit to 64 bit. But I did exactly what you said. I reinstalled everything--perl, apache, mysql, DBI, DBD::mysql, every single module--the whole shebang. So it's not just some careless oversight or file copy. Everything has already been rebuilt and

Re: Segfault Help!?!?

2008-06-03 Thread amiribarksdale
of those 32-bit and 64 bit errors. I just built everything back up from barebones CentOS. From my cursory look through the stack trace it looks like the segfault is occurring when the database connections are being closed, either as a result of the httpd child dying, or the apache dbi

Re: Segfault Help!?!?

2008-06-03 Thread Fred Moyer
the stack trace it looks like the segfault is occurring when the database connections are being closed, either as a result of the httpd child dying, or the apache dbi connection closing. Apache::DBI disconnect (overloaded) Try setting the debug level for Apache::DBI to 2 to get verbose

Re: Segfault Help!?!?

2008-06-03 Thread Fred Moyer
everything back up from barebones CentOS. From my cursory look through the stack trace it looks like the segfault is occurring when the database connections are being closed, either as a result of the httpd child dying, or the apache dbi connection closing. Apache::DBI disconnect

Re: Segfault Help!?!?

2008-06-03 Thread amiribarksdale
', ), ); sub handler { my $r = shift; $ah{$r-dir_config('site')}-handle_request($r); } 1; -- View this message in context: http://www.nabble.com/Segfault-Help%21-%21--tp17599739p17633171.html Sent from the mod_perl - General mailing list archive at Nabble.com.

Segfault Help!?!?

2008-06-02 Thread amiribarksdale
, {SIG_DFL}, {SIG_DFL}, 8) = 0 kill(2396, SIGSEGV) = 0 rt_sigreturn(0x95c) = 0 --- SIGSEGV (Segmentation fault) @ 0 (0) --- Process 2396 detached -- View this message in context: http://www.nabble.com/Segfault-Help%21-%21--tp17599739p17599739.html Sent from

Re: Segfault Help!?!?

2008-06-02 Thread amiribarksdale
Here are some better and further details. I turned on DBI debugging, so I can see that before a segfault, I get the error Apache::DBI disconnect (overloaded) I have also done some gdb backtraces--I put strace output before. Here is one gdb full bt: (gdb) bt full #0 0x002a994e37be

Re: Segfault Help!?!?

2008-06-02 Thread amiribarksdale
-multi/auto/XML/LibXML/LibXML.so #0 0x002a994e37be in mysql_send_query () from /usr/lib64/mysql/libmysqlclient.so.15 -- View this message in context: http://www.nabble.com/Segfault-Help%21-%21--tp17599739p17613827.html Sent from the mod_perl - General mailing list archive at Nabble.com.

Re: segfault with perl 5.10 + MasonX::Request::WithApacheSession

2008-05-20 Thread Louis-David Mitterrand
On Mon, May 19, 2008 at 09:33:49PM +0300, Niko Tyni wrote: On Mon, May 19, 2008 at 11:12:08AM +0200, Louis-David Mitterrand wrote: Since I've upgraded to perl 5.10 on my debian unstable/sid box I get a segfault when using MasonX::Request::WithApacheSession: [Sat May 17 16:14:55

segfault with perl 5.10 + MasonX::Request::WithApacheSession

2008-05-19 Thread Louis-David Mitterrand
[this message elicited no answers so far from mason-users, so maybe the modperl community might be of help, thanks] Hi, Since I've upgraded to perl 5.10 on my debian unstable/sid box I get a segfault when using MasonX::Request::WithApacheSession: [Sat May 17 16:14:55 2008] [notice

Re: segfault with perl 5.10 + MasonX::Request::WithApacheSession

2008-05-19 Thread Perrin Harkins
On Mon, May 19, 2008 at 5:12 AM, Louis-David Mitterrand ## When commented out perl 5.10 works fine request_class = 'MasonX::Request::WithApacheSession', session_class = 'Apache::Session::Postgres',

Re: segfault with perl 5.10 + MasonX::Request::WithApacheSession

2008-05-19 Thread Fred Moyer
Louis-David Mitterrand wrote: [this message elicited no answers so far from mason-users, so maybe the modperl community might be of help, thanks] Hi, Since I've upgraded to perl 5.10 on my debian unstable/sid box I get a segfault when using MasonX::Request::WithApacheSession: [Sat

Re: segfault with perl 5.10 + MasonX::Request::WithApacheSession

2008-05-19 Thread Louis-David Mitterrand
On Mon, May 19, 2008 at 10:31:06AM -0400, Perrin Harkins wrote: On Mon, May 19, 2008 at 5:12 AM, Louis-David Mitterrand ## When commented out perl 5.10 works fine request_class = 'MasonX::Request::WithApacheSession',

Re: segfault with perl 5.10 + MasonX::Request::WithApacheSession

2008-05-19 Thread Louis-David Mitterrand
a segfault when using MasonX::Request::WithApacheSession: [Sat May 17 16:14:55 2008] [notice] Apache/2.2.8 (Debian) mod_apreq2-20051231/2.6.0 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations [Sat May 17 16:15:03 2008] [notice] child pid 25786 exit signal Segmentation

Re: segfault with perl 5.10 + MasonX::Request::WithApacheSession

2008-05-19 Thread Niko Tyni
On Mon, May 19, 2008 at 11:12:08AM +0200, Louis-David Mitterrand wrote: Since I've upgraded to perl 5.10 on my debian unstable/sid box I get a segfault when using MasonX::Request::WithApacheSession: [Sat May 17 16:14:55 2008] [notice] Apache/2.2.8 (Debian) mod_apreq2-20051231/2.6.0

  1   2   3   >