#32231 [Fbk->Opn]: zend_objects_clone_obj ( Exception ) => segfault

2005-04-12 Thread bugs at niluje dot net
 ID:   32231
 User updated by:  bugs at niluje dot net
 Reported By:  bugs at niluje dot net
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Debian linux x86
 PHP Version:  5.0.3
 New Comment:

i do not have the time or the expertise to compile php with debug
options.

the segfault happends in PEAR.php (PEAR 1.3.5) line 863

eval('$e = new Exception($this->message, $this->code);$e->PEAR_Error =
$this;throw($e);');

it appears that $e->PEAR_Error = $this causes the segfault.


Previous Comments:


[2005-03-24 18:41:15] [EMAIL PROTECTED]

Please read the above 2 comments I added. Read them very carefully..





[2005-03-24 18:40:25] [EMAIL PROTECTED]

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

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.





[2005-03-24 18:40:14] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.



----

[2005-03-24 17:45:23] bugs at niluje dot net

here is a test case to trigger the segfault :

you need PEAR, DB, DB_Dataobject:


test.php
--
$values) {
$options = &PEAR::getStaticProperty($class,
'options');
$options = $values;
}

$options =
&PEAR::getStaticProperty('DB_DataObject','options');
$options['class_prefix'] = '';
$options['persistent'] = true;

class Test extends DB_Dataobject
{
public $__table = 'test';
}


$dao = new Test();

try {
$dao->field1 = 'test';
$dao->insert();
}
catch (Exception $e)
{
var_dump($e);
}

?>
---


dao.ini
-
[DB_DataObject]
debug = 1
database_test   = mysqli://[EMAIL PROTECTED]/test
table_test  = test
-


gdb backtrace:
---
#0  0xb57f0c0e in zend_objects_clone_obj () from
/usr/lib/apache/1.3/libphp5.so
#0  0xb57f0c0e in zend_objects_clone_obj () from
/usr/lib/apache/1.3/libphp5.so
#1  0xb577f00d in php_var_dump () from /usr/lib/apache/1.3/libphp5.so
#2  0xb577ee3f in url_adapt () from /usr/lib/apache/1.3/libphp5.so
#3  0xb57e5986 in zend_hash_apply_with_arguments () from
/usr/lib/apache/1.3/libphp5.so
#4  0xb577f0b7 in php_var_dump () from /usr/lib/apache/1.3/libphp5.so
#5  0xb577f1d6 in zif_var_dump () from /usr/lib/apache/1.3/libphp5.so
#6  0xb581b851 in zend_do_fcall_common_helper () from
/usr/lib/apache/1.3/libphp5.so
#7  0xb581bfd0 in zend_do_fcall_handler () from
/usr/lib/apache/1.3/libphp5.so
#8  0xb580024f in execute () from /usr/lib/apache/1.3/libphp5.so
#9  0xb57df043 in zend_execute_scripts () from
/usr/lib/apache/1.3/libphp5.so
#10 0xb57a8c55 in php_execute_script () from
/usr/lib/apache/1.3/libphp5.so
#11 0xb5824755 in apache_php_module_main () from
/usr/lib/apache/1.3/libphp5.so
#12 0xb582537e in apache_php_module_main () from
/usr/lib/apache/1.3/libphp5.so
#13 0xb58253e5 in apache_php_module_main () from
/usr/lib/apache/1.3/libphp5.so
#14 0x080553c3 in ap_invoke_handler ()
#15 0x08068465 in ap_some_auth_required ()
#16 0x08068614 in ap_process_request ()
#17 0x08060bd2 in ap_child_terminate ()
#18 0x08060de7 in ap_child_terminate ()
#19 0x08060f10 in ap_child_terminate ()
#20 0x08061a9a in ap_child_terminate ()
#21 0x08061ff8 in main ()




[2005-03-09 00:40:45] [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

Your example script gives me this output:

Parse error: syntax error, unexpected T_CATCH in Command line code on
line 1




The remainder of the comments for this report are too long. To view
the rest of 

#32231 [Bgs]: zend_objects_clone_obj ( Exception ) => segfault

2005-04-12 Thread bugs at niluje dot net
 ID:   32231
 User updated by:  bugs at niluje dot net
 Reported By:  bugs at niluje dot net
 Status:   Bogus
 Bug Type: Reproducible crash
 Operating System: Debian linux x86
 PHP Version:  5.0.3
 New Comment:

you have the expertise to do so, i don't. don't get me wrong i have
spent a considerable amount of time trying to find the bug, i can't do
much more.

i have enough trouble explaining my boss why php crashes as it is
supposed to be production ready.


Previous Comments:


[2005-03-29 11:41:03] [EMAIL PROTECTED]

And we don't have time to come up with simple reproducing scripts
either.




[2005-03-29 11:33:51] bugs at niluje dot net

i do not have the time or the expertise to compile php with debug
options.

the segfault happends in PEAR.php (PEAR 1.3.5) line 863

eval('$e = new Exception($this->message, $this->code);$e->PEAR_Error =
$this;throw($e);');

it appears that $e->PEAR_Error = $this causes the segfault.



[2005-03-24 18:41:15] [EMAIL PROTECTED]

Please read the above 2 comments I added. Read them very carefully..





[2005-03-24 18:40:25] [EMAIL PROTECTED]

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

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.





[2005-03-24 18:40:14] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.





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/32231

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


#32231 [NoF->Opn]: zend_objects_clone_obj ( Exception ) => segfault

2005-03-24 Thread bugs at niluje dot net
 ID:   32231
 User updated by:  bugs at niluje dot net
 Reported By:  bugs at niluje dot net
-Status:   No Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Debian linux x86
 PHP Version:  5.0.3
 New Comment:

here is a test case to trigger the segfault :

you need PEAR, DB, DB_Dataobject:


test.php
--
$values) {
$options = &PEAR::getStaticProperty($class,
'options');
$options = $values;
}

$options =
&PEAR::getStaticProperty('DB_DataObject','options');
$options['class_prefix'] = '';
$options['persistent'] = true;

class Test extends DB_Dataobject
{
public $__table = 'test';
}


$dao = new Test();

try {
$dao->field1 = 'test';
$dao->insert();
}
catch (Exception $e)
{
var_dump($e);
}

?>
---


dao.ini
-
[DB_DataObject]
debug = 1
database_test   = mysqli://[EMAIL PROTECTED]/test
table_test  = test
-


gdb backtrace:
---
#0  0xb57f0c0e in zend_objects_clone_obj () from
/usr/lib/apache/1.3/libphp5.so
#0  0xb57f0c0e in zend_objects_clone_obj () from
/usr/lib/apache/1.3/libphp5.so
#1  0xb577f00d in php_var_dump () from /usr/lib/apache/1.3/libphp5.so
#2  0xb577ee3f in url_adapt () from /usr/lib/apache/1.3/libphp5.so
#3  0xb57e5986 in zend_hash_apply_with_arguments () from
/usr/lib/apache/1.3/libphp5.so
#4  0xb577f0b7 in php_var_dump () from /usr/lib/apache/1.3/libphp5.so
#5  0xb577f1d6 in zif_var_dump () from /usr/lib/apache/1.3/libphp5.so
#6  0xb581b851 in zend_do_fcall_common_helper () from
/usr/lib/apache/1.3/libphp5.so
#7  0xb581bfd0 in zend_do_fcall_handler () from
/usr/lib/apache/1.3/libphp5.so
#8  0xb580024f in execute () from /usr/lib/apache/1.3/libphp5.so
#9  0xb57df043 in zend_execute_scripts () from
/usr/lib/apache/1.3/libphp5.so
#10 0xb57a8c55 in php_execute_script () from
/usr/lib/apache/1.3/libphp5.so
#11 0xb5824755 in apache_php_module_main () from
/usr/lib/apache/1.3/libphp5.so
#12 0xb582537e in apache_php_module_main () from
/usr/lib/apache/1.3/libphp5.so
#13 0xb58253e5 in apache_php_module_main () from
/usr/lib/apache/1.3/libphp5.so
#14 0x080553c3 in ap_invoke_handler ()
#15 0x08068465 in ap_some_auth_required ()
#16 0x08068614 in ap_process_request ()
#17 0x08060bd2 in ap_child_terminate ()
#18 0x08060de7 in ap_child_terminate ()
#19 0x08060f10 in ap_child_terminate ()
#20 0x08061a9a in ap_child_terminate ()
#21 0x08061ff8 in main ()



Previous Comments:


[2005-03-16 01:00:09] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2005-03-09 00:40:45] [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

Your example script gives me this output:

Parse error: syntax error, unexpected T_CATCH in Command line code on
line 1


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

[2005-03-08 12:00:37] bugs at niluje dot net

Description:

var_dump() on an exception crashes php5.


#0  0xb57f0c0e in zend_objects_clone_obj () from
/usr/lib/apache/1.3/libphp5.so
(gdb) bt
#0  0xb57f0c0e in zend_objects_clone_obj () from
/usr/lib/apache/1.3/libphp5.so
#1  0xb577f00d in php_var_dump () from /usr/lib/apache/1.3/libphp5.so
#2  0xb577ee3f in url_adapt () from /usr/lib/apache/1.3/libphp5.so
#3  0xb57e5986 in zend_hash_apply_with_arguments () from
/usr/lib/apache/1.3/libphp5.so
#4  0xb577f0b7 in php_var_dump () from /usr/lib/apache/1.3/libphp5.so
#5  0xb577f1d6 in zif_var_dump () from /usr/lib/apache/1.3/libphp5.so
#6  0xb581b851 in zend_do_fcall_common_helper () from
/usr/lib/apache/1.3/libphp5.so
#7  0xb581bfd0 in zend_do_fcall_handler () from
/usr/lib/apache/1.3/libphp5.so
#8  0xb580024f in execute () from /usr/lib/apache/1.3/libphp5.so
#9  0xb57df043 in zend_execute_scripts () from
/usr/lib/apache/1.3/libphp5.so
#10 0xb57a8c55 in php_execute_script () from
/usr/lib/apache/1.3/libphp5.so
#11 0xb5824755 in apache_php_module_main () from
/usr/lib/apache/1.3/libphp5.so
#12 0xb582537e in apache_php_module_main () from
/usr/lib/apache/1.3/libphp5.so
#13 0xb58253e5 in apache_php_module_main () from
/usr/lib/apache/1.3/libphp5.so
#14 0x080553c3 in ap_invoke_handler ()
#15 0x08068465 in ap_some_auth_required ()
#16 0x08068614 i

#32231 [NEW]: zend_objects_clone_obj ( Exception ) => segfault

2005-03-08 Thread bugs at niluje dot net
From: bugs at niluje dot net
Operating system: Debian linux x86
PHP version:  5.0.3
PHP Bug Type: Reproducible crash
Bug description:  zend_objects_clone_obj ( Exception ) => segfault

Description:

var_dump() on an exception crashes php5.


#0  0xb57f0c0e in zend_objects_clone_obj () from
/usr/lib/apache/1.3/libphp5.so
(gdb) bt
#0  0xb57f0c0e in zend_objects_clone_obj () from
/usr/lib/apache/1.3/libphp5.so
#1  0xb577f00d in php_var_dump () from /usr/lib/apache/1.3/libphp5.so
#2  0xb577ee3f in url_adapt () from /usr/lib/apache/1.3/libphp5.so
#3  0xb57e5986 in zend_hash_apply_with_arguments () from
/usr/lib/apache/1.3/libphp5.so
#4  0xb577f0b7 in php_var_dump () from /usr/lib/apache/1.3/libphp5.so
#5  0xb577f1d6 in zif_var_dump () from /usr/lib/apache/1.3/libphp5.so
#6  0xb581b851 in zend_do_fcall_common_helper () from
/usr/lib/apache/1.3/libphp5.so
#7  0xb581bfd0 in zend_do_fcall_handler () from
/usr/lib/apache/1.3/libphp5.so
#8  0xb580024f in execute () from /usr/lib/apache/1.3/libphp5.so
#9  0xb57df043 in zend_execute_scripts () from
/usr/lib/apache/1.3/libphp5.so
#10 0xb57a8c55 in php_execute_script () from
/usr/lib/apache/1.3/libphp5.so
#11 0xb5824755 in apache_php_module_main () from
/usr/lib/apache/1.3/libphp5.so
#12 0xb582537e in apache_php_module_main () from
/usr/lib/apache/1.3/libphp5.so
#13 0xb58253e5 in apache_php_module_main () from
/usr/lib/apache/1.3/libphp5.so
#14 0x080553c3 in ap_invoke_handler ()
#15 0x08068465 in ap_some_auth_required ()
#16 0x08068614 in ap_process_request ()
#17 0x08060bd2 in ap_child_terminate ()
#18 0x08060de7 in ap_child_terminate ()
#19 0x080610c7 in ap_child_terminate ()
#20 0x08061a48 in ap_child_terminate ()
#21 0x08061ff8 in main ()




Reproduce code:
---
catch (Exception $e) {
 var_dump ($e);
}


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