[chuck-users] Emptying two arrays with the same object causes "failed assertion `m_ref_count > 0'"

Kassen signal.automatique at gmail.com
Sun May 23 06:31:09 EDT 2010


2010/5/22 Stefan Blixt <stefan.blixt at gmail.com>

> Here's some code:
>
>
Hey, Stefan!

>
> It seems that that 0 => arga.size decrements a reference count for thing,
> causing it to be freed, and then when the same thing is attempted for argb,
> it crashes. Possibly some reference increment missing when doing argb <<
> thing ?
>
>
I agree, especially because we already knew that the ref-count has a bug or
two. I think this is a new side to that.

Nice catch.
Kas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20100523/d45334b5/attachment.htm>


More information about the chuck-users mailing list