fileability/chocolat-public — Issue #641: Crasher: NSMutableArray mutated while enumerating
Author: gormster
Created: 2011-11-24 00:39:09+00:00
State: open

Having trouble isolating this bug... it only seems to happen with this one specific file in this one specific circumstance. Still, according to Console.app, the source is an NSMutableArray being mutated whilst enumerating, which is a serious problem.

Here's a pastebin of the code - it's a modification of Moodle's workshop module.
http://pastebin.com/WKQV1cMH

Here's the crash report:
http://pastebin.com/mSU7SVrC

Instructions to reproduce:

1. Go to line 535
2. Complete the line with `$this->user_group($a);`
3. On the next line, attempt to delete the `[0]` after `$grslt`
4. CRASH.