#37552 [Ana->WFx]: Crash when deleting list row in foreach() callback
| From: | cweiske@php.net | Date: | Thu, 15 Jun 2006 04:34:23 +0000 |
| Subject: | #37552 [Ana->WFx]: Crash when deleting list row in foreach() callback | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-3033@lists.php.net to get a copy of this message | ||
ID: 37552
Updated by: cweiske@php.net
Reported By: cweiske@php.net
-Status: Analyzed
+Status: Wont fix
Bug Type: PHP-GTK related
Operating System: Any
PHP Version: 5.1.4
New Comment:
The docs for some callbacks explicitely state that you may not
modify/delete the rows; seems this was missing here.
Previous Comments:
------------------------------------------------------------------------
[2006-06-15 04:27:54] andrei@php.net
I'm not sure we can do much here. PyGTK crashes on similar code as
well. We may need to post a question on gtk mailing list and see if
they have any suggestions.
------------------------------------------------------------------------
[2006-05-22 20:08:18] cweiske@php.net
Description:
------------
When removing an iterator from a liststore in the foreach() callback,
php crashes with
*** glibc detected *** double free or corruption (fasttop): 0x08d92758
***
Reproduce code:
---------------
<?php
$ls = new GtkListStore(Gtk::TYPE_STRING);
$ls->append(array('test'));
$ls->foreach('foreachList');
function foreachList($ls, $path, $iter) {
$ls->remove($iter);
}
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37552&edit=1