ID:               26487
 Updated by:       [EMAIL PROTECTED]
 Reported By:      friosa at pnpitalia dot it
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: athlon suse linux 9
 PHP Version:      5.0.0b2 (beta2)
 New Comment:

(gdb) bt

would output the backtrace..but run php in gdb:

# gdb ./bin/php
(gdb) run -n try.php
<crash>
(gdb) bt



Previous Comments:
------------------------------------------------------------------------

[2003-12-01 10:19:02] friosa at pnpitalia dot it

may be the attached backtrace is not bery usefull but i don't know how
to use it very well:

uname -a
Linux 2.4.21-144-athlon #1 Fri Nov 14 00:01:10 UTC 2003 i686 athlon
i386 GNU/Linux

I've compiled again (php5-200312011430) with:

./configure \
--enable-debug \
--prefix=/INSTALL/php_latest \
[...] && make && make install


./bin/php try.php
<?php
error_reporting (E_ALL);
$ar = array();
$ar[0] .= "pluto";
?>

Notice: Undefined offset:  0 in /INSTALL/php_latest/try.php on line 4
Segmentation fault

./bin/php try2.php
<?php
error_reporting (E_ALL);
$ar = array();
$ar[] .= "pluto";
?>
Segmentation fault (core dumped)

gdb ./bin/php ./core
(gdb) run ./try.php
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /INSTALL/php_latest/bin/php ./try.php
[New Thread 16384 (LWP 3082)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 3082)]
0x00000000 in ?? ()
(gdb)

please say me if i can do anything else

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

[2003-12-01 09:20:43] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

Can not reproduce, I get this:

Notice: Undefined offset:  0 in test.php on line 3


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

[2003-12-01 08:53:12] friosa at pnpitalia dot it

Description:
------------
crash on := assign to a non-existent array element
php 5.00 (beta2)
php 5.00 (200311291630)

hope that the example i easy enough, i'm not in condition now to put
here a back trace sorry :( i will try it later.

./configure
--prefix=/usr/local
--with-config-file-path=/etc/php5.ini
--disable-posix
--disable-session
--disable-tokenizer
--without-sqlite
--disable-cgi
--disable-shared
--enable-shared=no
--with-mysql
--with-mysql-sock=/var/lib/mysql/mysql.sock
--with-informix=/opt/informix
--with-libxml-dir=/pnp
--with-dom=/pnp
--with-dom-xslt=/pnp
--with-dom-exslt=/pnp
--enable-simplexml
--enable-pcntl
--enable-sigchild
--enable-mime-magic
--with-gnu-ld
--with-pcre-regex
--enable-ftp

[PHP Modules]
ctype
dom
ftp
informix
libxml
mysql
pcntl
pcre
simplexml
standard
xml

[Zend Modules]


Reproduce code:
---------------
#! /usr/local/bin/php
# try.php
<?php
$ar = array();
$ar[0] .= "pluto";
?>

./try.php
Segmentation fault



Expected result:
----------------
$ar[0] == "pluto";
OR
an error displayed



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


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

Reply via email to