Apache Blank Pages
am 12.01.2010 16:19:01 von Chris Faust
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,
=20
I have a bizarre problem I'm hoping someone could give me some =
suggestions with.
=20
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.
=20
It's not always the same function, it can happen to any of the function =
calls contained in the script.
=20
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).
=20
In the default error log I will get something like
=20
[notice] child pid 11497 exit signal Aborted (6)
=20
Sometimes (but not always), I'll see
=20
*** glibc detected *** malloc(): memory corruption: 0x09c120f8 ***
=20
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.
=20
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.
=20
Any thoughts on how I could debug this better?
=20
TIA!
------_=_NextPart_001_01CA939A.9195A68C
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
=0A=
=0A=
=0A=
=0A=
Hello,
=0A=
=0A=
I have a bizarre problem I'm hoping =
someone could give me some suggestions with.
=0A=
=0A=
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.
=0A=
=0A=
It's not always the same function, it =
can happen to any of the function calls contained in the =
script.
=0A=
=0A=
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).
=0A=
=0A=
In the default error log I will get =
something like
=0A=
=0A=
[notice] child pid 11497 exit signal Aborted (6)
=0A=
=0A=
Sometimes (but not always), I'll =
see
=0A=
=0A=
*** glibc detected *** malloc(): memory corruption: 0x09c120f8 =
***
=0A=
=0A=
=0A=
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.
=0A=
=0A=
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.
=0A=
=0A=
Any thoughts on how I could debug this =
better?
=0A=
=0A=
TIA!
------_=_NextPart_001_01CA939A.9195A68C--
Re: Apache Blank Pages
am 12.01.2010 17:47:33 von William T
--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" 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
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.
On Jan 12, 2010 7:19 AM, "cfaust-dougot&q=
uot; <>=
wrote:
Hello,
=A0
I have a bizarre problem I'm hopin=
g someone could give me some suggestions with.
=A0
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.
=A0
It's not always the same function,=
it can happen to any of the function calls contained in the script.=
=A0
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).
=A0
In the default error log I will get so=
mething like
=A0
[notice] child pid 11497 exit signal Aborted (6)
=A0
Sometimes (but not always), I'll s=
ee
=A0
*** glibc detected *** malloc(): memory corruption: 0x09c120f8 ***
v>
=A0
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.
iv>
=A0
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.
=A0
Any thoughts on how I could debug this=
better?
=A0
TIA!
ote>
--0016e64ca7e6176fee047cfa6968--
RE: Apache Blank Pages
am 12.01.2010 19:34:24 von Chris Faust
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.
=20
I've gotten a little further since my last post, but it still doesn't =
make sense.
=20
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.
=20
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).
=20
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.
=20
Virtual Host 2 makes the connection within "sub handler" and that's the =
one that doesn't work.
=20
No closer to a solution though - any method I try to use to connect to =
the DB from VH2 results in this problem.
=20
Still doesn't make a lot of sense.
=20
=20
=20
=20
=20
________________________________
From: William T [mailto:dietbuddha@gmail.com]
Sent: Tue 1/12/2010 11:47 AM
To: cfaust-dougot
Cc: modperl@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" wrote:
=09
=09
Hello,
=20
I have a bizarre problem I'm hoping someone could give me some =
suggestions with.
=20
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.
=20
It's not always the same function, it can happen to any of the function =
calls contained in the script.
=20
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).
=20
In the default error log I will get something like
=20
[notice] child pid 11497 exit signal Aborted (6)
=20
Sometimes (but not always), I'll see
=20
*** glibc detected *** malloc(): memory corruption: 0x09c120f8 ***
=20
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.
=20
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.
=20
Any thoughts on how I could debug this better?
=20
TIA!
------_=_NextPart_001_01CA93B5.DD3B167C
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
=0A=
=0A=
=0A=
=0A=
=0A=
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.
=0A=
=0A=
I've gotten a little further =
since my last post, but it still doesn't make sense.
=0A=
=0A=
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.
=0A=
=0A=
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).
=0A=
=0A=
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.
=0A=
=0A=
Virtual Host 2 makes the =
connection within "sub handler" and that's the one that doesn't =
work.
=0A=
=0A=
No closer to a solution =
though - any method I try to use to connect to the DB from VH2 results =
in this problem.
=0A=
=0A=
Still doesn't make a lot of =
sense.
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
From: William T =
[mailto:dietbuddha@gmail.com]
Sent: Tue 1/12/2010 11:47 =
AM
To: cfaust-dougot
Cc: =
modperl@perl.apache.org
Subject: Re: Apache Blank =
Pages
=0A=
=0A=
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.
=0A=
=0A=
On Jan 12, 2010 7:19 AM, "cfaust-dougot" =
<> =
wrote:
=0A=
=0A=
Hello,
=0A=
=0A=
I have a bizarre problem I'm hoping =
someone could give me some suggestions with.
=0A=
=0A=
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.
=0A=
=0A=
It's not always the same function, it =
can happen to any of the function calls contained in the =
script.
=0A=
=0A=
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).
=0A=
=0A=
In the default error log I will get =
something like
=0A=
=0A=
[notice] child pid 11497 exit signal Aborted (6)
=0A=
=0A=
Sometimes (but not always), I'll =
see
=0A=
=0A=
*** glibc detected *** malloc(): memory corruption: 0x09c120f8 =
***
=0A=
=0A=
=0A=
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.
=0A=
=0A=
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.
=0A=
=0A=
Any thoughts on how I could debug this =
better?
=0A=
=0A=
size=3D2>TIA!
=0A=
------_=_NextPart_001_01CA93B5.DD3B167C--
Re: Apache Blank Pages
am 13.01.2010 13:08:37 von chenjch
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@maxthon.net
*Maxthon^® * --æ¯ä¸ªäººçäºèç½ä¸å¿! ä¸ç½ä»å²æ¸¸å¼å§!
å²æ¸¸å¤©ä¸ç§ææéå
¬å¸(ä¸å½) | 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
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.
style="margin: 0pt 0pt 10px; font-size: 9pt; font-family: Verdana; line-height: 125%; color: rgb(128, 128, 128);">
é建æ¥Â | ChenJianchun
å²æ¸¸Webåºç¨é¨
E-mail:
href="mailto:chenjch@maxthon.net"
style="color: rgb(128, 128, 128); text-decoration: none;">chenjch@maxthon.net
style="margin: 0pt 0pt 10px; font-size: 9pt; font-family: Verdana; line-height: 175%; color: rgb(128, 128, 128);">
Maxthon
style="font-size: 8pt;">® --æ¯ä¸ªäººçäºèç½ä¸å¿!       Â
style="color: rgb(0, 81, 151); font-size: 9pt;">ä¸ç½ä»å²æ¸¸å¼å§!
style="color: rgb(66, 113, 144); text-decoration: none;">å²æ¸¸å¤©ä¸ç§ææéå
¬å¸(ä¸å½)
|
style="color: rgb(66, 113, 144); text-decoration: none; font-size: 8pt;">www.maxthon.cn
style="margin: 0pt; font-size: 9pt; font-family: Verdana; line-height: 150%; color: rgb(92, 115, 47);">
è¯
ä¿¡ãåæ°ãå¡å®ãå¥æï¼
cfaust-dougot åé:
cite="mid:B1DE2E9211866F4C840F440F731A0AE606C89C@exchback1.p ub.prevare.com"
type="cite">
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--
RE: Apache Blank Pages
am 13.01.2010 13:28:25 von Chris Faust
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
=20
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
=20
I've isolated the problem, you guys will say I'm crazy but I can =
reproduce the results over and over again.
=20
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.
=20
That makes no sense to me, but I've been able to reproduce it 8 =
different times without fail.
=20
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.
=20
It's really bizarre!!
=20
________________________________
From: ??? [mailto:chenjch@maxthon.net]
Sent: Wed 1/13/2010 7:08 AM
To: cfaust-dougot
Cc: modperl@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@maxthon.net=20
Maxthon=AE --?????????! ???????!
??????????(??) | www.maxthon.cn =
=20
???????????!
cfaust-dougot ??:=20
Hello,
=20
I have a bizarre problem I'm hoping someone could give me some =
suggestions with.
=20
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.
=20
It's not always the same function, it can happen to any of the function =
calls contained in the script.
=20
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).
=20
In the default error log I will get something like
=20
[notice] child pid 11497 exit signal Aborted (6)
=20
Sometimes (but not always), I'll see
=20
*** glibc detected *** malloc(): memory corruption: 0x09c120f8 ***
=20
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.
=20
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.
=20
Any thoughts on how I could debug this better?
=20
TIA!
------_=_NextPart_001_01CA944B.E7311F53
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
=0A=
=0A=
=0A=
=0A=
=0A=
It's =
prefork
=0A=
=0A=
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
=0A=
=0A=
I've isolated the problem, you guys will say I'm crazy =
but I can reproduce the results over and over again.
=0A=
=0A=
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.
=0A=
=0A=
That makes no sense to me, but I've been able to =
reproduce it 8 different times without fail.
=0A=
=0A=
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.
=0A=
=0A=
It's really bizarre!!
=0A=
=0A=
=0A=
=0A=
From: 陈建春 =
[mailto:chenjch@maxthon.net]
Sent: Wed 1/13/2010 7:08 =
AM
To: cfaust-dougot
Cc: =
modperl@perl.apache.org
Subject: Re: Apache Blank =
Pages
=0A=
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.
=0A=
=0A=
rgb(128,128,128); LINE-HEIGHT: 125%; FONT-FAMILY: Verdana">
style=3D"COLOR: =
rgb(0,81,151)">
陈建春 | ChenJianchun<=
/STRONG>
傲游Web应用部
style=3D"FONT-SIZE: 8pt; COLOR: rgb(99,36,35)">E-mail:
style=3D"COLOR: rgb(128,128,128); TEXT-DECORATION: none" =
href=3D"mailto:chenjch@maxthon.net">chenjch@maxthon.net =0A=
rgb(128,128,128); LINE-HEIGHT: 175%; FONT-FAMILY: Verdana">
style=3D"FONT-SIZE: 11pt; COLOR: rgb(0,81,151)">Maxthon
style=3D"FONT-SIZE: 8pt">=AE =
--每个人的互联网中心=
;!
style=3D"FONT-SIZE: 9pt; COLOR: =
rgb(0,81,151)">上网从傲游开始!<=
/SPAN>
href=3D"http://www.maxthon.cn/">傲游天下科&=
#25216;有限公司(中国) |
style=3D"FONT-SIZE: 8pt; COLOR: rgb(66,113,144); TEXT-DECORATION: none" =
href=3D"http://www.maxthon.cn/">www.maxthon.cn =0A=
LINE-HEIGHT: 150%; FONT-FAMILY: =
Verdana">诚信、创新、务=
实、奋斗!cfaust=
-dougot 写道: =0A=
=0A=
Hello,
=0A=
=0A=
I have a bizarre problem I'm hoping =
someone could give me some suggestions with.
=0A=
=0A=
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.
=0A=
=0A=
It's not always the same function, it =
can happen to any of the function calls contained in the =
script.
=0A=
=0A=
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).
=0A=
=0A=
In the default error log I will get =
something like
=0A=
=0A=
[notice] child pid 11497 exit signal Aborted (6)
=0A=
=0A=
Sometimes (but not always), I'll =
see
=0A=
=0A=
*** glibc detected *** malloc(): memory corruption: 0x09c120f8 =
***
=0A=
=0A=
=0A=
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.
=0A=
=0A=
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.
=0A=
=0A=
Any thoughts on how I could debug this =
better?
=0A=
=0A=
size=3D2>TIA!
------_=_NextPart_001_01CA944B.E7311F53--
RE: Apache Blank Pages
am 13.01.2010 13:28:37 von Chris Faust
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
=20
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
=20
I've isolated the problem, you guys will say I'm crazy but I can =
reproduce the results over and over again.
=20
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.
=20
That makes no sense to me, but I've been able to reproduce it 8 =
different times without fail.
=20
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.
=20
It's really bizarre!!
________________________________
From: ??? [mailto:chenjch@maxthon.net]
Sent: Wed 1/13/2010 7:08 AM
To: cfaust-dougot
Cc: modperl@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@maxthon.net=20
Maxthon=AE --?????????! ???????!
??????????(??) | www.maxthon.cn =
=20
???????????!
cfaust-dougot ??:=20
Hello,
=20
I have a bizarre problem I'm hoping someone could give me some =
suggestions with.
=20
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.
=20
It's not always the same function, it can happen to any of the function =
calls contained in the script.
=20
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).
=20
In the default error log I will get something like
=20
[notice] child pid 11497 exit signal Aborted (6)
=20
Sometimes (but not always), I'll see
=20
*** glibc detected *** malloc(): memory corruption: 0x09c120f8 ***
=20
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.
=20
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.
=20
Any thoughts on how I could debug this better?
=20
TIA!
------_=_NextPart_001_01CA944B.F026B949
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
It's =
prefork
=0A=
=0A=
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
=0A=
=0A=
I've isolated the problem, you guys will say I'm crazy =
but I can reproduce the results over and over again.
=0A=
=0A=
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.
=0A=
=0A=
That makes no sense to me, but I've been able to =
reproduce it 8 different times without fail.
=0A=
=0A=
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.
=0A=
=0A=
It's really bizarre!!
=0A=
=0A=
=0A=
From: 陈建春 =
[mailto:chenjch@maxthon.net]
Sent: Wed 1/13/2010 7:08 =
AM
To: cfaust-dougot
Cc: =
modperl@perl.apache.org
Subject: Re: Apache Blank =
Pages
=0A=
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.
=0A=
=0A=
rgb(128,128,128); LINE-HEIGHT: 125%; FONT-FAMILY: Verdana">
style=3D"COLOR: =
rgb(0,81,151)">
陈建春 | ChenJianchun<=
/STRONG>
傲游Web应用部
style=3D"FONT-SIZE: 8pt; COLOR: rgb(99,36,35)">E-mail:
style=3D"COLOR: rgb(128,128,128); TEXT-DECORATION: none" =
href=3D"mailto:chenjch@maxthon.net">chenjch@maxthon.net =0A=
rgb(128,128,128); LINE-HEIGHT: 175%; FONT-FAMILY: Verdana">
style=3D"FONT-SIZE: 11pt; COLOR: rgb(0,81,151)">Maxthon
style=3D"FONT-SIZE: 8pt">=AE =
--每个人的互联网中心=
;!
style=3D"FONT-SIZE: 9pt; COLOR: =
rgb(0,81,151)">上网从傲游开始!<=
/SPAN>
href=3D"http://www.maxthon.cn/">傲游天下科&=
#25216;有限公司(中国) |
style=3D"FONT-SIZE: 8pt; COLOR: rgb(66,113,144); TEXT-DECORATION: none" =
href=3D"http://www.maxthon.cn/">www.maxthon.cn =0A=
LINE-HEIGHT: 150%; FONT-FAMILY: =
Verdana">诚信、创新、务=
实、奋斗!cfaust=
-dougot 写道: =0A=
=0A=
Hello,
=0A=
=0A=
I have a bizarre problem I'm hoping =
someone could give me some suggestions with.
=0A=
=0A=
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.
=0A=
=0A=
It's not always the same function, it =
can happen to any of the function calls contained in the =
script.
=0A=
=0A=
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).
=0A=
=0A=
In the default error log I will get =
something like
=0A=
=0A=
[notice] child pid 11497 exit signal Aborted (6)
=0A=
=0A=
Sometimes (but not always), I'll =
see
=0A=
=0A=
*** glibc detected *** malloc(): memory corruption: 0x09c120f8 =
***
=0A=
=0A=
=0A=
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.
=0A=
=0A=
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.
=0A=
=0A=
Any thoughts on how I could debug this =
better?
=0A=
=0A=
size=3D2>TIA!
------_=_NextPart_001_01CA944B.F026B949--
Re: Apache Blank Pages
am 13.01.2010 18:07:36 von Perrin Harkins
On Wed, Jan 13, 2010 at 7:28 AM, cfaust-dougot 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
RE: Apache Blank Pages
am 13.01.2010 23:31:14 von Chris Faust
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?
=20
Thanks!!
________________________________
From: Perrin Harkins [mailto:pharkins@gmail.com]
Sent: Wed 1/13/2010 12:07 PM
To: cfaust-dougot
Cc: ???; modperl@perl.apache.org
Subject: Re: Apache Blank Pages
On Wed, Jan 13, 2010 at 7:28 AM, cfaust-dougot =
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
Re: Apache Blank Pages=0A=
=0A=
=0A=
=0A=
=0A=
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?
=0A=
=0A=
Thanks!!
=0A=
=0A=
=0A=
From: Perrin Harkins =
[mailto:pharkins@gmail.com]
Sent: Wed 1/13/2010 12:07 =
PM
To: cfaust-dougot
Cc: ???; =
modperl@perl.apache.org
Subject: Re: Apache Blank =
Pages
=0A=
=0A=
On Wed, Jan 13, 2010 at 7:28 AM, cfaust-dougot =
<cfaust@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--
Re: Apache Blank Pages
am 13.01.2010 23:36:31 von Perrin Harkins
On Wed, Jan 13, 2010 at 5:31 PM, cfaust-dougot 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
RE: Apache Blank Pages
am 13.01.2010 23:52:53 von Chris Faust
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.
=20
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.
=20
Thanks Perrin
=20
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 ();
=20
________________________________
From: Perrin Harkins [mailto:pharkins@gmail.com]
Sent: Wed 1/13/2010 5:36 PM
To: cfaust-dougot
Cc: modperl@perl.apache.org
Subject: Re: Apache Blank Pages
On Wed, Jan 13, 2010 at 5:31 PM, cfaust-dougot =
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
Re: Apache Blank Pages=0A=
=0A=
=0A=
=0A=
=0A=
Ouch, that =
could get messy.
=0A=
=0A=
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.
=0A=
=0A=
Thanks Perrin
=0A=
=0A=
use =
ModPerl::MethodLookup;
ModPerl::MethodLookup::preload_all_modules( =
);
=0A=
use ModPerl::Util ( ); #for CORE::GLOBAL::exit
=0A=
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 ();
=0A=
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();
=0A=
use ModPerl::Registry();
=0A=
use Apache2::Const -compile =3D> ':common';
use =
Apache2::Const -compile =3D> qw(OK);
use Apache2::Const -compile =
=3D> qw(REDIRECT);
=0A=
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 =
();
=0A=
=0A=
=0A=
=0A=
From: Perrin Harkins =
[mailto:pharkins@gmail.com]
Sent: Wed 1/13/2010 5:36 =
PM
To: cfaust-dougot
Cc: =
modperl@perl.apache.org
Subject: Re: Apache Blank =
Pages
=0A=
=0A=
On Wed, Jan 13, 2010 at 5:31 PM, cfaust-dougot =
<cfaust@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--
Re: Apache Blank Pages
am 14.01.2010 22:30:13 von Perrin Harkins
On Wed, Jan 13, 2010 at 5:52 PM, cfaust-dougot 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
RE: Apache Blank Pages
am 15.01.2010 00:20:28 von Chris Faust
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,
=20
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?
=20
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?
=20
TIA!!!
________________________________
From: Perrin Harkins [mailto:pharkins@gmail.com]
Sent: Thu 1/14/2010 4:30 PM
To: cfaust-dougot
Cc: modperl@perl.apache.org
Subject: Re: Apache Blank Pages
On Wed, Jan 13, 2010 at 5:52 PM, cfaust-dougot =
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
Re: Apache Blank Pages=0A=
=0A=
=0A=
=0A=
=0A=
Thanks =
Perrin,
=0A=
=0A=
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?
=0A=
=0A=
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?
=0A=
=0A=
TIA!!!
=0A=
=0A=
=0A=
From: Perrin Harkins =
[mailto:pharkins@gmail.com]
Sent: Thu 1/14/2010 4:30 =
PM
To: cfaust-dougot
Cc: =
modperl@perl.apache.org
Subject: Re: Apache Blank =
Pages
=0A=
=0A=
On Wed, Jan 13, 2010 at 5:52 PM, cfaust-dougot =
<cfaust@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--
Re: Apache Blank Pages
am 15.01.2010 00:24:51 von Perrin Harkins
On Thu, Jan 14, 2010 at 6:20 PM, cfaust-dougot 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