#47829 [NEW]: Segmentation fault on startup with PDO Firebird compiled in

[email protected] ("info at programmiernutte dot net")
Newsgroups php.bugs
Message-ID <[email protected]>
From:             info at programmiernutte dot net
Operating system: Debian Etch x86_64
PHP version:      5.3.0RC1
PHP Bug Type:     Reproducible crash
Bug description:  Segmentation fault on startup with PDO Firebird compiled in

Description:
------------
I am getting Segmentation fault on startup, no matter if SAPI apache 2 or
CLI. Same Version of PHP and same Firebird Version (2.1.1.) are running
flawlessly on my G4 Mac on Mac OS X 10.4.11, so maybe this is
64bit-related? 
I used gdb to track this down to PDO Firebird Initialisation Startup:

(gdb) run
Starting program: /usr/src/php-5.3.0RC1/sapi/cli/php 
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread 47013927445712 (LWP 16824)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47013927445712 (LWP 16824)]
zend_declare_class_constant_long (ce=0x0, name=0xa6a5ef
"FB_ATTR_DATE_FORMAT", name_length=19, value=1000)
    at /usr/src/php-5.3.0RC1/Zend/zend_API.c:3210
3210            if (ce->type & ZEND_INTERNAL_CLASS) {
(gdb) where
#0  zend_declare_class_constant_long (ce=0x0, name=0xa6a5ef
"FB_ATTR_DATE_FORMAT", name_length=19, value=1000)
    at /usr/src/php-5.3.0RC1/Zend/zend_API.c:3210
#1  0x00000000005190c2 in zm_startup_pdo_firebird (type=<value optimized
out>, module_number=<value optimized out>)
    at /usr/src/php-5.3.0RC1/ext/pdo_firebird/pdo_firebird.c:58
#2  0x000000000061cfbe in zend_startup_module_ex (module=0xcafb10) at
/usr/src/php-5.3.0RC1/Zend/zend_API.c:1593
#3  0x0000000000625f05 in zend_hash_apply (ht=0xc62e80,
apply_func=0x61cec0 <zend_startup_module_ex>)
    at /usr/src/php-5.3.0RC1/Zend/zend_hash.c:673
#4  0x000000000061d89a in zend_startup_modules () at
/usr/src/php-5.3.0RC1/Zend/zend_API.c:1642
#5  0x00000000005c827f in php_module_startup (sf=<value optimized out>,
additional_modules=0x0, num_additional_modules=0)
    at /usr/src/php-5.3.0RC1/main/main.c:1952
#6  0x00000000006a0e5d in php_cli_startup (sapi_module=0x0) at
/usr/src/php-5.3.0RC1/sapi/cli/php_cli.c:370
#7  0x00000000006a155f in main (argc=1, argv=0x7fff63c23928) at
/usr/src/php-5.3.0RC1/sapi/cli/php_cli.c:742


-- 
Edit bug report at http://bugs.php.net/?id=47829&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        http://bugs.php.net/fix.php?id=47829&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        http://bugs.php.net/fix.php?id=47829&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        http://bugs.php.net/fix.php?id=47829&r=trysnapshot60
Fixed in CVS:                        http://bugs.php.net/fix.php?id=47829&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47829&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=47829&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=47829&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=47829&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=47829&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=47829&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=47829&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=47829&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=47829&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=47829&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47829&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47829&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=47829&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=47829&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=47829&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=47829&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=47829&r=mysqlcfg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.