I get a segfault with PHP 5.2.0RC2 in CLI mode (Apache module seems to work) and APC 3.0.11 (without APC it works fine). Is this a known problem (maybe even fixed in CVS) or is it worth investigating?

Some info:
./configure --with-apxs2=/www/server/bin/apxs --prefix=/www/server --with-config-file-path=/www/server/conf --enable-calendar --enable-bcmath --enable-debug=no --enable-exif --enable-track-vars --sbindir=/www/server/bin --with-curl --with-db4 --with-freetype-dir=/usr --with-gd --with-gettext --with-iconv --with-jpeg-dir=/usr --with-ldap --with-mcrypt --with-mysql --with-openssl --with-xml --with-zlib --enable-debug

abflex:/www/server # uname -a
Linux abflex 2.6.13-15.11-default #1 Mon Jul 17 09:43:01 UTC 2006 i686 i686 i386 GNU/Linux
abflex:/www/server # cat /etc/SuSE-release
SUSE LINUX 10.0 (i586)

abflex:/www/server # gdb php
GNU gdb 6.3
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 "i586-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) r
Starting program: /home/www/server/bin/php
[Thread debugging using libthread_db enabled]
[New Thread 1082029536 (LWP 19807)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1082029536 (LWP 19807)]
0x082d298b in _zend_hash_add_or_update (ht=0x407e829c,
    arKey=0x83eecd4 "register_argc_argv", nKeyLength=19, pData=0xbf96a7b8,
    nDataSize=4, pDest=0x0, flag=2,
    __zend_filename=0x83e7e58 "/www/server/php-5.2.0RC2/Zend/zend_ini.c",
    __zend_lineno=258) at /www/server/php-5.2.0RC2/Zend/zend_hash.c:213
213             p = ht->arBuckets[nIndex];
(gdb) p nIndex
$1 = 0
(gdb) p ht->arBuckets
$2 = (Bucket **) 0x0
(gdb) p ht
$3 = (HashTable *) 0x407e829c
(gdb) p *ht
$4 = {nTableSize = 0, nTableMask = 0, nNumOfElements = 0,
  nNextFreeElement = 0, pInternalPointer = 0x0, pListHead = 0x0,
  pListTail = 0x0, arBuckets = 0x0, pDestructor = 0, persistent = 0 '\0',
  nApplyCount = 0 '\0', bApplyProtection = 0 '\0', inconsistent = 0}


Regards,
- Chris

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to