Ask a Question related to PHP Bugs, Design and Development.
-
errol at issi dot co dot za #1
#40658 [NEW]: Sgementation fault
From: errol at issi dot co dot za
Operating system: Linux 2.6.20 on ARM
PHP version: 5.2.1
PHP Bug Type: CGI related
Bug description: Sgementation fault
Description:
------------
I was running 5.0.4 (cgi) on an ARM processor (embedded) with linux 2.4.27
and it worked successfully. I have now upgraded to linux 2.6.20 and PHP
5.2.1 (cgi) and I now get a segmentation fault on some of my scripts that
previously worked. I have no gdb on the embedded system and have not been
able to reproduce the problem on my SuSE linux systems.
Reproduce code:
---------------
Part of code ...
<table>
<?php
exec("/usr/sbin/ntpq -c peers",$result);
while (list($key,$value) = each($result)){
$table = split(" *",trim($value));
if ($key == 0){
echo "<tr>";
echo "<th>Reference</th>";
echo "<th>$table[0]</th>";
echo "<th>$table[1]</th>";
echo "<th>$table[2]</th>";
echo "<th>$table[3]</th>";
echo "<th>$table[4]</th>";
echo "<th>$table[5]</th>";
echo "<th>$table[6]</th>";
echo "<th>$table[7]</th>";
echo "<th>$table[8]</th>";
echo "<th>$table[9]</th>";
echo "</tr>";
Expected result:
----------------
-bash-3.2# ./php -v
PHP 5.2.1 (cgi) (built: Feb 23 2007 17:03:34)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
Expected result is a table of values.
Actual result:
--------------
Result:
-bash-3.2# ./php ../htdocs/ntp.php
X-Powered-By: PHP/5.2.1
Content-type: text/html
<!--
#************************************************* **********************
# Integrated Seismic System
# =========================
#
# $Id: ntp.php,v 1.9 2006/07/11 09:11:41 issd Exp $
#
#************************************************* **********************
#
# All rights reserved. Copyright by ISS International Ltd., 1988-2003.
#
# No reproduction of this computer program in whole or in part, in
# any form, by any electronic, mechanical or other means is permitted
# without the written permission of ISS International Limited.
#
# END OF RCS HEADER
-->
<html>
<head>
<title>Seismic Controller</title>
<link
href="controller.css"
rel="stylesheet"/>
<script src="javascript/issupdate.js"></script>
<!-- <meta
content="30"
http-equiv="Refresh"/>-->
</head>
<body onload=setTimeout("updateISS('ntp.php',30000)",300 0)>
<center>
<h1>Seismic Controller</h1>
<h1> ()</h1>
<h2>Tue Feb 27 11:20:54 UTC 2007
</h2>
<img
src="monitors/images/ISSsmall_logo.png"/>
<br/>
<table>
Segmentation fault
--
Edit bug report at [url]http://bugs.php.net/?id=40658&edit=1[/url]
--
Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40658&r=trysnapshot44[/url]
Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40658&r=trysnapshot52[/url]
Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40658&r=trysnapshot60[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40658&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=40658&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=40658&r=needtrace[/url]
Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40658&r=needscript[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=40658&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=40658&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=40658&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=40658&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=40658&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=40658&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40658&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=40658&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=40658&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40658&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=40658&r=float[/url]
No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40658&r=nozend[/url]
MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40658&r=mysqlcfg[/url]
errol at issi dot co dot za Guest
-
fault handling
Hey, is there a possibility to handle faults beyond the event.fault.faultstring calling methods on RemoteObjects. The fault string is usefull to... -
#25053 [Fbk->NoF]: seg fault
ID: 25053 Updated by: sniper@php.net Reported By: kevin at oceania dot net -Status: Feedback +Status: ... -
#25053 [Fbk->Opn]: seg fault
ID: 25053 User updated by: kevin at oceania dot net Reported By: kevin at oceania dot net -Status: Feedback... -
#25053 [Fbk]: seg fault
ID: 25053 Updated by: sniper@php.net Reported By: kevin at oceania dot net Status: Feedback Bug Type: ... -
Tracking down a seg fault
I am getting webcount.rb:818: Segmentation fault ruby 1.6.8 (2002-12-24) Abort from my program. It happens after running the program for... -
tony2001@php.net #2
#40658 [Opn->Fbk]: Sgementation fault
ID: 40658
Updated by: [email]tony2001@php.net[/email]
Reported By: errol at issi dot co dot za
-Status: Open
+Status: Feedback
Bug Type: CGI related
Operating System: Linux 2.6.20 on ARM
PHP Version: 5.2.1
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
[url]http://bugs.php.net/bugs-generating-backtrace.php[/url] for *NIX and
[url]http://bugs.php.net/bugs-generating-backtrace-win32.php[/url] for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2007-02-27 11:23:59] errol at issi dot co dot za
Description:
------------
I was running 5.0.4 (cgi) on an ARM processor (embedded) with linux
2.4.27 and it worked successfully. I have now upgraded to linux 2.6.20
and PHP 5.2.1 (cgi) and I now get a segmentation fault on some of my
scripts that previously worked. I have no gdb on the embedded system
and have not been able to reproduce the problem on my SuSE linux
systems.
Reproduce code:
---------------
Part of code ...
<table>
<?php
exec("/usr/sbin/ntpq -c peers",$result);
while (list($key,$value) = each($result)){
$table = split(" *",trim($value));
if ($key == 0){
echo "<tr>";
echo "<th>Reference</th>";
echo "<th>$table[0]</th>";
echo "<th>$table[1]</th>";
echo "<th>$table[2]</th>";
echo "<th>$table[3]</th>";
echo "<th>$table[4]</th>";
echo "<th>$table[5]</th>";
echo "<th>$table[6]</th>";
echo "<th>$table[7]</th>";
echo "<th>$table[8]</th>";
echo "<th>$table[9]</th>";
echo "</tr>";
Expected result:
----------------
-bash-3.2# ./php -v
PHP 5.2.1 (cgi) (built: Feb 23 2007 17:03:34)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
Expected result is a table of values.
Actual result:
--------------
Result:
-bash-3.2# ./php ../htdocs/ntp.php
X-Powered-By: PHP/5.2.1
Content-type: text/html
<!--
#************************************************* **********************
# Integrated Seismic System
# =========================
#
# $Id: ntp.php,v 1.9 2006/07/11 09:11:41 issd Exp $
#
#************************************************* **********************
#
# All rights reserved. Copyright by ISS International Ltd., 1988-2003.
#
# No reproduction of this computer program in whole or in part, in
# any form, by any electronic, mechanical or other means is permitted
# without the written permission of ISS International Limited.
#
# END OF RCS HEADER
-->
<html>
<head>
<title>Seismic Controller</title>
<link
href="controller.css"
rel="stylesheet"/>
<script src="javascript/issupdate.js"></script>
<!-- <meta
content="30"
http-equiv="Refresh"/>-->
</head>
<body onload=setTimeout("updateISS('ntp.php',30000)",300 0)>
<center>
<h1>Seismic Controller</h1>
<h1> ()</h1>
<h2>Tue Feb 27 11:20:54 UTC 2007
</h2>
<img
src="monitors/images/ISSsmall_logo.png"/>
<br/>
<table>
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40658&edit=1[/url]
tony2001@php.net Guest
-
errol at issi dot co dot za #3
#40658 [Fbk->Opn]: Sgementation fault
ID: 40658
User updated by: errol at issi dot co dot za
Reported By: errol at issi dot co dot za
-Status: Feedback
+Status: Open
Bug Type: CGI related
Operating System: Linux 2.6.20 on ARM
PHP Version: 5.2.1
New Comment:
I cannot generate a backtrace as I do not have gdb on the embedded ARM
system. I have also been unable to reproduce the problem on a system
where I have gdb.
I have been able to islolate the problem to this line of code.
while (list($key,$value) = each($result)){
I have checked and $result is a valid array of values.
Previous Comments:
------------------------------------------------------------------------
[2007-02-27 12:31:20] [email]tony2001@php.net[/email]
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
[url]http://bugs.php.net/bugs-generating-backtrace.php[/url] for *NIX and
[url]http://bugs.php.net/bugs-generating-backtrace-win32.php[/url] for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
[2007-02-27 11:23:59] errol at issi dot co dot za
Description:
------------
I was running 5.0.4 (cgi) on an ARM processor (embedded) with linux
2.4.27 and it worked successfully. I have now upgraded to linux 2.6.20
and PHP 5.2.1 (cgi) and I now get a segmentation fault on some of my
scripts that previously worked. I have no gdb on the embedded system
and have not been able to reproduce the problem on my SuSE linux
systems.
Reproduce code:
---------------
Part of code ...
<table>
<?php
exec("/usr/sbin/ntpq -c peers",$result);
while (list($key,$value) = each($result)){
$table = split(" *",trim($value));
if ($key == 0){
echo "<tr>";
echo "<th>Reference</th>";
echo "<th>$table[0]</th>";
echo "<th>$table[1]</th>";
echo "<th>$table[2]</th>";
echo "<th>$table[3]</th>";
echo "<th>$table[4]</th>";
echo "<th>$table[5]</th>";
echo "<th>$table[6]</th>";
echo "<th>$table[7]</th>";
echo "<th>$table[8]</th>";
echo "<th>$table[9]</th>";
echo "</tr>";
Expected result:
----------------
-bash-3.2# ./php -v
PHP 5.2.1 (cgi) (built: Feb 23 2007 17:03:34)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
Expected result is a table of values.
Actual result:
--------------
Result:
-bash-3.2# ./php ../htdocs/ntp.php
X-Powered-By: PHP/5.2.1
Content-type: text/html
<!--
#************************************************* **********************
# Integrated Seismic System
# =========================
#
# $Id: ntp.php,v 1.9 2006/07/11 09:11:41 issd Exp $
#
#************************************************* **********************
#
# All rights reserved. Copyright by ISS International Ltd., 1988-2003.
#
# No reproduction of this computer program in whole or in part, in
# any form, by any electronic, mechanical or other means is permitted
# without the written permission of ISS International Limited.
#
# END OF RCS HEADER
-->
<html>
<head>
<title>Seismic Controller</title>
<link
href="controller.css"
rel="stylesheet"/>
<script src="javascript/issupdate.js"></script>
<!-- <meta
content="30"
http-equiv="Refresh"/>-->
</head>
<body onload=setTimeout("updateISS('ntp.php',30000)",300 0)>
<center>
<h1>Seismic Controller</h1>
<h1> ()</h1>
<h2>Tue Feb 27 11:20:54 UTC 2007
</h2>
<img
src="monitors/images/ISSsmall_logo.png"/>
<br/>
<table>
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40658&edit=1[/url]
errol at issi dot co dot za Guest
-
tony2001@php.net #4
#40658 [Opn->Fbk]: Sgementation fault
ID: 40658
Updated by: [email]tony2001@php.net[/email]
Reported By: errol at issi dot co dot za
-Status: Open
+Status: Feedback
Bug Type: CGI related
Operating System: Linux 2.6.20 on ARM
PHP Version: 5.2.1
New Comment:
Well, I don't have an ARM system either.
So I really doubt we can fix something we can't reproduce and there is
no backtrace.
Previous Comments:
------------------------------------------------------------------------
[2007-02-27 12:45:00] errol at issi dot co dot za
I cannot generate a backtrace as I do not have gdb on the embedded ARM
system. I have also been unable to reproduce the problem on a system
where I have gdb.
I have been able to islolate the problem to this line of code.
while (list($key,$value) = each($result)){
I have checked and $result is a valid array of values.
------------------------------------------------------------------------
[2007-02-27 12:31:20] [email]tony2001@php.net[/email]
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
[url]http://bugs.php.net/bugs-generating-backtrace.php[/url] for *NIX and
[url]http://bugs.php.net/bugs-generating-backtrace-win32.php[/url] for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
[2007-02-27 11:23:59] errol at issi dot co dot za
Description:
------------
I was running 5.0.4 (cgi) on an ARM processor (embedded) with linux
2.4.27 and it worked successfully. I have now upgraded to linux 2.6.20
and PHP 5.2.1 (cgi) and I now get a segmentation fault on some of my
scripts that previously worked. I have no gdb on the embedded system
and have not been able to reproduce the problem on my SuSE linux
systems.
Reproduce code:
---------------
Part of code ...
<table>
<?php
exec("/usr/sbin/ntpq -c peers",$result);
while (list($key,$value) = each($result)){
$table = split(" *",trim($value));
if ($key == 0){
echo "<tr>";
echo "<th>Reference</th>";
echo "<th>$table[0]</th>";
echo "<th>$table[1]</th>";
echo "<th>$table[2]</th>";
echo "<th>$table[3]</th>";
echo "<th>$table[4]</th>";
echo "<th>$table[5]</th>";
echo "<th>$table[6]</th>";
echo "<th>$table[7]</th>";
echo "<th>$table[8]</th>";
echo "<th>$table[9]</th>";
echo "</tr>";
Expected result:
----------------
-bash-3.2# ./php -v
PHP 5.2.1 (cgi) (built: Feb 23 2007 17:03:34)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
Expected result is a table of values.
Actual result:
--------------
Result:
-bash-3.2# ./php ../htdocs/ntp.php
X-Powered-By: PHP/5.2.1
Content-type: text/html
<!--
#************************************************* **********************
# Integrated Seismic System
# =========================
#
# $Id: ntp.php,v 1.9 2006/07/11 09:11:41 issd Exp $
#
#************************************************* **********************
#
# All rights reserved. Copyright by ISS International Ltd., 1988-2003.
#
# No reproduction of this computer program in whole or in part, in
# any form, by any electronic, mechanical or other means is permitted
# without the written permission of ISS International Limited.
#
# END OF RCS HEADER
-->
<html>
<head>
<title>Seismic Controller</title>
<link
href="controller.css"
rel="stylesheet"/>
<script src="javascript/issupdate.js"></script>
<!-- <meta
content="30"
http-equiv="Refresh"/>-->
</head>
<body onload=setTimeout("updateISS('ntp.php',30000)",300 0)>
<center>
<h1>Seismic Controller</h1>
<h1> ()</h1>
<h2>Tue Feb 27 11:20:54 UTC 2007
</h2>
<img
src="monitors/images/ISSsmall_logo.png"/>
<br/>
<table>
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40658&edit=1[/url]
tony2001@php.net Guest
-
errol at issi dot co dot za #5
#40658 [Fbk->Opn]: Segmentation fault
ID: 40658
User updated by: errol at issi dot co dot za
-Summary: Sgementation fault
Reported By: errol at issi dot co dot za
-Status: Feedback
+Status: Open
Bug Type: CGI related
Operating System: Linux 2.6.20 on ARM
PHP Version: 5.2.1
New Comment:
I am busy trying a cross-compile of gdb and will see if I can get it to
run and produce the backtrace for you.
Previous Comments:
------------------------------------------------------------------------
[2007-02-27 13:20:04] [email]tony2001@php.net[/email]
Well, I don't have an ARM system either.
So I really doubt we can fix something we can't reproduce and there is
no backtrace.
------------------------------------------------------------------------
[2007-02-27 12:45:00] errol at issi dot co dot za
I cannot generate a backtrace as I do not have gdb on the embedded ARM
system. I have also been unable to reproduce the problem on a system
where I have gdb.
I have been able to islolate the problem to this line of code.
while (list($key,$value) = each($result)){
I have checked and $result is a valid array of values.
------------------------------------------------------------------------
[2007-02-27 12:31:20] [email]tony2001@php.net[/email]
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
[url]http://bugs.php.net/bugs-generating-backtrace.php[/url] for *NIX and
[url]http://bugs.php.net/bugs-generating-backtrace-win32.php[/url] for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
[2007-02-27 11:23:59] errol at issi dot co dot za
Description:
------------
I was running 5.0.4 (cgi) on an ARM processor (embedded) with linux
2.4.27 and it worked successfully. I have now upgraded to linux 2.6.20
and PHP 5.2.1 (cgi) and I now get a segmentation fault on some of my
scripts that previously worked. I have no gdb on the embedded system
and have not been able to reproduce the problem on my SuSE linux
systems.
Reproduce code:
---------------
Part of code ...
<table>
<?php
exec("/usr/sbin/ntpq -c peers",$result);
while (list($key,$value) = each($result)){
$table = split(" *",trim($value));
if ($key == 0){
echo "<tr>";
echo "<th>Reference</th>";
echo "<th>$table[0]</th>";
echo "<th>$table[1]</th>";
echo "<th>$table[2]</th>";
echo "<th>$table[3]</th>";
echo "<th>$table[4]</th>";
echo "<th>$table[5]</th>";
echo "<th>$table[6]</th>";
echo "<th>$table[7]</th>";
echo "<th>$table[8]</th>";
echo "<th>$table[9]</th>";
echo "</tr>";
Expected result:
----------------
-bash-3.2# ./php -v
PHP 5.2.1 (cgi) (built: Feb 23 2007 17:03:34)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
Expected result is a table of values.
Actual result:
--------------
Result:
-bash-3.2# ./php ../htdocs/ntp.php
X-Powered-By: PHP/5.2.1
Content-type: text/html
<!--
#************************************************* **********************
# Integrated Seismic System
# =========================
#
# $Id: ntp.php,v 1.9 2006/07/11 09:11:41 issd Exp $
#
#************************************************* **********************
#
# All rights reserved. Copyright by ISS International Ltd., 1988-2003.
#
# No reproduction of this computer program in whole or in part, in
# any form, by any electronic, mechanical or other means is permitted
# without the written permission of ISS International Limited.
#
# END OF RCS HEADER
-->
<html>
<head>
<title>Seismic Controller</title>
<link
href="controller.css"
rel="stylesheet"/>
<script src="javascript/issupdate.js"></script>
<!-- <meta
content="30"
http-equiv="Refresh"/>-->
</head>
<body onload=setTimeout("updateISS('ntp.php',30000)",300 0)>
<center>
<h1>Seismic Controller</h1>
<h1> ()</h1>
<h2>Tue Feb 27 11:20:54 UTC 2007
</h2>
<img
src="monitors/images/ISSsmall_logo.png"/>
<br/>
<table>
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40658&edit=1[/url]
errol at issi dot co dot za Guest
-
tony2001@php.net #6
#40658 [Opn->Fbk]: Segmentation fault
ID: 40658
Updated by: [email]tony2001@php.net[/email]
Reported By: errol at issi dot co dot za
-Status: Open
+Status: Feedback
Bug Type: CGI related
Operating System: Linux 2.6.20 on ARM
PHP Version: 5.2.1
New Comment:
Ok, thanks.
Previous Comments:
------------------------------------------------------------------------
[2007-02-27 13:27:29] errol at issi dot co dot za
I am busy trying a cross-compile of gdb and will see if I can get it to
run and produce the backtrace for you.
------------------------------------------------------------------------
[2007-02-27 13:20:04] [email]tony2001@php.net[/email]
Well, I don't have an ARM system either.
So I really doubt we can fix something we can't reproduce and there is
no backtrace.
------------------------------------------------------------------------
[2007-02-27 12:45:00] errol at issi dot co dot za
I cannot generate a backtrace as I do not have gdb on the embedded ARM
system. I have also been unable to reproduce the problem on a system
where I have gdb.
I have been able to islolate the problem to this line of code.
while (list($key,$value) = each($result)){
I have checked and $result is a valid array of values.
------------------------------------------------------------------------
[2007-02-27 12:31:20] [email]tony2001@php.net[/email]
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
[url]http://bugs.php.net/bugs-generating-backtrace.php[/url] for *NIX and
[url]http://bugs.php.net/bugs-generating-backtrace-win32.php[/url] for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
[2007-02-27 11:23:59] errol at issi dot co dot za
Description:
------------
I was running 5.0.4 (cgi) on an ARM processor (embedded) with linux
2.4.27 and it worked successfully. I have now upgraded to linux 2.6.20
and PHP 5.2.1 (cgi) and I now get a segmentation fault on some of my
scripts that previously worked. I have no gdb on the embedded system
and have not been able to reproduce the problem on my SuSE linux
systems.
Reproduce code:
---------------
Part of code ...
<table>
<?php
exec("/usr/sbin/ntpq -c peers",$result);
while (list($key,$value) = each($result)){
$table = split(" *",trim($value));
if ($key == 0){
echo "<tr>";
echo "<th>Reference</th>";
echo "<th>$table[0]</th>";
echo "<th>$table[1]</th>";
echo "<th>$table[2]</th>";
echo "<th>$table[3]</th>";
echo "<th>$table[4]</th>";
echo "<th>$table[5]</th>";
echo "<th>$table[6]</th>";
echo "<th>$table[7]</th>";
echo "<th>$table[8]</th>";
echo "<th>$table[9]</th>";
echo "</tr>";
Expected result:
----------------
-bash-3.2# ./php -v
PHP 5.2.1 (cgi) (built: Feb 23 2007 17:03:34)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
Expected result is a table of values.
Actual result:
--------------
Result:
-bash-3.2# ./php ../htdocs/ntp.php
X-Powered-By: PHP/5.2.1
Content-type: text/html
<!--
#************************************************* **********************
# Integrated Seismic System
# =========================
#
# $Id: ntp.php,v 1.9 2006/07/11 09:11:41 issd Exp $
#
#************************************************* **********************
#
# All rights reserved. Copyright by ISS International Ltd., 1988-2003.
#
# No reproduction of this computer program in whole or in part, in
# any form, by any electronic, mechanical or other means is permitted
# without the written permission of ISS International Limited.
#
# END OF RCS HEADER
-->
<html>
<head>
<title>Seismic Controller</title>
<link
href="controller.css"
rel="stylesheet"/>
<script src="javascript/issupdate.js"></script>
<!-- <meta
content="30"
http-equiv="Refresh"/>-->
</head>
<body onload=setTimeout("updateISS('ntp.php',30000)",300 0)>
<center>
<h1>Seismic Controller</h1>
<h1> ()</h1>
<h2>Tue Feb 27 11:20:54 UTC 2007
</h2>
<img
src="monitors/images/ISSsmall_logo.png"/>
<br/>
<table>
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40658&edit=1[/url]
tony2001@php.net Guest
-
errol at issi dot co dot za #7
#40658 [Fbk->Opn]: Segmentation fault
ID: 40658
User updated by: errol at issi dot co dot za
Reported By: errol at issi dot co dot za
-Status: Feedback
+Status: Open
Bug Type: CGI related
Operating System: Linux 2.6.20 on ARM
PHP Version: 5.2.1
New Comment:
I managed to get gdb to cross-compile and run on the ARM. Here is the
backtrace
#0 ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (execute_data=0xbef2f730)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/Zend/zend_execute.c:183
#1 0x0020e6fc in execute (op_array=0x40334308)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/Zend/zend_vm_execute.h:92
#2 0x001f18b8 in zend_execute_scripts (type=8, retval=<value optimized
out>,
file_count=1701011824)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/Zend/zend.c:1135
#3 0x001b50e0 in php_execute_script (primary_file=Cannot access memory
at address 0xfffffe03
)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/main/main.c:1784
#4 0x0026d480 in main (argc=0, argv=0x643030)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/sapi/cgi/cgi_main.c:1738
Previous Comments:
------------------------------------------------------------------------
[2007-02-27 13:29:50] [email]tony2001@php.net[/email]
Ok, thanks.
------------------------------------------------------------------------
[2007-02-27 13:27:29] errol at issi dot co dot za
I am busy trying a cross-compile of gdb and will see if I can get it to
run and produce the backtrace for you.
------------------------------------------------------------------------
[2007-02-27 13:20:04] [email]tony2001@php.net[/email]
Well, I don't have an ARM system either.
So I really doubt we can fix something we can't reproduce and there is
no backtrace.
------------------------------------------------------------------------
[2007-02-27 12:45:00] errol at issi dot co dot za
I cannot generate a backtrace as I do not have gdb on the embedded ARM
system. I have also been unable to reproduce the problem on a system
where I have gdb.
I have been able to islolate the problem to this line of code.
while (list($key,$value) = each($result)){
I have checked and $result is a valid array of values.
------------------------------------------------------------------------
[2007-02-27 12:31:20] [email]tony2001@php.net[/email]
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
[url]http://bugs.php.net/bugs-generating-backtrace.php[/url] for *NIX and
[url]http://bugs.php.net/bugs-generating-backtrace-win32.php[/url] for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
[url]http://bugs.php.net/40658[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40658&edit=1[/url]
errol at issi dot co dot za Guest
-
tony2001@php.net #8
#40658 [Opn->Fbk]: Segmentation fault
ID: 40658
Updated by: [email]tony2001@php.net[/email]
Reported By: errol at issi dot co dot za
-Status: Open
+Status: Feedback
Bug Type: CGI related
Operating System: Linux 2.6.20 on ARM
PHP Version: 5.2.1
New Comment:
The backtrace isn't really useful, the most important information is
missing - on which line the crash happens.
Make sure PHP is compiled with --enable-debug.
Previous Comments:
------------------------------------------------------------------------
[2007-02-27 14:48:30] errol at issi dot co dot za
I managed to get gdb to cross-compile and run on the ARM. Here is the
backtrace
#0 ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (execute_data=0xbef2f730)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/Zend/zend_execute.c:183
#1 0x0020e6fc in execute (op_array=0x40334308)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/Zend/zend_vm_execute.h:92
#2 0x001f18b8 in zend_execute_scripts (type=8, retval=<value optimized
out>,
file_count=1701011824)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/Zend/zend.c:1135
#3 0x001b50e0 in php_execute_script (primary_file=Cannot access memory
at address 0xfffffe03
)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/main/main.c:1784
#4 0x0026d480 in main (argc=0, argv=0x643030)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/sapi/cgi/cgi_main.c:1738
------------------------------------------------------------------------
[2007-02-27 13:29:50] [email]tony2001@php.net[/email]
Ok, thanks.
------------------------------------------------------------------------
[2007-02-27 13:27:29] errol at issi dot co dot za
I am busy trying a cross-compile of gdb and will see if I can get it to
run and produce the backtrace for you.
------------------------------------------------------------------------
[2007-02-27 13:20:04] [email]tony2001@php.net[/email]
Well, I don't have an ARM system either.
So I really doubt we can fix something we can't reproduce and there is
no backtrace.
------------------------------------------------------------------------
[2007-02-27 12:45:00] errol at issi dot co dot za
I cannot generate a backtrace as I do not have gdb on the embedded ARM
system. I have also been unable to reproduce the problem on a system
where I have gdb.
I have been able to islolate the problem to this line of code.
while (list($key,$value) = each($result)){
I have checked and $result is a valid array of values.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
[url]http://bugs.php.net/40658[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40658&edit=1[/url]
tony2001@php.net Guest
-
errol at issi dot co dot za #9
#40658 [Fbk->Opn]: Segmentation fault
ID: 40658
User updated by: errol at issi dot co dot za
Reported By: errol at issi dot co dot za
-Status: Feedback
+Status: Open
Bug Type: CGI related
Operating System: Linux 2.6.20 on ARM
PHP Version: 5.2.1
New Comment:
I have run after compiling with --enable-debug and e-mailed you the
results.
I hope this helps.
Previous Comments:
------------------------------------------------------------------------
[2007-02-27 14:54:10] [email]tony2001@php.net[/email]
The backtrace isn't really useful, the most important information is
missing - on which line the crash happens.
Make sure PHP is compiled with --enable-debug.
------------------------------------------------------------------------
[2007-02-27 14:48:30] errol at issi dot co dot za
I managed to get gdb to cross-compile and run on the ARM. Here is the
backtrace
#0 ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (execute_data=0xbef2f730)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/Zend/zend_execute.c:183
#1 0x0020e6fc in execute (op_array=0x40334308)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/Zend/zend_vm_execute.h:92
#2 0x001f18b8 in zend_execute_scripts (type=8, retval=<value optimized
out>,
file_count=1701011824)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/Zend/zend.c:1135
#3 0x001b50e0 in php_execute_script (primary_file=Cannot access memory
at address 0xfffffe03
)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/main/main.c:1784
#4 0x0026d480 in main (argc=0, argv=0x643030)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/sapi/cgi/cgi_main.c:1738
------------------------------------------------------------------------
[2007-02-27 13:29:50] [email]tony2001@php.net[/email]
Ok, thanks.
------------------------------------------------------------------------
[2007-02-27 13:27:29] errol at issi dot co dot za
I am busy trying a cross-compile of gdb and will see if I can get it to
run and produce the backtrace for you.
------------------------------------------------------------------------
[2007-02-27 13:20:04] [email]tony2001@php.net[/email]
Well, I don't have an ARM system either.
So I really doubt we can fix something we can't reproduce and there is
no backtrace.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
[url]http://bugs.php.net/40658[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40658&edit=1[/url]
errol at issi dot co dot za Guest
-
tony2001@php.net #10
#40658 [Opn->Fbk]: Segmentation fault
ID: 40658
Updated by: [email]tony2001@php.net[/email]
Reported By: errol at issi dot co dot za
-Status: Open
+Status: Feedback
Bug Type: CGI related
Operating System: Linux 2.6.20 on ARM
PHP Version: 5.2.1
New Comment:
Please try using this CVS snapshot:
[url]http://snaps.php.net/php5.2-latest.tar.gz[/url]
For Windows:
[url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]
Previous Comments:
------------------------------------------------------------------------
[2007-02-27 15:57:46] errol at issi dot co dot za
I have run after compiling with --enable-debug and e-mailed you the
results.
I hope this helps.
------------------------------------------------------------------------
[2007-02-27 14:54:10] [email]tony2001@php.net[/email]
The backtrace isn't really useful, the most important information is
missing - on which line the crash happens.
Make sure PHP is compiled with --enable-debug.
------------------------------------------------------------------------
[2007-02-27 14:48:30] errol at issi dot co dot za
I managed to get gdb to cross-compile and run on the ARM. Here is the
backtrace
#0 ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (execute_data=0xbef2f730)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/Zend/zend_execute.c:183
#1 0x0020e6fc in execute (op_array=0x40334308)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/Zend/zend_vm_execute.h:92
#2 0x001f18b8 in zend_execute_scripts (type=8, retval=<value optimized
out>,
file_count=1701011824)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/Zend/zend.c:1135
#3 0x001b50e0 in php_execute_script (primary_file=Cannot access memory
at address 0xfffffe03
)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/main/main.c:1784
#4 0x0026d480 in main (argc=0, argv=0x643030)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/sapi/cgi/cgi_main.c:1738
------------------------------------------------------------------------
[2007-02-27 13:29:50] [email]tony2001@php.net[/email]
Ok, thanks.
------------------------------------------------------------------------
[2007-02-27 13:27:29] errol at issi dot co dot za
I am busy trying a cross-compile of gdb and will see if I can get it to
run and produce the backtrace for you.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
[url]http://bugs.php.net/40658[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40658&edit=1[/url]
tony2001@php.net Guest
-
errol at issi dot co dot za #11
#40658 [Fbk->Opn]: Segmentation fault
ID: 40658
User updated by: errol at issi dot co dot za
Reported By: errol at issi dot co dot za
-Status: Feedback
+Status: Open
Bug Type: CGI related
Operating System: Linux 2.6.20 on ARM
PHP Version: 5.2.1
New Comment:
Here is the backtrace from the latest build I downloaded from snaps.
(gdb) bt
#0 ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (execute_data=0xbeec5730)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend_execute.c:69
#1 0x002126c8 in execute (op_array=0x40334310)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend_vm_execute.h:92
#2 0x001f5878 in zend_execute_scripts (type=8, retval=<value optimized
out>,
file_count=0)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend.c:1134
#3 0x001b8ba0 in php_execute_script (primary_file=Cannot access memory
at address 0xfffffe03
)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/main/main.c:1787
#4 0x002713f8 in main (argc=0, argv=0x643030)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/sapi/cgi/cgi_main.c:1746
Previous Comments:
------------------------------------------------------------------------
[2007-02-27 15:59:20] [email]tony2001@php.net[/email]
Please try using this CVS snapshot:
[url]http://snaps.php.net/php5.2-latest.tar.gz[/url]
For Windows:
[url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]
------------------------------------------------------------------------
[2007-02-27 15:57:46] errol at issi dot co dot za
I have run after compiling with --enable-debug and e-mailed you the
results.
I hope this helps.
------------------------------------------------------------------------
[2007-02-27 14:54:10] [email]tony2001@php.net[/email]
The backtrace isn't really useful, the most important information is
missing - on which line the crash happens.
Make sure PHP is compiled with --enable-debug.
------------------------------------------------------------------------
[2007-02-27 14:48:30] errol at issi dot co dot za
I managed to get gdb to cross-compile and run on the ARM. Here is the
backtrace
#0 ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (execute_data=0xbef2f730)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/Zend/zend_execute.c:183
#1 0x0020e6fc in execute (op_array=0x40334308)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/Zend/zend_vm_execute.h:92
#2 0x001f18b8 in zend_execute_scripts (type=8, retval=<value optimized
out>,
file_count=1701011824)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/Zend/zend.c:1135
#3 0x001b50e0 in php_execute_script (primary_file=Cannot access memory
at address 0xfffffe03
)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/main/main.c:1784
#4 0x0026d480 in main (argc=0, argv=0x643030)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/sapi/cgi/cgi_main.c:1738
------------------------------------------------------------------------
[2007-02-27 13:29:50] [email]tony2001@php.net[/email]
Ok, thanks.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
[url]http://bugs.php.net/40658[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40658&edit=1[/url]
errol at issi dot co dot za Guest
-
tony2001@php.net #12
#40658 [Opn->Fbk]: Segmentation fault
ID: 40658
Updated by: [email]tony2001@php.net[/email]
Reported By: errol at issi dot co dot za
-Status: Open
+Status: Feedback
Bug Type: CGI related
Operating System: Linux 2.6.20 on ARM
PHP Version: 5.2.1
New Comment:
Again, we would like to know where exactly it happens, not just the>Here is the backtrace
function name.
Try to compile it with CFAGS="-O0 -g" and regenerate the backtrace.
Btw, is there valgrind for Linux on ARM? It would help very much.
Previous Comments:
------------------------------------------------------------------------
[2007-02-27 16:23:26] errol at issi dot co dot za
Here is the backtrace from the latest build I downloaded from snaps.
(gdb) bt
#0 ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (execute_data=0xbeec5730)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend_execute.c:69
#1 0x002126c8 in execute (op_array=0x40334310)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend_vm_execute.h:92
#2 0x001f5878 in zend_execute_scripts (type=8, retval=<value optimized
out>,
file_count=0)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend.c:1134
#3 0x001b8ba0 in php_execute_script (primary_file=Cannot access memory
at address 0xfffffe03
)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/main/main.c:1787
#4 0x002713f8 in main (argc=0, argv=0x643030)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/sapi/cgi/cgi_main.c:1746
------------------------------------------------------------------------
[2007-02-27 15:59:20] [email]tony2001@php.net[/email]
Please try using this CVS snapshot:
[url]http://snaps.php.net/php5.2-latest.tar.gz[/url]
For Windows:
[url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]
------------------------------------------------------------------------
[2007-02-27 15:57:46] errol at issi dot co dot za
I have run after compiling with --enable-debug and e-mailed you the
results.
I hope this helps.
------------------------------------------------------------------------
[2007-02-27 14:54:10] [email]tony2001@php.net[/email]
The backtrace isn't really useful, the most important information is
missing - on which line the crash happens.
Make sure PHP is compiled with --enable-debug.
------------------------------------------------------------------------
[2007-02-27 14:48:30] errol at issi dot co dot za
I managed to get gdb to cross-compile and run on the ARM. Here is the
backtrace
#0 ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (execute_data=0xbef2f730)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/Zend/zend_execute.c:183
#1 0x0020e6fc in execute (op_array=0x40334308)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/Zend/zend_vm_execute.h:92
#2 0x001f18b8 in zend_execute_scripts (type=8, retval=<value optimized
out>,
file_count=1701011824)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/Zend/zend.c:1135
#3 0x001b50e0 in php_execute_script (primary_file=Cannot access memory
at address 0xfffffe03
)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/main/main.c:1784
#4 0x0026d480 in main (argc=0, argv=0x643030)
at
/home/issarm/Projects/arm-2007-02-18/src/php-5.2.1/sapi/cgi/cgi_main.c:1738
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
[url]http://bugs.php.net/40658[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40658&edit=1[/url]
tony2001@php.net Guest
-
errol at issi dot co dot za #13
#40658 [Fbk->Opn]: Segmentation fault
ID: 40658
User updated by: errol at issi dot co dot za
Reported By: errol at issi dot co dot za
-Status: Feedback
+Status: Open
Bug Type: CGI related
Operating System: Linux 2.6.20 on ARM
PHP Version: 5.2.1
New Comment:
It does not look like valgrind runs on ARM.
See [url]http://valgrind.org/info/platforms.html[/url]
Previous Comments:
------------------------------------------------------------------------
[2007-02-27 18:35:24] [email]tony2001@php.net[/email]
Again, we would like to know where exactly it happens, not just the>Here is the backtrace
function name.
Try to compile it with CFAGS="-O0 -g" and regenerate the backtrace.
Btw, is there valgrind for Linux on ARM? It would help very much.
------------------------------------------------------------------------
[2007-02-27 16:23:26] errol at issi dot co dot za
Here is the backtrace from the latest build I downloaded from snaps.
(gdb) bt
#0 ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (execute_data=0xbeec5730)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend_execute.c:69
#1 0x002126c8 in execute (op_array=0x40334310)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend_vm_execute.h:92
#2 0x001f5878 in zend_execute_scripts (type=8, retval=<value optimized
out>,
file_count=0)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend.c:1134
#3 0x001b8ba0 in php_execute_script (primary_file=Cannot access memory
at address 0xfffffe03
)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/main/main.c:1787
#4 0x002713f8 in main (argc=0, argv=0x643030)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/sapi/cgi/cgi_main.c:1746
------------------------------------------------------------------------
[2007-02-27 15:59:20] [email]tony2001@php.net[/email]
Please try using this CVS snapshot:
[url]http://snaps.php.net/php5.2-latest.tar.gz[/url]
For Windows:
[url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]
------------------------------------------------------------------------
[2007-02-27 15:57:46] errol at issi dot co dot za
I have run after compiling with --enable-debug and e-mailed you the
results.
I hope this helps.
------------------------------------------------------------------------
[2007-02-27 14:54:10] [email]tony2001@php.net[/email]
The backtrace isn't really useful, the most important information is
missing - on which line the crash happens.
Make sure PHP is compiled with --enable-debug.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
[url]http://bugs.php.net/40658[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40658&edit=1[/url]
errol at issi dot co dot za Guest
-
tony2001@php.net #14
#40658 [Opn->Fbk]: Segmentation fault
ID: 40658
Updated by: [email]tony2001@php.net[/email]
Reported By: errol at issi dot co dot za
-Status: Open
+Status: Feedback
Bug Type: CGI related
Operating System: Linux 2.6.20 on ARM
PHP Version: 5.2.1
New Comment:
That's bad.
The other request still applies, though.
Previous Comments:
------------------------------------------------------------------------
[2007-02-27 18:50:48] errol at issi dot co dot za
It does not look like valgrind runs on ARM.
See [url]http://valgrind.org/info/platforms.html[/url]
------------------------------------------------------------------------
[2007-02-27 18:35:24] [email]tony2001@php.net[/email]
Again, we would like to know where exactly it happens, not just the>Here is the backtrace
function name.
Try to compile it with CFAGS="-O0 -g" and regenerate the backtrace.
Btw, is there valgrind for Linux on ARM? It would help very much.
------------------------------------------------------------------------
[2007-02-27 16:23:26] errol at issi dot co dot za
Here is the backtrace from the latest build I downloaded from snaps.
(gdb) bt
#0 ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (execute_data=0xbeec5730)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend_execute.c:69
#1 0x002126c8 in execute (op_array=0x40334310)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend_vm_execute.h:92
#2 0x001f5878 in zend_execute_scripts (type=8, retval=<value optimized
out>,
file_count=0)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend.c:1134
#3 0x001b8ba0 in php_execute_script (primary_file=Cannot access memory
at address 0xfffffe03
)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/main/main.c:1787
#4 0x002713f8 in main (argc=0, argv=0x643030)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/sapi/cgi/cgi_main.c:1746
------------------------------------------------------------------------
[2007-02-27 15:59:20] [email]tony2001@php.net[/email]
Please try using this CVS snapshot:
[url]http://snaps.php.net/php5.2-latest.tar.gz[/url]
For Windows:
[url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]
------------------------------------------------------------------------
[2007-02-27 15:57:46] errol at issi dot co dot za
I have run after compiling with --enable-debug and e-mailed you the
results.
I hope this helps.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
[url]http://bugs.php.net/40658[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40658&edit=1[/url]
tony2001@php.net Guest
-
errol at issi dot co dot za #15
#40658 [Fbk->Opn]: Segmentation fault
ID: 40658
User updated by: errol at issi dot co dot za
Reported By: errol at issi dot co dot za
-Status: Feedback
+Status: Open
Bug Type: CGI related
Operating System: Linux 2.6.20 on ARM
PHP Version: 5.2.1
New Comment:
Will do. I am at home and the embedded setup is at work.
Previous Comments:
------------------------------------------------------------------------
[2007-02-27 19:01:17] [email]tony2001@php.net[/email]
That's bad.
The other request still applies, though.
------------------------------------------------------------------------
[2007-02-27 18:50:48] errol at issi dot co dot za
It does not look like valgrind runs on ARM.
See [url]http://valgrind.org/info/platforms.html[/url]
------------------------------------------------------------------------
[2007-02-27 18:35:24] [email]tony2001@php.net[/email]
Again, we would like to know where exactly it happens, not just the>Here is the backtrace
function name.
Try to compile it with CFAGS="-O0 -g" and regenerate the backtrace.
Btw, is there valgrind for Linux on ARM? It would help very much.
------------------------------------------------------------------------
[2007-02-27 16:23:26] errol at issi dot co dot za
Here is the backtrace from the latest build I downloaded from snaps.
(gdb) bt
#0 ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (execute_data=0xbeec5730)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend_execute.c:69
#1 0x002126c8 in execute (op_array=0x40334310)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend_vm_execute.h:92
#2 0x001f5878 in zend_execute_scripts (type=8, retval=<value optimized
out>,
file_count=0)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend.c:1134
#3 0x001b8ba0 in php_execute_script (primary_file=Cannot access memory
at address 0xfffffe03
)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/main/main.c:1787
#4 0x002713f8 in main (argc=0, argv=0x643030)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/sapi/cgi/cgi_main.c:1746
------------------------------------------------------------------------
[2007-02-27 15:59:20] [email]tony2001@php.net[/email]
Please try using this CVS snapshot:
[url]http://snaps.php.net/php5.2-latest.tar.gz[/url]
For Windows:
[url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
[url]http://bugs.php.net/40658[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40658&edit=1[/url]
errol at issi dot co dot za Guest
-
tony2001@php.net #16
#40658 [Opn->Fbk]: Segmentation fault
ID: 40658
Updated by: [email]tony2001@php.net[/email]
Reported By: errol at issi dot co dot za
-Status: Open
+Status: Feedback
Bug Type: CGI related
Operating System: Linux 2.6.20 on ARM
PHP Version: 5.2.1
Previous Comments:
------------------------------------------------------------------------
[2007-02-27 19:12:08] errol at issi dot co dot za
Will do. I am at home and the embedded setup is at work.
------------------------------------------------------------------------
[2007-02-27 19:01:17] [email]tony2001@php.net[/email]
That's bad.
The other request still applies, though.
------------------------------------------------------------------------
[2007-02-27 18:50:48] errol at issi dot co dot za
It does not look like valgrind runs on ARM.
See [url]http://valgrind.org/info/platforms.html[/url]
------------------------------------------------------------------------
[2007-02-27 18:35:24] [email]tony2001@php.net[/email]
Again, we would like to know where exactly it happens, not just the>Here is the backtrace
function name.
Try to compile it with CFAGS="-O0 -g" and regenerate the backtrace.
Btw, is there valgrind for Linux on ARM? It would help very much.
------------------------------------------------------------------------
[2007-02-27 16:23:26] errol at issi dot co dot za
Here is the backtrace from the latest build I downloaded from snaps.
(gdb) bt
#0 ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (execute_data=0xbeec5730)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend_execute.c:69
#1 0x002126c8 in execute (op_array=0x40334310)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend_vm_execute.h:92
#2 0x001f5878 in zend_execute_scripts (type=8, retval=<value optimized
out>,
file_count=0)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend.c:1134
#3 0x001b8ba0 in php_execute_script (primary_file=Cannot access memory
at address 0xfffffe03
)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/main/main.c:1787
#4 0x002713f8 in main (argc=0, argv=0x643030)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/sapi/cgi/cgi_main.c:1746
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
[url]http://bugs.php.net/40658[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40658&edit=1[/url]
tony2001@php.net Guest
-
errol at issi dot co dot za #17
#40658 [Fbk->Opn]: Segmentation fault
ID: 40658
User updated by: errol at issi dot co dot za
Reported By: errol at issi dot co dot za
-Status: Feedback
+Status: Open
Bug Type: CGI related
Operating System: Linux 2.6.20 on ARM
PHP Version: 5.2.1
New Comment:
Just logged in to work and did the compile with -O0 -g (it was using
-O2 -g.
Now the same php script runs without a seg fault!!
I will give it a full test tomorrow when I can access via browser.
Previous Comments:
------------------------------------------------------------------------
[2007-02-27 19:12:08] errol at issi dot co dot za
Will do. I am at home and the embedded setup is at work.
------------------------------------------------------------------------
[2007-02-27 19:01:17] [email]tony2001@php.net[/email]
That's bad.
The other request still applies, though.
------------------------------------------------------------------------
[2007-02-27 18:50:48] errol at issi dot co dot za
It does not look like valgrind runs on ARM.
See [url]http://valgrind.org/info/platforms.html[/url]
------------------------------------------------------------------------
[2007-02-27 18:35:24] [email]tony2001@php.net[/email]
Again, we would like to know where exactly it happens, not just the>Here is the backtrace
function name.
Try to compile it with CFAGS="-O0 -g" and regenerate the backtrace.
Btw, is there valgrind for Linux on ARM? It would help very much.
------------------------------------------------------------------------
[2007-02-27 16:23:26] errol at issi dot co dot za
Here is the backtrace from the latest build I downloaded from snaps.
(gdb) bt
#0 ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (execute_data=0xbeec5730)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend_execute.c:69
#1 0x002126c8 in execute (op_array=0x40334310)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend_vm_execute.h:92
#2 0x001f5878 in zend_execute_scripts (type=8, retval=<value optimized
out>,
file_count=0)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/Zend/zend.c:1134
#3 0x001b8ba0 in php_execute_script (primary_file=Cannot access memory
at address 0xfffffe03
)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/main/main.c:1787
#4 0x002713f8 in main (argc=0, argv=0x643030)
at
/home/issarm/Projects/arm-2007-02-18/src/php5.2-200702271530/sapi/cgi/cgi_main.c:1746
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
[url]http://bugs.php.net/40658[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40658&edit=1[/url]
errol at issi dot co dot za Guest
-
tony2001@php.net #18
#40658 [Opn->Fbk]: Segmentation fault
ID: 40658
Updated by: [email]tony2001@php.net[/email]
Reported By: errol at issi dot co dot za
-Status: Open
+Status: Feedback
Bug Type: CGI related
Operating System: Linux 2.6.20 on ARM
PHP Version: 5.2.1
New Comment:
Heh. What version of GCC are you using?
Previous Comments:
------------------------------------------------------------------------
[2007-02-27 19:38:47] errol at issi dot co dot za
Just logged in to work and did the compile with -O0 -g (it was using
-O2 -g.
Now the same php script runs without a seg fault!!
I will give it a full test tomorrow when I can access via browser.
------------------------------------------------------------------------
[2007-02-27 19:12:08] errol at issi dot co dot za
Will do. I am at home and the embedded setup is at work.
------------------------------------------------------------------------
[2007-02-27 19:01:17] [email]tony2001@php.net[/email]
That's bad.
The other request still applies, though.
------------------------------------------------------------------------
[2007-02-27 18:50:48] errol at issi dot co dot za
It does not look like valgrind runs on ARM.
See [url]http://valgrind.org/info/platforms.html[/url]
------------------------------------------------------------------------
[2007-02-27 18:35:24] [email]tony2001@php.net[/email]
Again, we would like to know where exactly it happens, not just the>Here is the backtrace
function name.
Try to compile it with CFAGS="-O0 -g" and regenerate the backtrace.
Btw, is there valgrind for Linux on ARM? It would help very much.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
[url]http://bugs.php.net/40658[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40658&edit=1[/url]
tony2001@php.net Guest
-
errol at issi dot co dot za #19
#40658 [Fbk->Opn]: Segmentation fault
ID: 40658
User updated by: errol at issi dot co dot za
Reported By: errol at issi dot co dot za
-Status: Feedback
+Status: Open
Bug Type: CGI related
Operating System: Linux 2.6.20 on ARM
PHP Version: 5.2.1
New Comment:
I am using gcc 4.1.1 on linux 2.6.20 with eabi toolchain
(arm-unknown-linux-gnueabi).
Previous Comments:
------------------------------------------------------------------------
[2007-02-27 19:44:04] [email]tony2001@php.net[/email]
Heh. What version of GCC are you using?
------------------------------------------------------------------------
[2007-02-27 19:38:47] errol at issi dot co dot za
Just logged in to work and did the compile with -O0 -g (it was using
-O2 -g.
Now the same php script runs without a seg fault!!
I will give it a full test tomorrow when I can access via browser.
------------------------------------------------------------------------
[2007-02-27 19:12:08] errol at issi dot co dot za
Will do. I am at home and the embedded setup is at work.
------------------------------------------------------------------------
[2007-02-27 19:01:17] [email]tony2001@php.net[/email]
That's bad.
The other request still applies, though.
------------------------------------------------------------------------
[2007-02-27 18:50:48] errol at issi dot co dot za
It does not look like valgrind runs on ARM.
See [url]http://valgrind.org/info/platforms.html[/url]
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
[url]http://bugs.php.net/40658[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40658&edit=1[/url]
errol at issi dot co dot za Guest
-
tony2001@php.net #20
#40658 [Opn->Fbk]: Segmentation fault
ID: 40658
Updated by: [email]tony2001@php.net[/email]
Reported By: errol at issi dot co dot za
-Status: Open
+Status: Feedback
Bug Type: CGI related
Operating System: Linux 2.6.20 on ARM
PHP Version: 5.2.1
New Comment:
Could you please upgrade to GCC 4.1.2 ?
Or (that would be perfect) downgrade to 3.4.x ?
Previous Comments:
------------------------------------------------------------------------
[2007-02-27 19:55:38] errol at issi dot co dot za
I am using gcc 4.1.1 on linux 2.6.20 with eabi toolchain
(arm-unknown-linux-gnueabi).
------------------------------------------------------------------------
[2007-02-27 19:44:04] [email]tony2001@php.net[/email]
Heh. What version of GCC are you using?
------------------------------------------------------------------------
[2007-02-27 19:38:47] errol at issi dot co dot za
Just logged in to work and did the compile with -O0 -g (it was using
-O2 -g.
Now the same php script runs without a seg fault!!
I will give it a full test tomorrow when I can access via browser.
------------------------------------------------------------------------
[2007-02-27 19:12:08] errol at issi dot co dot za
Will do. I am at home and the embedded setup is at work.
------------------------------------------------------------------------
[2007-02-27 19:01:17] [email]tony2001@php.net[/email]
That's bad.
The other request still applies, though.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
[url]http://bugs.php.net/40658[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40658&edit=1[/url]
tony2001@php.net Guest



Reply With Quote

