#37552 [Opn->Ana]: Crash when deleting list row in foreach() callback

From: Date: Thu, 15 Jun 2006 04:27:54 +0000
Subject: #37552 [Opn->Ana]: Crash when deleting list row in foreach() callback
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-3031@lists.php.net to get a copy of this message
ID: 37552 Updated by: andrei@php.net Reported By: cweiske@php.net -Status: Open +Status: Analyzed Bug Type: PHP-GTK related Operating System: Any PHP Version: 5.1.4 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.gtk.dev (#3031) next »