#26893 [Fbk->Opn]: Segmentation Fault

2004-01-13 Thread liz at xcalibur dot demon dot co dot uk
 ID:   26893
 User updated by:  liz at xcalibur dot demon dot co dot uk
 Reported By:  liz at xcalibur dot demon dot co dot uk
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Linux 2.4.20
 PHP Version:  5.0.0b3 (beta3)
 New Comment:

bt output as requested

#0  0x81537f3 in zend_hash_find (ht=0x0, arKey=0xbfffe7b4 "lwp",
nKeyLength=4, pData=0xbfffe864)
at /usr/src/web/php5-200401121630/Zend/zend_hash.c:844
#1  0x8146513 in zend_lookup_class (name=0xbfffe824 "LWP",
name_length=3, ce=0xbfffe864)
at /usr/src/web/php5-200401121630/Zend/zend_execute_API.c:794
#2  0x8144c59 in zend_get_constant (name=0x830d290 "LWP::Simple",
name_len=8, result=0xbfffe89c)
at /usr/src/web/php5-200401121630/Zend/zend_constants.c:254
#3  0x813c828 in zend_ini_get_constant (result=0xbfffe90c,
name=0xbfffe96c) at Zend/zend_ini_parser.c:121
#4  0x813cde6 in ini_parse () at Zend/zend_ini_parser.c:926
#5  0x813c952 in zend_parse_ini_file (fh=0xb78c,
unbuffered_errors=1, ini_parser_cb=0x80d42d0 ,

arg=0x81de3a0) at Zend/zend_ini_parser.c:176
#6  0x80d4589 in zm_startup_browscap (type=1, module_number=3) at
/usr/src/web/php5-200401121630/ext/standard/browscap.c:165
#7  0x80cf307 in zm_startup_basic (type=1, module_number=3) at
/usr/src/web/php5-200401121630/ext/standard/basic_functions.c:996
#8  0x815071a in zend_startup_module (module=0x81d2b80) at
/usr/src/web/php5-200401121630/Zend/zend_API.c:1179
#9  0x812258f in php_startup_extensions (ptr=0x81dbd68, count=11) at
/usr/src/web/php5-200401121630/main/main.c:1290
#10 0x8185eb5 in php_startup_internal_extensions () at
main/internal_functions_cli.c:64
#11 0x8122995 in php_module_startup (sf=0x81dbcc0,
additional_modules=0x0, num_additional_modules=0)
at /usr/src/web/php5-200401121630/main/main.c:1458
#12 0x8184f4e in main (argc=1, argv=0xba94) at
/usr/src/web/php5-200401121630/sapi/cli/php_cli.c:607
#13 0x401a72eb in __libc_start_main (main=0x8184dec , argc=1,
ubp_av=0xba94, init=0x806d4b0 <_init>, 
fini=0x818e24c <_fini>, rtld_fini=0x4000c130 <_dl_fini>,
stack_end=0xba8c) at ../sysdeps/generic/libc-start.c:129


Previous Comments:


[2004-01-13 07:25:15] [EMAIL PROTECTED]

Can you please also use the "bt" command from GDB to display the full
callstack after the segfault?


------------------------

[2004-01-13 07:08:22] liz at xcalibur dot demon dot co dot uk

Description:

Having tried many compile variations even a simple

./configure
make
make install
php

causes seg fault - I removed all my options to check to see if it was
related.

I removed any reference to Zend optimizer in php.ini, so its not that




Reproduce code:
---
None required. I Cant get any code to run.

Expected result:

Anything other than seg fault.

Actual result:
--
(gdb) run
Starting program: /usr/local/bin/php 
[New Thread 1024 (LWP 18459)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 18459)]
0x814fb53 in zend_hash_find (ht=0x0, arKey=0xbfffe804 "lwp",
nKeyLength=4, pData=0xbfffe8b4)
at /usr/src/web/php-5.0.0b3/Zend/zend_hash.c:844
844 nIndex = h & ht->nTableMask;





-- 
Edit this bug report at http://bugs.php.net/?id=26893&edit=1


#26893 [NEW]: Segmentation Fault

2004-01-13 Thread liz at xcalibur dot demon dot co dot uk
From: liz at xcalibur dot demon dot co dot uk
Operating system: Linux 2.4.20
PHP version:  5.0.0b3 (beta3)
PHP Bug Type: Reproducible crash
Bug description:  Segmentation Fault

Description:

Having tried many compile variations even a simple

./configure
make
make install
php

causes seg fault - I removed all my options to check to see if it was
related.

I removed any reference to Zend optimizer in php.ini, so its not that




Reproduce code:
---
None required. I Cant get any code to run.

Expected result:

Anything other than seg fault.

Actual result:
--
(gdb) run
Starting program: /usr/local/bin/php 
[New Thread 1024 (LWP 18459)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 18459)]
0x814fb53 in zend_hash_find (ht=0x0, arKey=0xbfffe804 "lwp", nKeyLength=4,
pData=0xbfffe8b4)
at /usr/src/web/php-5.0.0b3/Zend/zend_hash.c:844
844 nIndex = h & ht->nTableMask;

-- 
Edit bug report at http://bugs.php.net/?id=26893&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26893&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26893&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=26893&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=26893&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26893&r=needtrace
Need Reproduce Script:  http://bugs.php.net/fix.php?id=26893&r=needscript
Try newer version:  http://bugs.php.net/fix.php?id=26893&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=26893&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=26893&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=26893&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=26893&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=26893&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26893&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=26893&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=26893&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=26893&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26893&r=float


#24424 [Bgs->Opn]: Complains about libxml even when not compiling with XML

2003-06-30 Thread liz at xcalibur dot demon dot co dot uk
 ID:   24424
 User updated by:  liz at xcalibur dot demon dot co dot uk
 Reported By:  liz at xcalibur dot demon dot co dot uk
-Status:   Bogus
+Status:   Open
 Bug Type: PHP options/info functions
 Operating System: linux  2.4.20
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

Given I have submitted my entire configuration, please, tell me what.

The line now reads

./configure --with-mysql=/usr/bin
--with-apache=/usr/src/web/apache_1.3.27 --enable-discard-path
--enable-track-vars --disable-debug --enable-dbase --enable-trans-sid
--enable-inline-optimization --enable-ftp --enable-sockets --with-imap
--with-imap-ssl=/usr/include/openssl --enable-libgcc --disable-ipv6
--enable-exif --with-gd --with-jpeg-dir=/usr/local/bin --with-zlib
-dir=/usr/local/lib --enable-dio --enable-gd-native-ttf
--enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx
--enable-yp --disable-xml --disable-simplexml --disable-dom


Previous Comments:


[2003-06-30 17:55:58] [EMAIL PROTECTED]

It works just fine. You're just doing something wrong.




[2003-06-30 17:05:17] [EMAIL PROTECTED]

--disable-xml --disable-simplexml --disable-dom --without-pear
does it with latest CVS.




[2003-06-30 16:48:22] [EMAIL PROTECTED]

Installing libxml is not the solution in this case, as the user is
specifically requesting that XML support not be added to their PHP
install.

Hopefully the fixes today also made XML support follow the
--disable-all command!

Marking back as open.



[2003-06-30 16:02:41] [EMAIL PROTECTED]

Install Redhat package libxml2-devel .




[2003-06-30 15:58:23] liz at xcalibur dot demon dot co dot uk

No, it still doesnt work, however it gets further and then whines

configure: error: xml2-config not found. Use --with-libxml-dir=
make: *** No targets specified and no makefile found.  Stop.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24424

-- 
Edit this bug report at http://bugs.php.net/?id=24424&edit=1



#24424 [Csd->Opn]: Complains about libxml even when not compiling with XML

2003-06-30 Thread liz at xcalibur dot demon dot co dot uk
 ID:   24424
 User updated by:  liz at xcalibur dot demon dot co dot uk
 Reported By:  liz at xcalibur dot demon dot co dot uk
-Status:   Closed
+Status:   Open
 Bug Type: PHP options/info functions
 Operating System: linux  2.4.20
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

No, it still doesnt work, however it gets further and then whines

configure: error: xml2-config not found. Use --with-libxml-dir=
make: *** No targets specified and no makefile found.  Stop.


Previous Comments:


[2003-06-30 15:44:11] [EMAIL PROTECTED]

I forgot to mention that that was cleaned up in the latest snapshot
from http://snaps.php.net/

./configure --help | egrep "(xml|dom)" | grep disable
  --disable-dom   Disable new DOM support.
  --disable-simplexml Disable simplexml support
  --disable-xml   Disable XML support.




[2003-06-30 15:43:09] [EMAIL PROTECTED]

Please try the latest snapshot, these configure things have just been
"cleaned" up.



[2003-06-30 15:41:40] liz at xcalibur dot demon dot co dot uk

So, sorry, I dont accept this as bogus as the fix you suggested
(despite 2 options not being listed in configure --help, didnt work.



[2003-06-30 15:41:24] [EMAIL PROTECTED]

You need to "make distclean" before you run configure again.

--------

[2003-06-30 15:37:18] liz at xcalibur dot demon dot co dot uk

Actually I added the --disable-simplexml --disable-dom and
--disable-xml and it still did exactly the same.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24424

-- 
Edit this bug report at http://bugs.php.net/?id=24424&edit=1



#24424 [Bgs->Opn]: Complains about libxml even when not compiling with XML

2003-06-30 Thread liz at xcalibur dot demon dot co dot uk
 ID:   24424
 User updated by:  liz at xcalibur dot demon dot co dot uk
 Reported By:  liz at xcalibur dot demon dot co dot uk
-Status:   Bogus
+Status:   Open
 Bug Type: PHP options/info functions
 Operating System: linux  2.4.20
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

So, sorry, I dont accept this as bogus as the fix you suggested
(despite 2 options not being listed in configure --help, didnt work.


Previous Comments:


[2003-06-30 15:41:24] [EMAIL PROTECTED]

You need to "make distclean" before you run configure again.



[2003-06-30 15:37:18] liz at xcalibur dot demon dot co dot uk

Actually I added the --disable-simplexml --disable-dom and
--disable-xml and it still did exactly the same.



[2003-06-30 15:35:55] liz at xcalibur dot demon dot co dot uk

PS this also happens if I add --disable-xml



[2003-06-30 15:33:34] [EMAIL PROTECTED]

To disable xml support completely you need to add:

--disable-xml --disable-simplexml --disable-dom 



[2003-06-30 15:29:27] liz at xcalibur dot demon dot co dot uk

Description:

./configure --with-mysql=/usr/bin
--with-apache=/usr/src/web/apache_1.3.27 --enable-discard-path
--enable-track-vars --disable-debug --enable-dbase --enable-trans-sid
--enable-inline-optimization --enable-ftp --enable-sockets --with-imap
--with-imap-ssl=/usr/include/openssl --enable-libgcc --disable-ipv6
--enable-exif --with-gd --with-jpeg-dir=/usr/local/bin
--with-zlib-dir=/usr/local/lib --enable-dio --enable-gd-native-ttf
--enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx
--enable-yp

This is a script Ive used to compile PHP for a while.  However, how, I
noticed as its doing its config it seems to get upset. It says.

checking for OpenSSL support... no
checking for ZLIB support... no
checking if the location of ZLIB install directory is defined...
/usr/local/lib

### Please note, I asked for for ZLIB support, yet it decides NO and
then STILL goes on to find it.

checking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking for cpdflib support... no
checking for CRACKlib support... no
checking whether to enable ctype functions... yes
checking for CURL support... no
checking if we should use CURL for url streams... no
checking for xDBM support... no
checking whether to enable DBA... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB4 support... no
checking for Berkeley DB3 support... no
checking for Berkeley DB2 support... no
checking for DBM support... no
checking for CDB support... no
checking for INI File support... no
checking for FlatFile support... no
checking whether to enable DBA interface... no
checking whether to enable dbase support... yes
checking whether to enable dbx support... no
checking whether to enable direct I/O support... yes
checking for new DOM support... yes
not found
configure: error: Please reinstall the libxml >= 2.4.14 distribution
make: *** No targets specified and no makefile found.  Stop.

At this point, it dies, I dont want XML support, I dont use, nor am I
likely to use XML..

Expected result:

I expected it to build, as the system has recent enoguh components that
Im trying to use and install.

Actual result:
--
PHP wont compile.

This is not acceptible to be forced to compile in or upgrade parts of
my system I dont want PHP to use.





-- 
Edit this bug report at http://bugs.php.net/?id=24424&edit=1



#24424 [Bgs]: Complains about libxml even when not compiling with XML

2003-06-30 Thread liz at xcalibur dot demon dot co dot uk
 ID:   24424
 User updated by:  liz at xcalibur dot demon dot co dot uk
 Reported By:  liz at xcalibur dot demon dot co dot uk
 Status:   Bogus
 Bug Type: PHP options/info functions
 Operating System: linux  2.4.20
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

Actually I added the --disable-simplexml --disable-dom and
--disable-xml and it still did exactly the same.


Previous Comments:


[2003-06-30 15:35:55] liz at xcalibur dot demon dot co dot uk

PS this also happens if I add --disable-xml



[2003-06-30 15:33:34] [EMAIL PROTECTED]

To disable xml support completely you need to add:

--disable-xml --disable-simplexml --disable-dom 



[2003-06-30 15:29:27] liz at xcalibur dot demon dot co dot uk

Description:

./configure --with-mysql=/usr/bin
--with-apache=/usr/src/web/apache_1.3.27 --enable-discard-path
--enable-track-vars --disable-debug --enable-dbase --enable-trans-sid
--enable-inline-optimization --enable-ftp --enable-sockets --with-imap
--with-imap-ssl=/usr/include/openssl --enable-libgcc --disable-ipv6
--enable-exif --with-gd --with-jpeg-dir=/usr/local/bin
--with-zlib-dir=/usr/local/lib --enable-dio --enable-gd-native-ttf
--enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx
--enable-yp

This is a script Ive used to compile PHP for a while.  However, how, I
noticed as its doing its config it seems to get upset. It says.

checking for OpenSSL support... no
checking for ZLIB support... no
checking if the location of ZLIB install directory is defined...
/usr/local/lib

### Please note, I asked for for ZLIB support, yet it decides NO and
then STILL goes on to find it.

checking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking for cpdflib support... no
checking for CRACKlib support... no
checking whether to enable ctype functions... yes
checking for CURL support... no
checking if we should use CURL for url streams... no
checking for xDBM support... no
checking whether to enable DBA... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB4 support... no
checking for Berkeley DB3 support... no
checking for Berkeley DB2 support... no
checking for DBM support... no
checking for CDB support... no
checking for INI File support... no
checking for FlatFile support... no
checking whether to enable DBA interface... no
checking whether to enable dbase support... yes
checking whether to enable dbx support... no
checking whether to enable direct I/O support... yes
checking for new DOM support... yes
not found
configure: error: Please reinstall the libxml >= 2.4.14 distribution
make: *** No targets specified and no makefile found.  Stop.

At this point, it dies, I dont want XML support, I dont use, nor am I
likely to use XML..

Expected result:

I expected it to build, as the system has recent enoguh components that
Im trying to use and install.

Actual result:
--
PHP wont compile.

This is not acceptible to be forced to compile in or upgrade parts of
my system I dont want PHP to use.





-- 
Edit this bug report at http://bugs.php.net/?id=24424&edit=1



#24424 [Bgs]: Complains about libxml even when not compiling with XML

2003-06-30 Thread liz at xcalibur dot demon dot co dot uk
 ID:   24424
 User updated by:  liz at xcalibur dot demon dot co dot uk
 Reported By:  liz at xcalibur dot demon dot co dot uk
 Status:   Bogus
 Bug Type: PHP options/info functions
 Operating System: linux  2.4.20
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

PS this also happens if I add --disable-xml


Previous Comments:


[2003-06-30 15:33:34] [EMAIL PROTECTED]

To disable xml support completely you need to add:

--disable-xml --disable-simplexml --disable-dom 



[2003-06-30 15:29:27] liz at xcalibur dot demon dot co dot uk

Description:

./configure --with-mysql=/usr/bin
--with-apache=/usr/src/web/apache_1.3.27 --enable-discard-path
--enable-track-vars --disable-debug --enable-dbase --enable-trans-sid
--enable-inline-optimization --enable-ftp --enable-sockets --with-imap
--with-imap-ssl=/usr/include/openssl --enable-libgcc --disable-ipv6
--enable-exif --with-gd --with-jpeg-dir=/usr/local/bin
--with-zlib-dir=/usr/local/lib --enable-dio --enable-gd-native-ttf
--enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx
--enable-yp

This is a script Ive used to compile PHP for a while.  However, how, I
noticed as its doing its config it seems to get upset. It says.

checking for OpenSSL support... no
checking for ZLIB support... no
checking if the location of ZLIB install directory is defined...
/usr/local/lib

### Please note, I asked for for ZLIB support, yet it decides NO and
then STILL goes on to find it.

checking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking for cpdflib support... no
checking for CRACKlib support... no
checking whether to enable ctype functions... yes
checking for CURL support... no
checking if we should use CURL for url streams... no
checking for xDBM support... no
checking whether to enable DBA... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB4 support... no
checking for Berkeley DB3 support... no
checking for Berkeley DB2 support... no
checking for DBM support... no
checking for CDB support... no
checking for INI File support... no
checking for FlatFile support... no
checking whether to enable DBA interface... no
checking whether to enable dbase support... yes
checking whether to enable dbx support... no
checking whether to enable direct I/O support... yes
checking for new DOM support... yes
not found
configure: error: Please reinstall the libxml >= 2.4.14 distribution
make: *** No targets specified and no makefile found.  Stop.

At this point, it dies, I dont want XML support, I dont use, nor am I
likely to use XML..

Expected result:

I expected it to build, as the system has recent enoguh components that
Im trying to use and install.

Actual result:
--
PHP wont compile.

This is not acceptible to be forced to compile in or upgrade parts of
my system I dont want PHP to use.





-- 
Edit this bug report at http://bugs.php.net/?id=24424&edit=1



#24424 [NEW]: Complains about libxml even when not compiling with XML

2003-06-30 Thread liz at xcalibur dot demon dot co dot uk
From: liz at xcalibur dot demon dot co dot uk
Operating system: linux  2.4.20
PHP version:  5.0.0b1 (beta1)
PHP Bug Type: PHP options/info functions
Bug description:  Complains about libxml even when not compiling with XML

Description:

./configure --with-mysql=/usr/bin --with-apache=/usr/src/web/apache_1.3.27
--enable-discard-path --enable-track-vars --disable-debug --enable-dbase
--enable-trans-sid --enable-inline-optimization --enable-ftp
--enable-sockets --with-imap --with-imap-ssl=/usr/include/openssl
--enable-libgcc --disable-ipv6 --enable-exif --with-gd
--with-jpeg-dir=/usr/local/bin --with-zlib-dir=/usr/local/lib --enable-dio
--enable-gd-native-ttf --enable-sysvmsg --enable-sysvsem --enable-sysvshm
--enable-wddx --enable-yp

This is a script Ive used to compile PHP for a while.  However, how, I
noticed as its doing its config it seems to get upset. It says.

checking for OpenSSL support... no
checking for ZLIB support... no
checking if the location of ZLIB install directory is defined...
/usr/local/lib

### Please note, I asked for for ZLIB support, yet it decides NO and then
STILL goes on to find it.

checking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking for cpdflib support... no
checking for CRACKlib support... no
checking whether to enable ctype functions... yes
checking for CURL support... no
checking if we should use CURL for url streams... no
checking for xDBM support... no
checking whether to enable DBA... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB4 support... no
checking for Berkeley DB3 support... no
checking for Berkeley DB2 support... no
checking for DBM support... no
checking for CDB support... no
checking for INI File support... no
checking for FlatFile support... no
checking whether to enable DBA interface... no
checking whether to enable dbase support... yes
checking whether to enable dbx support... no
checking whether to enable direct I/O support... yes
checking for new DOM support... yes
not found
configure: error: Please reinstall the libxml >= 2.4.14 distribution
make: *** No targets specified and no makefile found.  Stop.

At this point, it dies, I dont want XML support, I dont use, nor am I
likely to use XML..

Expected result:

I expected it to build, as the system has recent enoguh components that Im
trying to use and install.

Actual result:
--
PHP wont compile.

This is not acceptible to be forced to compile in or upgrade parts of my
system I dont want PHP to use.

-- 
Edit bug report at http://bugs.php.net/?id=24424&edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24424&r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=24424&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24424&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24424&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24424&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24424&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24424&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24424&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24424&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24424&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24424&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24424&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24424&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24424&r=gnused