Subject: pkg/12922: php sigsegv
To: None <gnats-bugs@gnats.netbsd.org>
From: Kimmo Suominen <kim@tac.nyc.ny.us>
List: netbsd-bugs
Date: 05/12/2001 23:48:49
>Number:         12922
>Category:       pkg
>Synopsis:       php sigsegv
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 12 20:48:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Kimmo Suominen
>Release:        1.4.3A (2001-04-05)
>Organization:
>Environment:
System: NetBSD hrothgar.gw.com 1.4.3A NetBSD 1.4.3A (GW-GENERIC) #9: Sat Apr 7 22:19:05 EEST 2001 kim@pyry.gw.com:/net/pyry/src-2/NetBSD/cvsroot/src/sys/arch/i386/compile/GW-GENERIC i386
>Description:
The php command from php-4.0.4.1nb1 dumps core, with or without
a /usr/pkg/etc/php.ini file.

I also have the following installed:

    ap-php-4.0.4.1nb1
    php-mysql-4.0.4.1nb1

The apache module should not matter here, and the mysql module
only matters if I have a php.ini file in place.

The exact same setup works on my 1.5V machine (i386).

It seems that either there are no symbols in my libraries or that gdb
does not like to find them.  I haven't tried compiling php with -g.
>How-To-Repeat:
Type "php" at any command prompt...

hrothgar:~...junk/cgi> php
Segmentation fault (core dumped)
Exit 139
hrothgar:~...junk/cgi> gdb /usr/pkg/bin/php php.core
GNU gdb 4.17
Copyright 1998 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 "i386--netbsd"...(no debugging symbols found)...
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.so...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libresolv.so.1.0...
(no debugging symbols found)...done.
Reading symbols from /usr/lib/libz.so.0.1...(no debugging symbols found)...
done.
Reading symbols from /usr/lib/libm.so.0.1...(no debugging symbols found)...
done.
Reading symbols from /usr/lib/libcrypt.so.0.0...(no debugging symbols found)...
done.
Reading symbols from /usr/lib/libc.so.12.40.2...(no debugging symbols found)...
done.
#0  0xa7d5d2e in ?? ()
(gdb) where
#0  0xa7d5d2e in ?? ()
#1  0x7b524 in register_standard_class ()
#2  0x7b6e4 in zend_startup ()
#3  0x466d in php_module_startup ()
#4  0x25e6 in main ()
(gdb) q
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: