GNOME Bugzilla – Bug 651141
hashtable infinite loop
Last modified: 2016-06-25 11:50:25 UTC
Created attachment 188659 [details] test case Apparently, this only happens on master. if there is some destroy func and notify=TRUE, g_hash_table_remove_all_nodes() clears ht->noccupied to 0, but leaves tombstones untouched, which leads to bad accounting of nodes, and g_hash_table_lookup_node() being infinitely confused, possibly falling into endless loops due to not finding any empty/tombstone node. I'm attaching a testcase and a patch.
Created attachment 188661 [details] [review] patch
I tested this on the device as root and user and it seems fine: RM696-21-2:~# aegis-su -o blah ./foo Finished.RM696-21-2:~# ~ $ aegis-su -o blah ./foo Finished.~ $ So we're not affected on the device so far.
Err, my mistake, I thought this was Nokia bugzilla -ETOOMANYBUGZILLAS :) To clarify, the version I tested with was 2.28.4-1maemo4+0m6