#40193 [Opn->Fbk]: PHP crashes on start on Sparc (GCC 4.x only)
| From: | tony2001@php.net | Date: | Mon, 19 Feb 2007 18:30:08 +0000 |
| Subject: | #40193 [Opn->Fbk]: PHP crashes on start on Sparc (GCC 4.x only) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-109124@lists.php.net to get a copy of this message | ||
ID: 40193
Updated by: tony2001@php.net
Reported By: andrey@php.net
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: Debian Linux/Sparc
PHP Version: 6CVS-2007-01-22 (CVS)
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
This should be fixed now.
Previous Comments:
------------------------------------------------------------------------
[2007-01-30 10:27:47] andrey@php.net
Actually I am using Debian/SPARC, thus it seems like GCC problem on
SPARC (gcc 4.1, 3.4 works well)
------------------------------------------------------------------------
[2007-01-29 21:24:41] tony2001@php.net
Looks like some GCC problem reproducible only on Solaris.
------------------------------------------------------------------------
[2007-01-22 16:25:22] tony2001@php.net
PHP6 on Solaris is not my high priority at the moment.
I'm using GCC 3.4.2 and PHP5.2.x, which works just fine here.
------------------------------------------------------------------------
[2007-01-22 14:52:44] andrey@php.net
Downgraded to 3.4, now builds and starts without problems, but the
errors are in bad condition - the function name is printed. Endiannees
problem?
andrey@sparc:~/dev/6$ sapi/cli/php -r
'file_get_contents("nofile.txt");'
Warning: (nofile.txt): failed to open stream: No such file or directory
in Command line code on line 1
The problem lies somewhere here :
function.v is not NULL, but function_name_is_string is false. Otherwise
function.s points to the right string, which is "file_get_contents"
/* if we still have memory then format the origin */
if (function.v) {
if (function_name_is_string) {
origin_len = spprintf(&origin, 0, "%v%s%s(%s)", class_name, space,
function.s, params);
} else {
origin_len = spprintf(&origin, 0, "%v%s%v(%s)", class_name, space,
function, params);
}
} else {
origin_len = spprintf(&origin, 0, "%s", stage);
}
Tony, please contact me if you need more information.
------------------------------------------------------------------------
[2007-01-22 11:49:36] tony2001@php.net
It is known to crash on Solaris/SPARC when built with GCC 4.1, but NOT
with GCC 3.x.
I'd be grateful if you find the reason, but it looks like it's a
problem of newer versions of GCC on SPARC.
------------------------------------------------------------------------
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
http://bugs.php.net/40193
--
Edit this bug report at http://bugs.php.net/?id=40193&edit=1