#22076 [Fbk->Opn]: PHP 4.3.0 crashes on OpenBSD 3.2 sparc64 when zlib is linked
| From: | slash at peereboom dot us | Date: | Wed, 05 Feb 2003 22:27:32 +0000 |
| Subject: | #22076 [Fbk->Opn]: PHP 4.3.0 crashes on OpenBSD 3.2 sparc64 when zlib is linked | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-32248@lists.php.net to get a copy of this message | ||
ID: 22076
User updated by: slash@peereboom.us
Reported By: slash@peereboom.us
-Status: Feedback
+Status: Open
Bug Type: Reproducible crash
Operating System: OpenBSD 3.2 SPARC64
PHP Version: 4.3.0
New Comment:
[root@sparc64 php-4.3.0]# cat config.nice
#! /bin/sh
#
# Created by configure
'./configure' \
'--with-zlib' \
'--enable-debug' \
"$@"
[root@sparc64 php-4.3.0]# l /usr/lib/libz*
-r--r--r-- 1 root bin 83270 Oct 3 20:28 /usr/lib/libz.a
-r--r--r-- 1 root bin 67266 Oct 3 20:28 /usr/lib/libz.so.1.4
-r--r--r-- 1 root bin 91040 Oct 3 20:28 /usr/lib/libz_p.a
-r--r--r-- 1 root bin 82904 Oct 3 20:28 /usr/lib/libz_pic.a
I also downloaded zlib 1.1.4 and compiled it myself with the same
results.
Previous Comments:
------------------------------------------------------------------------
[2003-02-05 16:17:09] msopacua@php.net
What's the zlib version on this box and could you cat/paste
config.nice?
------------------------------------------------------------------------
[2003-02-05 13:47:24] slash@peereboom.us
vi a.c
int main()
{
char *a, *b;
a = 0;
b = 0;
strcpy(a, b);
return 0;
}
[root@sparc64 root]# gcc -o a a.c -g
[root@sparc64 root]# ./a
Segmentation fault (core dumped)
[root@sparc64 root]# gdb -c a.core a
GNU gdb 4.16.1
Copyright 1996 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "sparc64-unknown-openbsd3.2"...
Core was generated by `a'.
Program terminated with signal 11, Segmentation fault.
#0 0x403855b0 in ?? ()
(gdb) bt
#0 0x403855b0 in ?? ()
#1 0x1004dc in ___start ()
(gdb)
Seems to work...
I used OpenBSD's 3.2 native compiler and debugger.
[root@sparc64 root]# gcc -v
Reading specs from
/usr/lib/gcc-lib/sparc64-unknown-openbsd3.2/2.95.3/specs
gcc version 2.95.3 20010125 (prerelease)
[root@sparc64 root]# gdb -v
GNU gdb 4.16.1
------------------------------------------------------------------------
[2003-02-05 13:34:13] magnus@php.net
Looks like something is wrong with your gdb.. I had the
same problem (gdb coredumping on me), but on Tru64..
It went away when I compiled gdb with Compaq's native C
compiler..
------------------------------------------------------------------------
[2003-02-05 13:04:28] slash@peereboom.us
./configure --with-zlib --enable-debug
<snip>
[root@sparc64 php-4.3.0]# ./sapi/cgi/php
Bus error (core dumped)
[root@sparc64 php-4.3.0]# gdb -c php.core ./sapi/cgi/php
GNU gdb 4.16.1
Copyright 1996 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "sparc64-unknown-openbsd3.2"...
Core was generated by `php'.
Program terminated with signal 10, Bus error.
Dwarf Error: Cannot find referent at offset 507.
(gdb) bt
Segmentation fault (core dumped)
Sorry, that is as good as it gets from a backtrace. I have done this on
two different boxes (U5 & U10) with the same results.
------------------------------------------------------------------------
[2003-02-05 12:24:15] kalowsky@php.net
Can you please compile with --enable-debug, crash the program and then
give us the 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
http://bugs.php.net/22076
--
Edit this bug report at http://bugs.php.net/?id=22076&edit=1