Bug 153882

Summary: lang/php5 + databases/php5-dba crash on RELENG_7
Product: Ports & Packages Reporter: Doug Barton <dougb>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Doug Barton freebsd_committer freebsd_triage 2011-01-11 05:40:08 UTC
gdb /usr/local/bin/php
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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-marcel-freebsd"...
(gdb) run /dev/null
Starting program: /usr/local/bin/php /dev/null
[New LWP 100092]
[New Thread 0x287c3040 (LWP 100092)]
[New LWP 100092]
suspend error: generic error
[Switching to LWP 100092]
Stopped due to shared library event
(gdb) bt
#0  0x282bbef0 in r_debug_state () from /libexec/ld-elf.so.1
#1  0x282bfd0b in dlclose () from /libexec/ld-elf.so.1
#2  0x081a5728 in zend_hash_apply_deleter (ht=0x82d3940, p=0x28770b80)
    at /usr/local/tmp/mnt/opti/home/ports/lang/php5/work/php-5.3.5/Zend/zend_has
h.c:614
#3  0x081a5968 in zend_hash_graceful_reverse_destroy (ht=0x82d3940)
    at /usr/local/tmp/mnt/opti/home/ports/lang/php5/work/php-5.3.5/Zend/zend_has
h.c:649
#4  0x0819a1be in zend_shutdown ()
    at /usr/local/tmp/mnt/opti/home/ports/lang/php5/work/php-5.3.5/Zend/zend.c:7
59
#5  0x081485fa in php_module_shutdown ()
    at /usr/local/tmp/mnt/opti/home/ports/lang/php5/work/php-5.3.5/main/main.c:2
143
#6  0x0821a303 in main (argc=2, argv=0xbfbfebb4)
    at /usr/local/tmp/mnt/opti/home/ports/lang/php5/work/php-5.3.5/sapi/cli/php_
cli.c:1388

How-To-Repeat: 	Install a clean 7.3-RELEASE or 7.4-RC1 system
	Install lang/php5
	Install databases/db47
	Install databases/php5-dba
		Enable Berkeley DB4 support in OPTIONS, leave others at default

	gdb /usr/local/bin/php
	(gdb) run /dev/null

	If run without the php5-dba port installed this same exercise completes
	normally.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-01-11 05:40:15 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2011-01-11 08:03:10 UTC
State Changed
From-To: open->closed

Build php with LINKTHR.