Sam Deane
Sam Deane
If I get some time, I will experiment and let you know what I come up with.
Actually, I don't think the thread matters per-se, I was just trying to check that the box manager wasn't being hit from multiple threads. Probably it should record the thread...
I've been looking at this yet again, in relation to another problem we had. Our crude workaround for the crash (not this branch, but in the branch that Sketch is...
That pointer identity fix was something that Logan has actually incorporated into Mocha now, but when I rewrote the boxing stuff in this branch I missed it. I'm still not...
It’s a long-shot, and I’m working on the assumption that it’s probably asan getting confused, but if it rings any bells @ccgus (or @logancollins), let me know!
The line it’s actually hitting is: https://github.com/BohemianCoding/CocoaScript/blob/develop/src/framework/mocha/Utilities/MOFunctionArgument.m#L870
I've got a small test script which can reproduce this in the coscript tool: ``` javascript framework("Foundation"); var string = NSMutableString.alloc().initWithString_("❦❦❦❦❦❦") var range = NSMakeRange(0, 13) var updatedRange = MOPointer.new()...
If I instead change `updatedRange` to have a value passed in: ``` javascript var updatedRange = MOPointer.alloc().initWithValue_(range) ``` then ASAN instead falls over when the value is being set, before...
Part of the problem I think seems to be the `dereference` arguments in `setValueAsJSValue` and `getValueAsJSValueInContext`. When these are true, the type encoding is treated as if the argument is...
Any hints gratefully received @logancollins 😁