Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #35437 : Segfault or Invalid Opcode 137/1/4
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 11th June 09:05
php-bugs@lists.php.net (me at dither dot spb dot
External User
 
Posts: 1
Default #35437 : Segfault or Invalid Opcode 137/1/4


From: me at dither dot spb dot ru
Operating system: WinXPSP2, Fedora Core 3
PHP version: 5.1.0
PHP Bug Type: Reproducible crash
Bug description: Segfault or Invalid Opcode 137/1/4

Description:
------------
PHP 5.1 Final Release.
(built: Nov 23 2005 23:59:35)

Easy repoducible segfault or Invalid opcode 137/1/4 Fatal Error.

Reproduce code:
---------------
<?php
function err2exception($errno, $errstr)
{
throw new Exception("Error occuried: " . $errstr);
}

set_error_handler('err2exception');

class TestClass
{
function testMethod()
{
//$GLOBALS['t'] = 'test';
$GLOBALS['t'] = new stdClass;
}
}

TestClass::testMethod();
?>

Expected result:
----------------
PHP Should cause Strict level Notice "Non-static method
TestClass::testMethod() should not be called statically", and after what
error_handler err2exception() must be executed.

Finally, it must be an Uncaught exception 'Exception' with message 'Error
occuried: Non-static method TestClass::testMethod() should not be called
statically'.

Actual result:
--------------
Segfault.

Uncommenting line //$GLOBALS['t'] = 'test' causes Invalid opcode 137/1/4
Fatal Error.

Commenting both $GLOBALS lines completly fixes bug.

Marking method testMethod() as static (... static function testMethod()
....) fixes bug too, but no exception will be thrown.

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


  sponsored links


2 11th June 09:05
sniper
External User
 
Posts: 1
Default #35437 : Segfault or Invalid Opcode 137/1/4


ID: 35437
Updated by: sniper@php.net
Reported By: me at dither dot spb dot ru
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: WinXPSP2, Fedora Core 3
PHP Version: 5.1.0
New Comment:

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


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

[2005-11-28 04:19:49] me at dither dot spb dot ru

Description:
------------
PHP 5.1 Final Release.
(built: Nov 23 2005 23:59:35)

Easy repoducible segfault or Invalid opcode 137/1/4 Fatal Error.

Reproduce code:
---------------
<?php
function err2exception($errno, $errstr)
{
throw new Exception("Error occuried: " . $errstr);
}

set_error_handler('err2exception');

class TestClass
{
function testMethod()
{
//$GLOBALS['t'] = 'test';
$GLOBALS['t'] = new stdClass;
}
}

TestClass::testMethod();
?>

Expected result:
----------------
PHP Should cause Strict level Notice "Non-static method
TestClass::testMethod() should not be called statically", and after
what error_handler err2exception() must be executed.

Finally, it must be an Uncaught exception 'Exception' with message
'Error occuried: Non-static method TestClass::testMethod() should not
be called statically'.

Actual result:
--------------
Segfault.

Uncommenting line //$GLOBALS['t'] = 'test' causes Invalid opcode
137/1/4 Fatal Error.

Commenting both $GLOBALS lines completly fixes bug.

Marking method testMethod() as static (... static function testMethod()
....) fixes bug too, but no exception will be thrown.


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


--
Edit this bug report at http://bugs.php.net/?id=35437&edit=1
  Reply With Quote
3 11th June 12:34
php-bugs@lists.php.net (me at dither dot spb dot
External User
 
Posts: 1
Default #35437 : Segfault or Invalid Opcode 137/1/4


ID: 35437
User updated by: me at dither dot spb dot ru
Reported By: me at dither dot spb dot ru
-Status: Feedback
+Status: Open
Bug Type: Reproducible crash
Operating System: WinXPSP2, Fedora Core 3
PHP Version: 5.1.0
New Comment:

PHP 5.1.2-dev (cli) (built: Nov 27 2005 20:24:18) (Win32).
No changes. Problem persists. Sorry, I dont have enought time to test
latest unix snapshot. If needed, I can do some testing across different
unix versions tomorrow.

Omg, sorry for my bad english..


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

[2005-11-28 09:13:58] sniper@php.net

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

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

[2005-11-28 04:19:49] me at dither dot spb dot ru

Description:
------------
PHP 5.1 Final Release.
(built: Nov 23 2005 23:59:35)

Easy repoducible segfault or Invalid opcode 137/1/4 Fatal Error.

Reproduce code:
---------------
<?php
function err2exception($errno, $errstr)
{
throw new Exception("Error occuried: " . $errstr);
}

set_error_handler('err2exception');

class TestClass
{
function testMethod()
{
//$GLOBALS['t'] = 'test';
$GLOBALS['t'] = new stdClass;
}
}

TestClass::testMethod();
?>

Expected result:
----------------
PHP Should cause Strict level Notice "Non-static method
TestClass::testMethod() should not be called statically", and after
what error_handler err2exception() must be executed.

Finally, it must be an Uncaught exception 'Exception' with message
'Error occuried: Non-static method TestClass::testMethod() should not
be called statically'.

Actual result:
--------------
Segfault.

Uncommenting line //$GLOBALS['t'] = 'test' causes Invalid opcode
137/1/4 Fatal Error.

Commenting both $GLOBALS lines completly fixes bug.

Marking method testMethod() as static (... static function testMethod()
....) fixes bug too, but no exception will be thrown.


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


--
Edit this bug report at http://bugs.php.net/?id=35437&edit=1
  Reply With Quote
4 11th June 12:57
sniper
External User
 
Posts: 1
Default #35437 : Segfault or Invalid Opcode 137/1/4


ID: 35437
Updated by: sniper@php.net
Reported By: me at dither dot spb dot ru
-Status: Open
+Status: Assigned
-Bug Type: Reproducible crash
+Bug Type: Scripting Engine problem
-Operating System: WinXPSP2, Fedora Core 3
+Operating System: *
-PHP Version: 5.1.0
+PHP Version: 5CVS-2005-11-28 (cvs)
-Assigned To:
+Assigned To: dmitry
New Comment:

Here's GDB backtrace:

0x0820c3bf in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfe14f80) at
/usr/src/php_5_1/Zend/zend_vm_execute.h:131
131 if (EX(function_state).function->common.fn_flags &
ZEND_ACC_ABSTRACT) {
(gdb) bt
#0 0x0820c3bf in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfe14f80) at
/usr/src/php_5_1/Zend/zend_vm_execute.h:131
#1 0x0820d0d7 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0xbfe14f80) at
/usr/src/php_5_1/Zend/zend_vm_execute.h:310
#2 0x0820c30c in execute (op_array=0x9bd5d2c) at
/usr/src/php_5_1/Zend/zend_vm_execute.h:88
#3 0x0820c792 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfe150d0) at
/usr/src/php_5_1/Zend/zend_vm_execute.h:222
#4 0x0820d0d7 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0xbfe150d0) at
/usr/src/php_5_1/Zend/zend_vm_execute.h:310
#5 0x0820c30c in execute (op_array=0x9bcff0c) at
/usr/src/php_5_1/Zend/zend_vm_execute.h:88
#6 0x081e3eca in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /usr/src/php_5_1/Zend/zend.c:1090
#7 0x081a234e in php_execute_script (primary_file=0xbfe17500) at
/usr/src/php_5_1/main/main.c:1704
#8 0x08252300 in main (argc=2, argv=0xbfe175d4) at
/usr/src/php_5_1/sapi/cli/php_cli.c:1039

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

[2005-11-28 17:43:49] me at dither dot spb dot ru

PHP 5.1.2-dev (cli) (built: Nov 27 2005 20:24:18) (Win32).
No changes. Problem persists. Sorry, I dont have enought time to test
latest unix snapshot. If needed, I can do some testing across different
unix versions tomorrow.

Omg, sorry for my bad english..

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

[2005-11-28 09:13:58] sniper@php.net

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

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

[2005-11-28 04:19:49] me at dither dot spb dot ru

Description:
------------
PHP 5.1 Final Release.
(built: Nov 23 2005 23:59:35)

Easy repoducible segfault or Invalid opcode 137/1/4 Fatal Error.

Reproduce code:
---------------
<?php
function err2exception($errno, $errstr)
{
throw new Exception("Error occuried: " . $errstr);
}

set_error_handler('err2exception');

class TestClass
{
function testMethod()
{
//$GLOBALS['t'] = 'test';
$GLOBALS['t'] = new stdClass;
}
}

TestClass::testMethod();
?>

Expected result:
----------------
PHP Should cause Strict level Notice "Non-static method
TestClass::testMethod() should not be called statically", and after
what error_handler err2exception() must be executed.

Finally, it must be an Uncaught exception 'Exception' with message
'Error occuried: Non-static method TestClass::testMethod() should not
be called statically'.

Actual result:
--------------
Segfault.

Uncommenting line //$GLOBALS['t'] = 'test' causes Invalid opcode
137/1/4 Fatal Error.

Commenting both $GLOBALS lines completly fixes bug.

Marking method testMethod() as static (... static function testMethod()
....) fixes bug too, but no exception will be thrown.


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


--
Edit this bug report at http://bugs.php.net/?id=35437&edit=1
  Reply With Quote
5 11th June 17:03
php-bugs@lists.php.net (me at dither dot spb dot
External User
 
Posts: 1
Default #35437 : Segfault or Invalid Opcode 137/1/4


ID: 35437
User updated by: me at dither dot spb dot ru
Reported By: me at dither dot spb dot ru
Status: Assigned
Bug Type: Scripting Engine problem
Operating System: *
PHP Version: 5CVS-2005-11-28 (cvs)
Assigned To: dmitry
New Comment:

That means bug has been confirmed?


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

[2005-11-28 17:53:25] sniper@php.net

Here's GDB backtrace:

0x0820c3bf in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfe14f80) at
/usr/src/php_5_1/Zend/zend_vm_execute.h:131
131 if (EX(function_state).function->common.fn_flags &
ZEND_ACC_ABSTRACT) {
(gdb) bt
#0 0x0820c3bf in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfe14f80) at
/usr/src/php_5_1/Zend/zend_vm_execute.h:131
#1 0x0820d0d7 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0xbfe14f80) at
/usr/src/php_5_1/Zend/zend_vm_execute.h:310
#2 0x0820c30c in execute (op_array=0x9bd5d2c) at
/usr/src/php_5_1/Zend/zend_vm_execute.h:88
#3 0x0820c792 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfe150d0) at
/usr/src/php_5_1/Zend/zend_vm_execute.h:222
#4 0x0820d0d7 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0xbfe150d0) at
/usr/src/php_5_1/Zend/zend_vm_execute.h:310
#5 0x0820c30c in execute (op_array=0x9bcff0c) at
/usr/src/php_5_1/Zend/zend_vm_execute.h:88
#6 0x081e3eca in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /usr/src/php_5_1/Zend/zend.c:1090
#7 0x081a234e in php_execute_script (primary_file=0xbfe17500) at
/usr/src/php_5_1/main/main.c:1704
#8 0x08252300 in main (argc=2, argv=0xbfe175d4) at
/usr/src/php_5_1/sapi/cli/php_cli.c:1039


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

[2005-11-28 17:43:49] me at dither dot spb dot ru

PHP 5.1.2-dev (cli) (built: Nov 27 2005 20:24:18) (Win32).
No changes. Problem persists. Sorry, I dont have enought time to test
latest unix snapshot. If needed, I can do some testing across different
unix versions tomorrow.

Omg, sorry for my bad english..

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

[2005-11-28 09:13:58] sniper@php.net

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

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

[2005-11-28 04:19:49] me at dither dot spb dot ru

Description:
------------
PHP 5.1 Final Release.
(built: Nov 23 2005 23:59:35)

Easy repoducible segfault or Invalid opcode 137/1/4 Fatal Error.

Reproduce code:
---------------
<?php
function err2exception($errno, $errstr)
{
throw new Exception("Error occuried: " . $errstr);
}

set_error_handler('err2exception');

class TestClass
{
function testMethod()
{
//$GLOBALS['t'] = 'test';
$GLOBALS['t'] = new stdClass;
}
}

TestClass::testMethod();
?>

Expected result:
----------------
PHP Should cause Strict level Notice "Non-static method
TestClass::testMethod() should not be called statically", and after
what error_handler err2exception() must be executed.

Finally, it must be an Uncaught exception 'Exception' with message
'Error occuried: Non-static method TestClass::testMethod() should not
be called statically'.

Actual result:
--------------
Segfault.

Uncommenting line //$GLOBALS['t'] = 'test' causes Invalid opcode
137/1/4 Fatal Error.

Commenting both $GLOBALS lines completly fixes bug.

Marking method testMethod() as static (... static function testMethod()
....) fixes bug too, but no exception will be thrown.


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


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


  sponsored links


Reply


Thread Tools
Display Modes




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