From: [email protected]
Operating system: Linux
PHP version: 5.3SVN-2009-07-19 (SVN)
PHP Bug Type: Reproducible crash
Bug description: Crash when compiling with pdo_firebird
Description:
------------
Compiling with './configure --with-pdo-firebird' we got a segfault when
starting php.
Reproduce code:
---------------
$ sapi/cli/php
Expected result:
----------------
No SIGSEGV.
Actual result:
--------------
Starting program: /home/felipe/dev/php5/sapi/cli/php
[Thread debugging using libthread_db enabled]
[New Thread 0xb7adc8e0 (LWP 9461)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7adc8e0 (LWP 9461)]
0x08415dfe in zend_declare_class_constant_long (ce=0x0, name=0x8737b6e
"FB_ATTR_DATE_FORMAT", name_length=19, value=1000, tsrm_ls=0xa2d4050)
at /home/felipe/dev/php5/Zend/zend_API.c:3229
3229 if (ce->type & ZEND_INTERNAL_CLASS) {
(gdb) bt
#0 0x08415dfe in zend_declare_class_constant_long (ce=0x0, name=0x8737b6e
"FB_ATTR_DATE_FORMAT", name_length=19, value=1000,
tsrm_ls=0xa2d4050) at /home/felipe/dev/php5/Zend/zend_API.c:3229
#1 0x081dabb0 in zm_startup_pdo_firebird (type=1, module_number=14,
tsrm_ls=0xa2d4050)
at /home/felipe/dev/php5/ext/pdo_firebird/pdo_firebird.c:58
#2 0x084106df in zend_startup_module_ex (module=0xa2e5ba8,
tsrm_ls=0xa2d4050) at /home/felipe/dev/php5/Zend/zend_API.c:1613
#3 0x08419a77 in zend_hash_apply (ht=0x87c2e40, apply_func=0x84104fd
<zend_startup_module_ex>, tsrm_ls=0xa2d4050)
at /home/felipe/dev/php5/Zend/zend_hash.c:673
#4 0x08410896 in zend_startup_modules (tsrm_ls=0xa2d4050) at
/home/felipe/dev/php5/Zend/zend_API.c:1662
#5 0x0837c2cd in php_module_startup (sf=0x87aee00,
additional_modules=0x0, num_additional_modules=0)
at /home/felipe/dev/php5/main/main.c:2007
#6 0x084eaf4f in php_cli_startup (sapi_module=0x87aee00) at
/home/felipe/dev/php5/sapi/cli/php_cli.c:399
#7 0x084ebd23 in main (argc=1, argv=0xbfde7d84) at
/home/felipe/dev/php5/sapi/cli/php_cli.c:771
--
Edit bug report at http://bugs.php.net/?id=48980&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=48980&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=48980&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=48980&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=48980&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=48980&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=48980&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=48980&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=48980&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=48980&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=48980&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=48980&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=48980&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=48980&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=48980&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48980&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48980&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=48980&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=48980&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=48980&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=48980&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=48980&r=mysqlcfg