Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #35939 : SPL ArrayObject segmentation fault when more than one parameters passed
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 11th July 06:55
php-bugs@lists.php.net (lynjwxm at hotmail dot
External User
 
Posts: 1
Default #35939 : SPL ArrayObject segmentation fault when more than one parameters passed


From: lynjwxm at hotmail dot com
Operating system: redhat linux
PHP version: 5.1.1
PHP Bug Type: Reproducible crash
Bug description: SPL ArrayObject segmentation fault when more than one parameters passed

Description:
------------
If you give more than one parameters to function
ArrayObject::__construct(),it really crashed.I know I did not use this
function correctly, but I did not expect the segmentation fault. I expect
a warning of uncaught exception not a seg fault.

Reproduce code:
---------------
<?php
$test=array("cat","dog","it","rains");
//try{ //comment exception catcher cause crash.
$obj=new ArrayObject($test,5);
//}catch(Exception $e)
//{
echo "exception protect you.\n";;
//}
var_dump($obj);
?>


Expected result:
----------------
anything other than crash

Actual result:
--------------
segmentation fault

--
Edit bug report at http://bugs.php.net/?id=35939&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35939&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35939&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35939&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35939&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35939&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35939&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35939&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35939&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35939&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35939&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35939&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35939&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35939&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35939&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35939&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35939&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35939&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35939&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35939&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35939&r=mysqlcfg
  Reply With Quote


  sponsored links


2 11th July 06:56
sniper
External User
 
Posts: 1
Default #35939 : SPL ArrayObject segmentation fault when more than one parameters passed


ID: 35939
Updated by: sniper@php.net
Reported By: lynjwxm at hotmail dot com
-Status: Open
+Status: Assigned
-Bug Type: Reproducible crash
+Bug Type: SPL related
-Operating System: redhat linux
+Operating System: *
-PHP Version: 5.1.1
+PHP Version: 5CVS-2006-01-06 (cvs)
-Assigned To:
+Assigned To: helly
New Comment:

Marcus, latest CVS does not crash but doesn't give any error either.
Intentional or not?


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

[2006-01-09 09:11:56] lynjwxm at hotmail dot com

Description:
------------
If you give more than one parameters to function
ArrayObject::__construct(),it really crashed.I know I did not use this
function correctly, but I did not expect the segmentation fault. I
expect a warning of uncaught exception not a seg fault.

Reproduce code:
---------------
<?php
$test=array("cat","dog","it","rains");
//try{ //comment exception catcher cause crash.
$obj=new ArrayObject($test,5);
//}catch(Exception $e)
//{
echo "exception protect you.\n";;
//}
var_dump($obj);
?>


Expected result:
----------------
anything other than crash

Actual result:
--------------
segmentation fault


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


--
Edit this bug report at http://bugs.php.net/?id=35939&edit=1
  Reply With Quote
3 11th July 09:14
helly
External User
 
Posts: 1
Default #35939 : SPL ArrayObject segmentation fault when more than one parameters passed


ID: 35939
Updated by: helly@php.net
Reported By: lynjwxm at hotmail dot com
-Status: Assigned
+Status: Feedback
Bug Type: SPL related
Operating System: *
PHP Version: 5CVS-2006-01-06 (cvs)
Assigned To: helly
New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

I cannot reproduce this and valgrind doesn't find anything. So please
update to 5.1.2-RC2 and test again. If it still happens send me a
backtrace as explained above.


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

[2006-01-09 09:19:33] sniper@php.net

Marcus, latest CVS does not crash but doesn't give any error either.
Intentional or not?

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

[2006-01-09 09:11:56] lynjwxm at hotmail dot com

Description:
------------
If you give more than one parameters to function
ArrayObject::__construct(),it really crashed.I know I did not use this
function correctly, but I did not expect the segmentation fault. I
expect a warning of uncaught exception not a seg fault.

Reproduce code:
---------------
<?php
$test=array("cat","dog","it","rains");
//try{ //comment exception catcher cause crash.
$obj=new ArrayObject($test,5);
//}catch(Exception $e)
//{
echo "exception protect you.\n";;
//}
var_dump($obj);
?>


Expected result:
----------------
anything other than crash

Actual result:
--------------
segmentation fault


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


--
Edit this bug report at http://bugs.php.net/?id=35939&edit=1
  Reply With Quote
4 11th July 09:16
php-bugs@lists.php.net (lynjwxm at hotmail dot
External User
 
Posts: 1
Default #35939 : SPL ArrayObject segmentation fault when more than one parameters passed


ID: 35939
User updated by: lynjwxm at hotmail dot com
Reported By: lynjwxm at hotmail dot com
-Status: Feedback
+Status: Closed
Bug Type: SPL related
Operating System: *
-PHP Version: 5CVS-2006-01-06 (cvs)
+PHP Version: php5-STABLE-200509220445
Assigned To: helly
New Comment:

I am sorry that I made a mistake about the version of php with which I
produced this defect. I use php5-STABLE-200509220445 to do so. I
download the latest php-5.1.2RC1 only to find it has gone. Still need
backtrace?


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

[2006-01-09 20:46:38] helly@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

I cannot reproduce this and valgrind doesn't find anything. So please
update to 5.1.2-RC2 and test again. If it still happens send me a
backtrace as explained above.

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

[2006-01-09 09:19:33] sniper@php.net

Marcus, latest CVS does not crash but doesn't give any error either.
Intentional or not?

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

[2006-01-09 09:11:56] lynjwxm at hotmail dot com

Description:
------------
If you give more than one parameters to function
ArrayObject::__construct(),it really crashed.I know I did not use this
function correctly, but I did not expect the segmentation fault. I
expect a warning of uncaught exception not a seg fault.

Reproduce code:
---------------
<?php
$test=array("cat","dog","it","rains");
//try{ //comment exception catcher cause crash.
$obj=new ArrayObject($test,5);
//}catch(Exception $e)
//{
echo "exception protect you.\n";;
//}
var_dump($obj);
?>


Expected result:
----------------
anything other than crash

Actual result:
--------------
segmentation fault


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


--
Edit this bug report at http://bugs.php.net/?id=35939&edit=1
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666