#37552 [NEW]: Crash when deleting list row in foreach() callback

From: Date: Mon, 22 May 2006 20:08:18 +0000
Subject: #37552 [NEW]: Crash when deleting list row in foreach() callback
Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2887@lists.php.net to get a copy of this message
From: cweiske@php.net Operating system: Any PHP version: 5.1.4 PHP Bug Type: PHP-GTK related Bug description: Crash when deleting list row in foreach() callback 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 bug report at http://bugs.php.net/?id=37552&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37552&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37552&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37552&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37552&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37552&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37552&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37552&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37552&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37552&r=support Expected behavior: http://bugs.php.net/fix.php?id=37552&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37552&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37552&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37552&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37552&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37552&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37552&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37552&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37552&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37552&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37552&r=mysqlcfg

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