Apache Blank Pages

This is a multi-part message in MIME format.

------_=_NextPart_001_01CA939A.9195A68C
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

I have a bizarre problem I'm hoping someone could give me some =
suggestions with.

I have a couple of MP2 scripts running on a server, they are both =
similar in use of modules and structure. Without any recent changes, one =
of the scripts is producing a blank apache page on SOME requests.

It's not always the same function, it can happen to any of the function =
calls contained in the script.

When the blank page happens there is nothing in either the access log or =
the error log of that virtual host (like the request never made it that =
far).

In the default error log I will get something like

[notice] child pid 11497 exit signal Aborted (6)

Sometimes (but not always), I'll see

*** glibc detected *** malloc(): memory corruption: 0x09c120f8 ***

There is also no consistency to the blank page, sometimes you hit the =
URL and you get the content, sometimes you get a blank page, sometimes 1 =
refresh on the blank page gives you content, other times it can take 3 - =
7 refreshes before the content comes.

I've been trying to pull apart my script piece by piece in the hopes =
that I could at least narrow it down to some specific section but I'm =
not having a lot of luck.

Any thoughts on how I could debug this better?

TIA!

------_=_NextPart_001_01CA939A.9195A68C
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML dir=3Dltr><HEAD>=0A=
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dunicode">=0A=
<META content=3D"MSHTML 6.00.6001.18349" name=3DGENERATOR></HEAD>=0A=
<BODY>=0A=
<DIV><FONT face=3DArial color=3D#000000 size=3D2>Hello,</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>I have a bizarre problem I'm hoping =
someone could give me some suggestions with.</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>I have a couple of MP2 scripts running =
on a server, they are both similar in use of modules and structure. =
Without any recent changes, one of the scripts is producing a blank =
apache page on SOME requests.</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>It's not always the same function, it =
can happen to any of the function calls contained in the =
script.</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>When the blank page happens there is =
nothing in either the access log or the error log of that virtual host =
(like the request never made it that far).</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>In the default error log I will get =
something like</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV>[notice] child pid 11497 exit signal Aborted (6)</DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>Sometimes (but not always), I'll =
see</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV>*** glibc detected *** malloc(): memory corruption: 0x09c120f8 =
***</DIV>=0A=
<DIV> </DIV>=0A=
<DIV>=0A=
<DIV><FONT face=3DArial size=3D2>There is also no consistency to the =
blank page, sometimes you hit the URL and you get the content, sometimes =
you get a blank page, sometimes 1 refresh on the blank page gives you =
content, other times it can take 3 - 7 refreshes before the content =
comes.</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>I've been trying to pull apart my =
script piece by piece in the hopes that I could at least narrow it down =
to some specific section but I'm not having a lot of luck.</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>Any thoughts on how I could debug this =
better?</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>TIA!</FONT></DIV></DIV></BODY></HTML>
------_=_NextPart_001_01CA939A.9195A68C--
Chris Faust [ Di, 12 Januar 2010 16:19 ] [ ID #2028540 ]

Re: Apache Blank Pages

--0016e64ca7e6176fee047cfa6968
Content-Type: text/plain; charset=ISO-8859-1

It seems pretty clear the blank pages are from the apache children dieing
badly (hence the errors). I would make an educated guess based on the
malloc error that your ram is bad. Try running your app on a different box
and see if you get the same errors.

On Jan 12, 2010 7:19 AM, "cfaust-dougot" <cfaust [at] doyougot.com> wrote:

Hello,

I have a bizarre problem I'm hoping someone could give me some suggestions
with.

I have a couple of MP2 scripts running on a server, they are both similar in
use of modules and structure. Without any recent changes, one of the scripts
is producing a blank apache page on SOME requests.

It's not always the same function, it can happen to any of the function
calls contained in the script.

When the blank page happens there is nothing in either the access log or the
error log of that virtual host (like the request never made it that far).

In the default error log I will get something like

[notice] child pid 11497 exit signal Aborted (6)

Sometimes (but not always), I'll see

*** glibc detected *** malloc(): memory corruption: 0x09c120f8 ***

There is also no consistency to the blank page, sometimes you hit the URL
and you get the content, sometimes you get a blank page, sometimes 1 refresh
on the blank page gives you content, other times it can take 3 - 7 refreshes
before the content comes.

I've been trying to pull apart my script piece by piece in the hopes that I
could at least narrow it down to some specific section but I'm not having a
lot of luck.

Any thoughts on how I could debug this better?

TIA!

--0016e64ca7e6176fee047cfa6968
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<p>It seems pretty clear the blank pages are from the apache children diein=
g badly (hence the errors).=A0 I would make an educated guess based on the =
malloc error that your ram is bad.=A0 Try running your app on a different b=
ox and see if you get the same errors.<br>

</p>
<p><blockquote type=3D"cite">On Jan 12, 2010 7:19 AM, "cfaust-dougot&q=
uot; <<a href=3D"mailto:cfaust [at] doyougot.com">cfaust [at] doyougot.com</a>>=
wrote:<br><br>


<div>
<div><font face=3D"Arial" color=3D"#000000" size=3D"2">Hello,</font></div>
<div><font face=3D"Arial" size=3D"2"></font>=A0</div>
<div><font face=3D"Arial" size=3D"2">I have a bizarre problem I'm hopin=
g someone could give me some suggestions with.</font></div>
<div><font face=3D"Arial" size=3D"2"></font>=A0</div>
<div><font face=3D"Arial" size=3D"2">I have a couple of MP2 scripts running=
on a server, they are both similar in use of modules and structure. Withou=
t any recent changes, one of the scripts is producing a blank apache page o=
n SOME requests.</font></div>

<div><font face=3D"Arial" size=3D"2"></font>=A0</div>
<div><font face=3D"Arial" size=3D"2">It's not always the same function,=
it can happen to any of the function calls contained in the script.</font>=
</div>
<div><font face=3D"Arial" size=3D"2"></font>=A0</div>
<div><font face=3D"Arial" size=3D"2">When the blank page happens there is n=
othing in either the access log or the error log of that virtual host (like=
the request never made it that far).</font></div>
<div><font face=3D"Arial" size=3D"2"></font>=A0</div>
<div><font face=3D"Arial" size=3D"2">In the default error log I will get so=
mething like</font></div>
<div><font face=3D"Arial" size=3D"2"></font>=A0</div>
<div>[notice] child pid 11497 exit signal Aborted (6)</div>
<div>=A0</div>
<div><font face=3D"Arial" size=3D"2">Sometimes (but not always), I'll s=
ee</font></div>
<div><font face=3D"Arial" size=3D"2"></font>=A0</div>
<div>*** glibc detected *** malloc(): memory corruption: 0x09c120f8 ***</di=
v>
<div>=A0</div>
<div>
<div><font face=3D"Arial" size=3D"2">There is also no consistency to the bl=
ank page, sometimes you hit the URL and you get the content, sometimes you =
get a blank page, sometimes 1 refresh on the blank page gives you content, =
other times it can take 3 - 7 refreshes before the content comes.</font></d=
iv>

<div><font face=3D"Arial" size=3D"2"></font>=A0</div>
<div><font face=3D"Arial" size=3D"2">I've been trying to pull apart my =
script piece by piece in the hopes that I could at least narrow it down to =
some specific section but I'm not having a lot of luck.</font></div>
<div><font face=3D"Arial" size=3D"2"></font>=A0</div>
<div><font face=3D"Arial" size=3D"2">Any thoughts on how I could debug this=
better?</font></div>
<div><font face=3D"Arial" size=3D"2"></font>=A0</div>
<div><font face=3D"Arial" size=3D"2">TIA!</font></div></div></div></blockqu=
ote></p>

--0016e64ca7e6176fee047cfa6968--
William T [ Di, 12 Januar 2010 17:47 ] [ ID #2028541 ]

RE: Apache Blank Pages

This is a multi-part message in MIME format.

------_=_NextPart_001_01CA93B5.DD3B167C
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks for the reply William, at first I thought the same thing but as =
time went on and this only effected 1 virtual host and not the other =
(and the other had 10x the traffic), I didn't seem like hardware or =
config related.

I've gotten a little further since my last post, but it still doesn't =
make sense.

If I take the DB connection out of the script, it doesn't happen. I've =
added and removed it a few times just because I couldn't belive it.

The DB is on another machine and both virtual hosts call the same =
machine (each virtual is a different DB on the dedicated DB server).

The only difference in the DB connection call between the 2 scripts is =
that virtual host 1 calls it via a custom package (as other scripts need =
the same DB) - this is the site that works.

Virtual Host 2 makes the connection within "sub handler" and that's the =
one that doesn't work.

No closer to a solution though - any method I try to use to connect to =
the DB from VH2 results in this problem.

Still doesn't make a lot of sense.





________________________________

From: William T [mailto:dietbuddha [at] gmail.com]
Sent: Tue 1/12/2010 11:47 AM
To: cfaust-dougot
Cc: modperl [at] perl.apache.org
Subject: Re: Apache Blank Pages



It seems pretty clear the blank pages are from the apache children =
dieing badly (hence the errors). I would make an educated guess based =
on the malloc error that your ram is bad. Try running your app on a =
different box and see if you get the same errors.


On Jan 12, 2010 7:19 AM, "cfaust-dougot" <cfaust [at] doyougot.com> wrote:
=09
=09
Hello,

I have a bizarre problem I'm hoping someone could give me some =
suggestions with.

I have a couple of MP2 scripts running on a server, they are both =
similar in use of modules and structure. Without any recent changes, one =
of the scripts is producing a blank apache page on SOME requests.

It's not always the same function, it can happen to any of the function =
calls contained in the script.

When the blank page happens there is nothing in either the access log =
or the error log of that virtual host (like the request never made it =
that far).

In the default error log I will get something like

[notice] child pid 11497 exit signal Aborted (6)

Sometimes (but not always), I'll see

*** glibc detected *** malloc(): memory corruption: 0x09c120f8 ***

There is also no consistency to the blank page, sometimes you hit the =
URL and you get the content, sometimes you get a blank page, sometimes 1 =
refresh on the blank page gives you content, other times it can take 3 - =
7 refreshes before the content comes.

I've been trying to pull apart my script piece by piece in the hopes =
that I could at least narrow it down to some specific section but I'm =
not having a lot of luck.

Any thoughts on how I could debug this better?

TIA!


------_=_NextPart_001_01CA93B5.DD3B167C
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML dir=3Dltr><HEAD>=0A=
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dunicode">=0A=
<META content=3D"MSHTML 6.00.6001.18349" name=3DGENERATOR></HEAD>=0A=
<BODY>=0A=
<DIV id=3DidOWAReplyText10839 dir=3Dltr>=0A=
<DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=3D2>Thanks for =
the reply William, at first I thought the same thing but as time went on =
and this only effected 1 virtual host and not the other (and the other =
had 10x the traffic), I didn't seem like hardware or config =
related.</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>I've gotten a little further =
since my last post, but it still doesn't make sense.</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>If I take the DB connection =
out of the script, it doesn't happen. I've added and removed it a few =
times just because I couldn't belive it.</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>The DB is on another machine =
and both virtual hosts call the same machine (each virtual is a =
different DB on the dedicated DB server).</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>The only difference in the DB =
connection call between the 2 scripts is that virtual host 1 calls it =
via a custom package (as other scripts need the same DB) - this is the =
site that works.</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>Virtual Host 2 makes the =
connection within "sub handler" and that's the one that doesn't =
work.</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>No closer to a solution =
though - any method I try to use to connect to the DB from VH2 results =
in this problem.</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>Still doesn't make a lot of =
sense.</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr>=0A=
<HR tabIndex=3D-1>=0A=
<FONT face=3DTahoma size=3D2><B>From:</B> William T =
[mailto:dietbuddha [at] gmail.com]<BR><B>Sent:</B> Tue 1/12/2010 11:47 =
AM<BR><B>To:</B> cfaust-dougot<BR><B>Cc:</B> =
modperl [at] perl.apache.org<BR><B>Subject:</B> Re: Apache Blank =
Pages<BR></FONT><BR></DIV></DIV>=0A=
<DIV>=0A=
<P>It seems pretty clear the blank pages are from the apache children =
dieing badly (hence the errors).  I would make an educated guess =
based on the malloc error that your ram is bad.  Try running your =
app on a different box and see if you get the same errors.<BR></P>=0A=
<P>=0A=
<BLOCKQUOTE type=3D"cite">On Jan 12, 2010 7:19 AM, "cfaust-dougot" =
<<A href=3D"mailto:cfaust [at] doyougot.com">cfaust [at] doyougot.com</A>> =
wrote:<BR><BR>=0A=
<DIV>=0A=
<DIV><FONT face=3DArial color=3D#000000 size=3D2>Hello,</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>I have a bizarre problem I'm hoping =
someone could give me some suggestions with.</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>I have a couple of MP2 scripts running =
on a server, they are both similar in use of modules and structure. =
Without any recent changes, one of the scripts is producing a blank =
apache page on SOME requests.</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>It's not always the same function, it =
can happen to any of the function calls contained in the =
script.</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>When the blank page happens there is =
nothing in either the access log or the error log of that virtual host =
(like the request never made it that far).</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>In the default error log I will get =
something like</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV>[notice] child pid 11497 exit signal Aborted (6)</DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>Sometimes (but not always), I'll =
see</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV>*** glibc detected *** malloc(): memory corruption: 0x09c120f8 =
***</DIV>=0A=
<DIV> </DIV>=0A=
<DIV>=0A=
<DIV><FONT face=3DArial size=3D2>There is also no consistency to the =
blank page, sometimes you hit the URL and you get the content, sometimes =
you get a blank page, sometimes 1 refresh on the blank page gives you =
content, other times it can take 3 - 7 refreshes before the content =
comes.</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>I've been trying to pull apart my =
script piece by piece in the hopes that I could at least narrow it down =
to some specific section but I'm not having a lot of luck.</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>Any thoughts on how I could debug this =
better?</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV><FONT face=3DArial =
size=3D2>TIA!</FONT></DIV></DIV></DIV></BLOCKQUOTE>=0A=
<P></P></DIV></BODY></HTML>
------_=_NextPart_001_01CA93B5.DD3B167C--
Chris Faust [ Di, 12 Januar 2010 19:34 ] [ ID #2028543 ]

Re: Apache Blank Pages

This is a multi-part message in MIME format.
--------------000702020409090300040600
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

what is your apache's mpm? worker or prefork?

Our site sometimes also rise similar error(like glibc detected ... in
error log ) under worker mpm.

*陈建春 | ChenJianchun*
傲游Web应用部
E-mail: chenjch [at] maxthon.net <mailto:chenjch [at] maxthon.net>

*Maxthon^® * --每个人的互联网中心! 上网从傲游开始!
傲游天下科技有限公司(中国) <http://www.maxthon.cn/> | www.maxthon.cn
<http://www.maxthon.cn/>

*诚信、创新、务实、奋斗!*



cfaust-dougot 写道:
> Hello,
>
> I have a bizarre problem I'm hoping someone could give me some
> suggestions with.
>
> I have a couple of MP2 scripts running on a server, they are both
> similar in use of modules and structure. Without any recent changes,
> one of the scripts is producing a blank apache page on SOME requests.
>
> It's not always the same function, it can happen to any of the
> function calls contained in the script.
>
> When the blank page happens there is nothing in either the access log
> or the error log of that virtual host (like the request never made it
> that far).
>
> In the default error log I will get something like
>
> [notice] child pid 11497 exit signal Aborted (6)
>
> Sometimes (but not always), I'll see
>
> *** glibc detected *** malloc(): memory corruption: 0x09c120f8 ***
>
> There is also no consistency to the blank page, sometimes you hit the
> URL and you get the content, sometimes you get a blank page, sometimes
> 1 refresh on the blank page gives you content, other times it can take
> 3 - 7 refreshes before the content comes.
>
> I've been trying to pull apart my script piece by piece in the hopes
> that I could at least narrow it down to some specific section but I'm
> not having a lot of luck.
>
> Any thoughts on how I could debug this better?
>
> TIA!

--------------000702020409090300040600
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
what is your apache's mpm? worker or prefork?<br>
<br>
Our site sometimes also rise similar error(like glibc detected ... in
error log ) under worker mpm.<br>
<br>
<div class="moz-signature">
<p
style="margin: 0pt 0pt 10px; font-size: 9pt; font-family: Verdana; line-height: 125%; color: rgb(128, 128, 128);">
<span style="color: rgb(0, 81, 151);"><strong>陈建春 | ChenJianchun</strong></span><br>
傲游Web应用部<br>
<span style="color: rgb(99, 36, 35); font-size: 8pt;"> E-mail: <a
href="mailto:chenjch [at] maxthon.net"
style="color: rgb(128, 128, 128); text-decoration: none;">chenjch [at] maxthon.net</a>
</span>
</p>
<p
style="margin: 0pt 0pt 10px; font-size: 9pt; font-family: Verdana; line-height: 175%; color: rgb(128, 128, 128);">
<span style="color: rgb(0, 81, 151); font-size: 11pt;"><strong>Maxthon<sup
style="font-size: 8pt;">®</sup></strong></span> --每个人的互联网中心!         <span
style="color: rgb(0, 81, 151); font-size: 9pt;">上网从傲游开始!</span><br>
<a href="http://www.maxthon.cn/"
style="color: rgb(66, 113, 144); text-decoration: none;">傲游天下科技有限公司(中国)</a>
| <a href="http://www.maxthon.cn/"
style="color: rgb(66, 113, 144); text-decoration: none; font-size: 8pt;">www.maxthon.cn</a>
</p>
<p
style="margin: 0pt; font-size: 9pt; font-family: Verdana; line-height: 150%; color: rgb(92, 115, 47);"><strong>诚
信、创新、务实、奋斗!</strong></p>
</div>
<br>
<br>
cfaust-dougot 写道:
<blockquote
cite="mid:B1DE2E9211866F4C840F440F731A0AE606C89C [at] exchback1.p ub.prevare.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.6001.18349" name="GENERATOR">
<div><font color="#000000" face="Arial" size="2">Hello,</font></div>
<div> </div>
<div><font face="Arial" size="2">I have a bizarre problem I'm hoping
someone could give me some suggestions with.</font></div>
<div> </div>
<div><font face="Arial" size="2">I have a couple of MP2 scripts
running on a server, they are both similar in use of modules and
structure. Without any recent changes, one of the scripts is producing
a blank apache page on SOME requests.</font></div>
<div> </div>
<div><font face="Arial" size="2">It's not always the same function,
it can happen to any of the function calls contained in the script.</font></div>
<div> </div>
<div><font face="Arial" size="2">When the blank page happens there is
nothing in either the access log or the error log of that virtual host
(like the request never made it that far).</font></div>
<div> </div>
<div><font face="Arial" size="2">In the default error log I will get
something like</font></div>
<div> </div>
<div>[notice] child pid 11497 exit signal Aborted (6)</div>
<div> </div>
<div><font face="Arial" size="2">Sometimes (but not always), I'll see</font></div>
<div> </div>
<div>*** glibc detected *** malloc(): memory corruption: 0x09c120f8
***</div>
<div> </div>
<div>
<div><font face="Arial" size="2">There is also no consistency to the
blank page, sometimes you hit the URL and you get the content,
sometimes you get a blank page, sometimes 1 refresh on the blank page
gives you content, other times it can take 3 - 7 refreshes before the
content comes.</font></div>
<div> </div>
<div><font face="Arial" size="2">I've been trying to pull apart my
script piece by piece in the hopes that I could at least narrow it down
to some specific section but I'm not having a lot of luck.</font></div>
<div> </div>
<div><font face="Arial" size="2">Any thoughts on how I could debug
this better?</font></div>
<div> </div>
<div><font face="Arial" size="2">TIA!</font></div>
</div>
</blockquote>
</body>
</html>

--------------000702020409090300040600--
chenjch [ Mi, 13 Januar 2010 13:08 ] [ ID #2028670 ]

RE: Apache Blank Pages

This is a multi-part message in MIME format.

------_=_NextPart_001_01CA944B.E7311F53
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

It's prefork

Apache/2.2.3 (Debian) PHP/4.4.4-8+etch6 mod_apreq2-20051231/2.6.0 =
mod_perl/2.0.2 Perl/v5.8.8

I've isolated the problem, you guys will say I'm crazy but I can =
reproduce the results over and over again.

If I try to connect to a DB in that 2nd virtual host I have the problem. =
If I make no connection then there is no problem. Also if I connect to =
the same DB that the 1st virtual host does, then there is no problem. =
It's only when I try to connect to another DB that the problem comes =
into play.

That makes no sense to me, but I've been able to reproduce it 8 =
different times without fail.

This problem started when I updated DBI and DBD:mysql to the latest =
version, although I can't see where the conflict is as I have the latest =
versions running on other machines without any issues.

It's really bizarre!!


________________________________

From: ??? [mailto:chenjch [at] maxthon.net]
Sent: Wed 1/13/2010 7:08 AM
To: cfaust-dougot
Cc: modperl [at] perl.apache.org
Subject: Re: Apache Blank Pages


what is your apache's mpm? worker or prefork?

Our site sometimes also rise similar error(like glibc detected ... in =
error log ) under worker mpm.



??? | ChenJianchun
??Web???
E-mail: chenjch [at] maxthon.net

Maxthon=AE --?????????! ???????!
??????????(??) <http://www.maxthon.cn/> | www.maxthon.cn =
<http://www.maxthon.cn/>

???????????!



cfaust-dougot ??:

Hello,

I have a bizarre problem I'm hoping someone could give me some =
suggestions with.

I have a couple of MP2 scripts running on a server, they are both =
similar in use of modules and structure. Without any recent changes, one =
of the scripts is producing a blank apache page on SOME requests.

It's not always the same function, it can happen to any of the function =
calls contained in the script.

When the blank page happens there is nothing in either the access log =
or the error log of that virtual host (like the request never made it =
that far).

In the default error log I will get something like

[notice] child pid 11497 exit signal Aborted (6)

Sometimes (but not always), I'll see

*** glibc detected *** malloc(): memory corruption: 0x09c120f8 ***

There is also no consistency to the blank page, sometimes you hit the =
URL and you get the content, sometimes you get a blank page, sometimes 1 =
refresh on the blank page gives you content, other times it can take 3 - =
7 refreshes before the content comes.

I've been trying to pull apart my script piece by piece in the hopes =
that I could at least narrow it down to some specific section but I'm =
not having a lot of luck.

Any thoughts on how I could debug this better?

TIA!


------_=_NextPart_001_01CA944B.E7311F53
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML dir=3Dltr><HEAD><TITLE></TITLE>=0A=
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dunicode">=0A=
<META content=3D"MSHTML 6.00.6001.18349" name=3DGENERATOR></HEAD>=0A=
<BODY text=3D#000000 bgColor=3D#ffffff>=0A=
<DIV id=3DidOWAReplyText7494 dir=3Dltr>=0A=
<DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=3D2>It's =
prefork</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr>Apache/2.2.3 (Debian) PHP/4.4.4-8+etch6 =
mod_apreq2-20051231/2.6.0 mod_perl/2.0.2 Perl/v5.8.8</DIV>=0A=
<DIV dir=3Dltr> </DIV>=0A=
<DIV dir=3Dltr>I've isolated the problem, you guys will say I'm crazy =
but I can reproduce the results over and over again.</DIV>=0A=
<DIV dir=3Dltr> </DIV>=0A=
<DIV dir=3Dltr>If I try to connect to a DB in that 2nd virtual host I =
have the problem. If I make no connection then there is no problem. Also =
if I connect to the same DB that the 1st virtual host does, then there =
is no problem. It's only when I try to connect to another DB that the =
problem comes into play.</DIV>=0A=
<DIV dir=3Dltr> </DIV>=0A=
<DIV dir=3Dltr>That makes no sense to me, but I've been able to =
reproduce it 8 different times without fail.</DIV>=0A=
<DIV dir=3Dltr> </DIV>=0A=
<DIV dir=3Dltr>This problem started when I updated DBI and DBD:mysql to =
the latest version, although I can't see where the conflict is as I have =
the latest versions running on other machines without any issues.</DIV>=0A=
<DIV dir=3Dltr> </DIV>=0A=
<DIV dir=3Dltr>It's really bizarre!!</DIV>=0A=
<DIV dir=3Dltr> </DIV></DIV>=0A=
<DIV dir=3Dltr><BR>=0A=
<HR tabIndex=3D-1>=0A=
<FONT face=3DTahoma size=3D2><B>From:</B> 陈建春 =
[mailto:chenjch [at] maxthon.net]<BR><B>Sent:</B> Wed 1/13/2010 7:08 =
AM<BR><B>To:</B> cfaust-dougot<BR><B>Cc:</B> =
modperl [at] perl.apache.org<BR><B>Subject:</B> Re: Apache Blank =
Pages<BR></FONT><BR></DIV>=0A=
<DIV>what is your apache's mpm? worker or prefork?<BR><BR>Our site =
sometimes also rise similar error(like glibc detected ... in error log ) =
under worker mpm.<BR><BR>=0A=
<DIV class=3Dmoz-signature>=0A=
<P style=3D"FONT-SIZE: 9pt; MARGIN: 0pt 0pt 10px; COLOR: =
rgb(128,128,128); LINE-HEIGHT: 125%; FONT-FAMILY: Verdana"><SPAN =
style=3D"COLOR: =
rgb(0,81,151)"><STRONG>陈建春 | ChenJianchun<=
/STRONG></SPAN><BR>傲游Web应用部<BR><SPAN =
style=3D"FONT-SIZE: 8pt; COLOR: rgb(99,36,35)">E-mail: <A =
style=3D"COLOR: rgb(128,128,128); TEXT-DECORATION: none" =
href=3D"mailto:chenjch [at] maxthon.net">chenjch [at] maxthon.net</A> </SPAN></P>=0A=
<P style=3D"FONT-SIZE: 9pt; MARGIN: 0pt 0pt 10px; COLOR: =
rgb(128,128,128); LINE-HEIGHT: 175%; FONT-FAMILY: Verdana"><SPAN =
style=3D"FONT-SIZE: 11pt; COLOR: rgb(0,81,151)"><STRONG>Maxthon<SUP =
style=3D"FONT-SIZE: 8pt">=AE</SUP></STRONG></SPAN> =
--每个人的互联网中心=
;!         <SPAN =
style=3D"FONT-SIZE: 9pt; COLOR: =
rgb(0,81,151)">上网从傲游开始!<=
/SPAN><BR><A style=3D"COLOR: rgb(66,113,144); TEXT-DECORATION: none" =
href=3D"http://www.maxthon.cn/">傲游天下科&=
#25216;有限公司(中国)</A> | <A =
style=3D"FONT-SIZE: 8pt; COLOR: rgb(66,113,144); TEXT-DECORATION: none" =
href=3D"http://www.maxthon.cn/">www.maxthon.cn</A> </P>=0A=
<P style=3D"FONT-SIZE: 9pt; MARGIN: 0pt; COLOR: rgb(92,115,47); =
LINE-HEIGHT: 150%; FONT-FAMILY: =
Verdana"><STRONG>诚信、创新、务=
实、奋斗!</STRONG></P></DIV><BR><BR>cfaust=
-dougot 写道: =0A=
<BLOCKQUOTE cite=3D"" type=3D"cite">=0A=
<DIV><FONT face=3DArial color=3D#000000 size=3D2>Hello,</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>I have a bizarre problem I'm hoping =
someone could give me some suggestions with.</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>I have a couple of MP2 scripts running =
on a server, they are both similar in use of modules and structure. =
Without any recent changes, one of the scripts is producing a blank =
apache page on SOME requests.</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>It's not always the same function, it =
can happen to any of the function calls contained in the =
script.</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>When the blank page happens there is =
nothing in either the access log or the error log of that virtual host =
(like the request never made it that far).</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>In the default error log I will get =
something like</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV>[notice] child pid 11497 exit signal Aborted (6)</DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>Sometimes (but not always), I'll =
see</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV>*** glibc detected *** malloc(): memory corruption: 0x09c120f8 =
***</DIV>=0A=
<DIV> </DIV>=0A=
<DIV>=0A=
<DIV><FONT face=3DArial size=3D2>There is also no consistency to the =
blank page, sometimes you hit the URL and you get the content, sometimes =
you get a blank page, sometimes 1 refresh on the blank page gives you =
content, other times it can take 3 - 7 refreshes before the content =
comes.</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>I've been trying to pull apart my =
script piece by piece in the hopes that I could at least narrow it down =
to some specific section but I'm not having a lot of luck.</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>Any thoughts on how I could debug this =
better?</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial =
size=3D2>TIA!</FONT></DIV></DIV></BLOCKQUOTE></DIV></BODY></HTML>
------_=_NextPart_001_01CA944B.E7311F53--
Chris Faust [ Mi, 13 Januar 2010 13:28 ] [ ID #2028672 ]

RE: Apache Blank Pages

This is a multi-part message in MIME format.

------_=_NextPart_001_01CA944B.F026B949
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

It's prefork

Apache/2.2.3 (Debian) PHP/4.4.4-8+etch6 mod_apreq2-20051231/2.6.0 =
mod_perl/2.0.2 Perl/v5.8.8

I've isolated the problem, you guys will say I'm crazy but I can =
reproduce the results over and over again.

If I try to connect to a DB in that 2nd virtual host I have the problem. =
If I make no connection then there is no problem. Also if I connect to =
the same DB that the 1st virtual host does, then there is no problem. =
It's only when I try to connect to another DB that the problem comes =
into play.

That makes no sense to me, but I've been able to reproduce it 8 =
different times without fail.

This problem started when I updated DBI and DBD:mysql to the latest =
version, although I can't see where the conflict is as I have the latest =
versions running on other machines without any issues.

It's really bizarre!!

________________________________

From: ??? [mailto:chenjch [at] maxthon.net]
Sent: Wed 1/13/2010 7:08 AM
To: cfaust-dougot
Cc: modperl [at] perl.apache.org
Subject: Re: Apache Blank Pages


what is your apache's mpm? worker or prefork?

Our site sometimes also rise similar error(like glibc detected ... in =
error log ) under worker mpm.



??? | ChenJianchun
??Web???
E-mail: chenjch [at] maxthon.net

Maxthon=AE --?????????! ???????!
??????????(??) <http://www.maxthon.cn/> | www.maxthon.cn =
<http://www.maxthon.cn/>

???????????!



cfaust-dougot ??:

Hello,

I have a bizarre problem I'm hoping someone could give me some =
suggestions with.

I have a couple of MP2 scripts running on a server, they are both =
similar in use of modules and structure. Without any recent changes, one =
of the scripts is producing a blank apache page on SOME requests.

It's not always the same function, it can happen to any of the function =
calls contained in the script.

When the blank page happens there is nothing in either the access log =
or the error log of that virtual host (like the request never made it =
that far).

In the default error log I will get something like

[notice] child pid 11497 exit signal Aborted (6)

Sometimes (but not always), I'll see

*** glibc detected *** malloc(): memory corruption: 0x09c120f8 ***

There is also no consistency to the blank page, sometimes you hit the =
URL and you get the content, sometimes you get a blank page, sometimes 1 =
refresh on the blank page gives you content, other times it can take 3 - =
7 refreshes before the content comes.

I've been trying to pull apart my script piece by piece in the hopes =
that I could at least narrow it down to some specific section but I'm =
not having a lot of luck.

Any thoughts on how I could debug this better?

TIA!


------_=_NextPart_001_01CA944B.F026B949
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML dir=3Dltr><HEAD><TITLE></TITLE>=0A=
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dunicode">=0A=
<META content=3D"MSHTML 6.00.6001.18349" name=3DGENERATOR></HEAD>=0A=
<BODY text=3D#000000 bgColor=3D#ffffff>=0A=
<DIV id=3DidOWAReplyText78987 dir=3Dltr>=0A=
<DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=3D2>=0A=
<DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=3D2>It's =
prefork</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr>Apache/2.2.3 (Debian) PHP/4.4.4-8+etch6 =
mod_apreq2-20051231/2.6.0 mod_perl/2.0.2 Perl/v5.8.8</DIV>=0A=
<DIV dir=3Dltr> </DIV>=0A=
<DIV dir=3Dltr>I've isolated the problem, you guys will say I'm crazy =
but I can reproduce the results over and over again.</DIV>=0A=
<DIV dir=3Dltr> </DIV>=0A=
<DIV dir=3Dltr>If I try to connect to a DB in that 2nd virtual host I =
have the problem. If I make no connection then there is no problem. Also =
if I connect to the same DB that the 1st virtual host does, then there =
is no problem. It's only when I try to connect to another DB that the =
problem comes into play.</DIV>=0A=
<DIV dir=3Dltr> </DIV>=0A=
<DIV dir=3Dltr>That makes no sense to me, but I've been able to =
reproduce it 8 different times without fail.</DIV>=0A=
<DIV dir=3Dltr> </DIV>=0A=
<DIV dir=3Dltr>This problem started when I updated DBI and DBD:mysql to =
the latest version, although I can't see where the conflict is as I have =
the latest versions running on other machines without any issues.</DIV>=0A=
<DIV dir=3Dltr> </DIV>=0A=
<DIV dir=3Dltr>It's really bizarre!!</DIV></FONT></DIV></DIV>=0A=
<DIV dir=3Dltr><BR>=0A=
<HR tabIndex=3D-1>=0A=
<FONT face=3DTahoma size=3D2><B>From:</B> 陈建春 =
[mailto:chenjch [at] maxthon.net]<BR><B>Sent:</B> Wed 1/13/2010 7:08 =
AM<BR><B>To:</B> cfaust-dougot<BR><B>Cc:</B> =
modperl [at] perl.apache.org<BR><B>Subject:</B> Re: Apache Blank =
Pages<BR></FONT><BR></DIV>=0A=
<DIV>what is your apache's mpm? worker or prefork?<BR><BR>Our site =
sometimes also rise similar error(like glibc detected ... in error log ) =
under worker mpm.<BR><BR>=0A=
<DIV class=3Dmoz-signature>=0A=
<P style=3D"FONT-SIZE: 9pt; MARGIN: 0pt 0pt 10px; COLOR: =
rgb(128,128,128); LINE-HEIGHT: 125%; FONT-FAMILY: Verdana"><SPAN =
style=3D"COLOR: =
rgb(0,81,151)"><STRONG>陈建春 | ChenJianchun<=
/STRONG></SPAN><BR>傲游Web应用部<BR><SPAN =
style=3D"FONT-SIZE: 8pt; COLOR: rgb(99,36,35)">E-mail: <A =
style=3D"COLOR: rgb(128,128,128); TEXT-DECORATION: none" =
href=3D"mailto:chenjch [at] maxthon.net">chenjch [at] maxthon.net</A> </SPAN></P>=0A=
<P style=3D"FONT-SIZE: 9pt; MARGIN: 0pt 0pt 10px; COLOR: =
rgb(128,128,128); LINE-HEIGHT: 175%; FONT-FAMILY: Verdana"><SPAN =
style=3D"FONT-SIZE: 11pt; COLOR: rgb(0,81,151)"><STRONG>Maxthon<SUP =
style=3D"FONT-SIZE: 8pt">=AE</SUP></STRONG></SPAN> =
--每个人的互联网中心=
;!         <SPAN =
style=3D"FONT-SIZE: 9pt; COLOR: =
rgb(0,81,151)">上网从傲游开始!<=
/SPAN><BR><A style=3D"COLOR: rgb(66,113,144); TEXT-DECORATION: none" =
href=3D"http://www.maxthon.cn/">傲游天下科&=
#25216;有限公司(中国)</A> | <A =
style=3D"FONT-SIZE: 8pt; COLOR: rgb(66,113,144); TEXT-DECORATION: none" =
href=3D"http://www.maxthon.cn/">www.maxthon.cn</A> </P>=0A=
<P style=3D"FONT-SIZE: 9pt; MARGIN: 0pt; COLOR: rgb(92,115,47); =
LINE-HEIGHT: 150%; FONT-FAMILY: =
Verdana"><STRONG>诚信、创新、务=
实、奋斗!</STRONG></P></DIV><BR><BR>cfaust=
-dougot 写道: =0A=
<BLOCKQUOTE cite=3D"" type=3D"cite">=0A=
<DIV><FONT face=3DArial color=3D#000000 size=3D2>Hello,</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>I have a bizarre problem I'm hoping =
someone could give me some suggestions with.</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>I have a couple of MP2 scripts running =
on a server, they are both similar in use of modules and structure. =
Without any recent changes, one of the scripts is producing a blank =
apache page on SOME requests.</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>It's not always the same function, it =
can happen to any of the function calls contained in the =
script.</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>When the blank page happens there is =
nothing in either the access log or the error log of that virtual host =
(like the request never made it that far).</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>In the default error log I will get =
something like</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV>[notice] child pid 11497 exit signal Aborted (6)</DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>Sometimes (but not always), I'll =
see</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV>*** glibc detected *** malloc(): memory corruption: 0x09c120f8 =
***</DIV>=0A=
<DIV> </DIV>=0A=
<DIV>=0A=
<DIV><FONT face=3DArial size=3D2>There is also no consistency to the =
blank page, sometimes you hit the URL and you get the content, sometimes =
you get a blank page, sometimes 1 refresh on the blank page gives you =
content, other times it can take 3 - 7 refreshes before the content =
comes.</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>I've been trying to pull apart my =
script piece by piece in the hopes that I could at least narrow it down =
to some specific section but I'm not having a lot of luck.</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial size=3D2>Any thoughts on how I could debug this =
better?</FONT></DIV>=0A=
<DIV> </DIV>=0A=
<DIV><FONT face=3DArial =
size=3D2>TIA!</FONT></DIV></DIV></BLOCKQUOTE></DIV></BODY></HTML>
------_=_NextPart_001_01CA944B.F026B949--
Chris Faust [ Mi, 13 Januar 2010 13:28 ] [ ID #2028673 ]

Re: Apache Blank Pages

On Wed, Jan 13, 2010 at 7:28 AM, cfaust-dougot <cfaust [at] doyougot.com> wrote:
> If I try to connect to a DB in that 2nd virtual host I have the problem. If
> I make no connection then there is no problem. Also if I connect to the same
> DB that the 1st virtual host does, then there is no problem. It's only when
> I try to connect to another DB that the problem comes into play.

It's possible you are opening this handle during startup and trying to
use it after the fork. That would result in the sort of failures
you're seeing.

- Perrin
Perrin Harkins [ Mi, 13 Januar 2010 18:07 ] [ ID #2028677 ]

RE: Apache Blank Pages

This is a multi-part message in MIME format.

------_=_NextPart_001_01CA94A0.7411A88B
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Do you mean on apache startup? I'm not calling DBI or DBD in startup.pl. =
Any other module would be after the fork, wouldn't?

Thanks!!

________________________________

From: Perrin Harkins [mailto:pharkins [at] gmail.com]
Sent: Wed 1/13/2010 12:07 PM
To: cfaust-dougot
Cc: ???; modperl [at] perl.apache.org
Subject: Re: Apache Blank Pages



On Wed, Jan 13, 2010 at 7:28 AM, cfaust-dougot <cfaust [at] doyougot.com> =
wrote:
> If I try to connect to a DB in that 2nd virtual host I have the =
problem. If
> I make no connection then there is no problem. Also if I connect to =
the same
> DB that the 1st virtual host does, then there is no problem. It's only =
when
> I try to connect to another DB that the problem comes into play.

It's possible you are opening this handle during startup and trying to
use it after the fork. That would result in the sort of failures
you're seeing.

- Perrin



------_=_NextPart_001_01CA94A0.7411A88B
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML dir=3Dltr><HEAD><TITLE>Re: Apache Blank Pages</TITLE>=0A=
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dunicode">=0A=
<META content=3D"MSHTML 6.00.6001.18349" name=3DGENERATOR></HEAD>=0A=
<BODY>=0A=
<DIV id=3DidOWAReplyText47019 dir=3Dltr>=0A=
<DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=3D2>Do you mean =
on apache startup? I'm not calling DBI or DBD in startup.pl. Any =
other module would be after the fork, wouldn't?</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>Thanks!!</FONT></DIV></DIV>=0A=
<DIV dir=3Dltr><BR>=0A=
<HR tabIndex=3D-1>=0A=
<FONT face=3DTahoma size=3D2><B>From:</B> Perrin Harkins =
[mailto:pharkins [at] gmail.com]<BR><B>Sent:</B> Wed 1/13/2010 12:07 =
PM<BR><B>To:</B> cfaust-dougot<BR><B>Cc:</B> ???; =
modperl [at] perl.apache.org<BR><B>Subject:</B> Re: Apache Blank =
Pages<BR></FONT><BR></DIV>=0A=
<DIV>=0A=
<P><FONT size=3D2>On Wed, Jan 13, 2010 at 7:28 AM, cfaust-dougot =
<cfaust [at] doyougot.com> wrote:<BR>> If I try to connect to a DB =
in that 2nd virtual host I have the problem. If<BR>> I make no =
connection then there is no problem. Also if I connect to the =
same<BR>> DB that the 1st virtual host does, then there is no =
problem. It's only when<BR>> I try to connect to another DB that the =
problem comes into play.<BR><BR>It's possible you are opening this =
handle during startup and trying to<BR>use it after the fork.  That =
would result in the sort of failures<BR>you're seeing.<BR><BR>- =
Perrin<BR></FONT></P></DIV></BODY></HTML>
------_=_NextPart_001_01CA94A0.7411A88B--
Chris Faust [ Mi, 13 Januar 2010 23:31 ] [ ID #2028682 ]

Re: Apache Blank Pages

On Wed, Jan 13, 2010 at 5:31 PM, cfaust-dougot <cfaust [at] doyougot.com> wrote:
> Do you mean on apache startup? I'm not calling DBI or DBD=A0in startup.pl=
.. Any
> other module would be after the fork, wouldn't?

Some modules (e.g. Class::DBI) will open a connection when you use
them. If you're loading any modules at all in startup, there's a
possibility that this could be the issue.

- Perrin
Perrin Harkins [ Mi, 13 Januar 2010 23:36 ] [ ID #2028683 ]

RE: Apache Blank Pages

This is a multi-part message in MIME format.

------_=_NextPart_001_01CA94A3.866005DA
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Ouch, that could get messy.

Below is what I currently call in startup, by any chance does anything =
pop out at you? Other wise I'll start going though them one at a time.

Thanks Perrin

use ModPerl::MethodLookup;
ModPerl::MethodLookup::preload_all_modules( );
use ModPerl::Util ( ); #for CORE::GLOBAL::exit
use APR::Request ();
use APR::Request::Apache2 ();
use APR::Request::CGI ();
use APR::Request::Cookie ();
use APR::Request::Error ();
use APR::Request::Hook ();
use APR::Request::Param ();
use APR::Request::Parser ();
use APR::Table ();
use Apache2::RequestRec;
use Apache2::RequestIO;
use Apache2::RequestUtil;
use Apache2::Upload ();
use Apache2::Request ();
use Apache2::Cookie ();
use Apache2::ServerUtil();
use Apache2::Connection();
use Apache2::Log();
use ModPerl::Registry();
use Apache2::Const -compile =3D> ':common';
use Apache2::Const -compile =3D> qw(OK);
use Apache2::Const -compile =3D> qw(REDIRECT);
use MIME::Lite ();
use MIME::Lite::HTML ();
use HTML::Template ();
use HTML::TagFilter ();
use Data::Page ();
use Data::Pageset ();
use Image::Magick ();
use Image::Magick::Thumbnail ();
use Image::Magick::Thumbnail::Fixed ();


________________________________

From: Perrin Harkins [mailto:pharkins [at] gmail.com]
Sent: Wed 1/13/2010 5:36 PM
To: cfaust-dougot
Cc: modperl [at] perl.apache.org
Subject: Re: Apache Blank Pages



On Wed, Jan 13, 2010 at 5:31 PM, cfaust-dougot <cfaust [at] doyougot.com> =
wrote:
> Do you mean on apache startup? I'm not calling DBI or DBD in =
startup.pl. Any
> other module would be after the fork, wouldn't?

Some modules (e.g. Class::DBI) will open a connection when you use
them. If you're loading any modules at all in startup, there's a
possibility that this could be the issue.

- Perrin



------_=_NextPart_001_01CA94A3.866005DA
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML dir=3Dltr><HEAD><TITLE>Re: Apache Blank Pages</TITLE>=0A=
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dunicode">=0A=
<META content=3D"MSHTML 6.00.6001.18349" name=3DGENERATOR></HEAD>=0A=
<BODY>=0A=
<DIV id=3DidOWAReplyText97292 dir=3Dltr>=0A=
<DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=3D2>Ouch, that =
could get messy.</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>Below is what I currently =
call in startup, by any chance does anything pop out at you? Other wise =
I'll start going though them one at a time.</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>Thanks Perrin</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr>use =
ModPerl::MethodLookup;<BR>ModPerl::MethodLookup::preload_all_modules( =
);</DIV>=0A=
<DIV dir=3Dltr>use ModPerl::Util ( ); #for CORE::GLOBAL::exit</DIV>=0A=
<DIV dir=3Dltr>use APR::Request ();<BR>use APR::Request::Apache2 =
();<BR>use APR::Request::CGI ();<BR>use APR::Request::Cookie ();<BR>use =
APR::Request::Error ();<BR>use APR::Request::Hook ();<BR>use =
APR::Request::Param ();<BR>use APR::Request::Parser ();<BR>use =
APR::Table ();</DIV>=0A=
<DIV dir=3Dltr>use Apache2::RequestRec;<BR>use =
Apache2::RequestIO;<BR>use Apache2::RequestUtil;<BR>use Apache2::Upload =
();<BR>use Apache2::Request ();<BR>use Apache2::Cookie ();<BR>use =
Apache2::ServerUtil();<BR>use Apache2::Connection();<BR>use =
Apache2::Log();</DIV>=0A=
<DIV dir=3Dltr>use ModPerl::Registry();</DIV>=0A=
<DIV dir=3Dltr>use Apache2::Const -compile =3D> ':common';<BR>use =
Apache2::Const -compile =3D> qw(OK);<BR>use Apache2::Const -compile =
=3D> qw(REDIRECT);</DIV>=0A=
<DIV dir=3Dltr>use MIME::Lite ();<BR>use MIME::Lite::HTML ();<BR>use =
HTML::Template ();<BR>use HTML::TagFilter ();<BR>use Data::Page =
();<BR>use Data::Pageset ();<BR>use Image::Magick ();<BR>use =
Image::Magick::Thumbnail ();<BR>use Image::Magick::Thumbnail::Fixed =
();</DIV>=0A=
<DIV dir=3Dltr> </DIV></DIV>=0A=
<DIV dir=3Dltr><BR>=0A=
<HR tabIndex=3D-1>=0A=
<FONT face=3DTahoma size=3D2><B>From:</B> Perrin Harkins =
[mailto:pharkins [at] gmail.com]<BR><B>Sent:</B> Wed 1/13/2010 5:36 =
PM<BR><B>To:</B> cfaust-dougot<BR><B>Cc:</B> =
modperl [at] perl.apache.org<BR><B>Subject:</B> Re: Apache Blank =
Pages<BR></FONT><BR></DIV>=0A=
<DIV>=0A=
<P><FONT size=3D2>On Wed, Jan 13, 2010 at 5:31 PM, cfaust-dougot =
<cfaust [at] doyougot.com> wrote:<BR>> Do you mean on apache =
startup? I'm not calling DBI or DBD in startup.pl. Any<BR>> =
other module would be after the fork, wouldn't?<BR><BR>Some modules =
(e.g. Class::DBI) will open a connection when you use<BR>them.  If =
you're loading any modules at all in startup, there's a<BR>possibility =
that this could be the issue.<BR><BR>- =
Perrin<BR></FONT></P></DIV></BODY></HTML>
------_=_NextPart_001_01CA94A3.866005DA--
Chris Faust [ Mi, 13 Januar 2010 23:52 ] [ ID #2028684 ]

Re: Apache Blank Pages

On Wed, Jan 13, 2010 at 5:52 PM, cfaust-dougot <cfaust [at] doyougot.com> wrote:
> Below is what I currently call in startup, by any chance does anything po=
p
> out at you?

Nope, those all look fine to me.

> Other wise I'll=A0start going though them one at a time.

A binary search is good for this sort of thing.

- Perrin
Perrin Harkins [ Do, 14 Januar 2010 22:30 ] [ ID #2028792 ]

RE: Apache Blank Pages

This is a multi-part message in MIME format.

------_=_NextPart_001_01CA9570.79D49900
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks Perrin,

Long story short, I'm in the process of moving to another machine. I =
wanted to ask you though, is there any modules I should stay away from =
loading in startup.pl? Should DBI and DBD be loaded within each script =
and not within startup?

I've always been under the impression that if it was a module that I was =
going to be using in the majority of my scripts then I should put it in =
startup. Was that thinking wrong?

TIA!!!

________________________________

From: Perrin Harkins [mailto:pharkins [at] gmail.com]
Sent: Thu 1/14/2010 4:30 PM
To: cfaust-dougot
Cc: modperl [at] perl.apache.org
Subject: Re: Apache Blank Pages



On Wed, Jan 13, 2010 at 5:52 PM, cfaust-dougot <cfaust [at] doyougot.com> =
wrote:
> Below is what I currently call in startup, by any chance does anything =
pop
> out at you?

Nope, those all look fine to me.

> Other wise I'll start going though them one at a time.

A binary search is good for this sort of thing.

- Perrin



------_=_NextPart_001_01CA9570.79D49900
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML dir=3Dltr><HEAD><TITLE>Re: Apache Blank Pages</TITLE>=0A=
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dunicode">=0A=
<META content=3D"MSHTML 6.00.6001.18349" name=3DGENERATOR></HEAD>=0A=
<BODY>=0A=
<DIV id=3DidOWAReplyText76120 dir=3Dltr>=0A=
<DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=3D2>Thanks =
Perrin,</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>Long story short, I'm in the =
process of moving to another machine. I wanted to ask you though, is =
there any modules I should stay away from loading in startup.pl? Should =
DBI and DBD be loaded within each script and not within =
startup?</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>I've always been under the =
impression that if it was a module that I was going to be using in the =
majority of my scripts then I should put it in startup. Was that =
thinking wrong?</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>TIA!!!</FONT></DIV></DIV>=0A=
<DIV dir=3Dltr><BR>=0A=
<HR tabIndex=3D-1>=0A=
<FONT face=3DTahoma size=3D2><B>From:</B> Perrin Harkins =
[mailto:pharkins [at] gmail.com]<BR><B>Sent:</B> Thu 1/14/2010 4:30 =
PM<BR><B>To:</B> cfaust-dougot<BR><B>Cc:</B> =
modperl [at] perl.apache.org<BR><B>Subject:</B> Re: Apache Blank =
Pages<BR></FONT><BR></DIV>=0A=
<DIV>=0A=
<P><FONT size=3D2>On Wed, Jan 13, 2010 at 5:52 PM, cfaust-dougot =
<cfaust [at] doyougot.com> wrote:<BR>> Below is what I currently =
call in startup, by any chance does anything pop<BR>> out at =
you?<BR><BR>Nope, those all look fine to me.<BR><BR>> Other wise =
I'll start going though them one at a time.<BR><BR>A binary search =
is good for this sort of thing.<BR><BR>- =
Perrin<BR></FONT></P></DIV></BODY></HTML>
------_=_NextPart_001_01CA9570.79D49900--
Chris Faust [ Fr, 15 Januar 2010 00:20 ] [ ID #2028851 ]

Re: Apache Blank Pages

On Thu, Jan 14, 2010 at 6:20 PM, cfaust-dougot <cfaust [at] doyougot.com> wrote:
> Long story short, I'm in the process of moving to another machine. I wanted
> to ask you though, is there any modules I should stay away from loading in
> startup.pl? Should DBI and DBD be loaded within each script and not within
> startup?

You just need to avoid opening files or sockets before forking. It's
fine to load DBI/DBD.

> I've always been under the impression that if it was a module that I was
> going to be using in the majority of my scripts then I should put it in
> startup.

That's correct.

- Perrin
Perrin Harkins [ Fr, 15 Januar 2010 00:24 ] [ ID #2028852 ]
Webserver » gmane.comp.apache.mod-perl » Apache Blank Pages

Vorheriges Thema: Caveats to using Perl Sections for server configuration?
Nächstes Thema: intermittent segfaults, ssl?