[jsc-dev] JavaScriptCore crash with locking

Saam barati sbarati at apple.com
Wed Dec 28 16:33:47 PST 2016


> On Dec 28, 2016, at 10:13 AM, artcodex . <avi.brenner at gmail.com> wrote:
> 
> Hi,
> 
> I'm not sure if this is the right forum to ask this question, but I'm currently running into following issue
> with using the JavaScriptCore API:

This is an OK place for this conversation. IRC also works on #webkit. I’m saamyjoon on there.

> 
> I'm building an application that uses JavaScriptCore on Android. So I'm building my own API which has generally worked well, but now that it's running on complex back and forward code that has callbacks between JS code and C++ I'm running into an issue where I'm hitting a EXC_BAD_ACCESS in JSLockHolder::JSLockHolder(JSC::ExecState*).
> 
> It seems fairly inconsistent in that when I put breakpoints randomly in my code while debugging sometimes I hit this, sometimes I don't. When running the app straight though I always seem to hit the issue at the same point.
> 
> For me right now this is hitting during a call to JSValueProtect, but if I were to remove that call it would just hit at the next call that uses JSLockHolder.
> 
> I have a test demo that hits this on a Mac build that uses the JavaScriptCore.framework as well (so it doesn't appear to be any issues with my Android jsc library build).
> 
> Thanks in advance. Let me know if any more info could be provided for clarity.
> 
> 
For anybody to be able to help you here, we need much more information on how you’re using JSC and what the code that’s hitting this problem is doing.

- Saam

> Avi Brenner
> 
> 
> 
> _______________________________________________
> jsc-dev mailing list
> jsc-dev at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/jsc-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/jsc-dev/attachments/20161228/bbfed5ab/attachment.html>


More information about the jsc-dev mailing list