Re: weird assertion failure in js::NewContext (JS60)
Paul Bone <[email protected]> Thu, 28 Mar 2019 11:14:21 +1100
| Newsgroups | gmane.comp.mozilla.devel.jseng |
|---|---|
| Message-ID | <20190328001419.GA8146@fluorine> |
On Wed, Mar 27, 2019 at 04:40:36PM -0500, Kent Williams wrote: > This is an app that embeds JS60 SpiderMonkey (checked out from github and > based on the the JS60 release tag) > > The same code seems to work fine in a bunch of my own tests. I passed it > off to another programmer, and he somehow gets it to segfault. > > My mystery is that the stuff he's doing follows EXACTLY the same path into > the SpiderMonkey code as everything else I've done. > > The crash comes on this line: > > MOZ_RELEASE_ASSERT(!TlsContext.get()); > > at the top of js::NewContext() > > I don't know what TlsContext.get() is supposed to return, except in this > case it's returning NULL/nullptr. There's so little information here it's not going too be practical to guess. Can you provide a stack trace? Unless you can reproduce it yourself it's going to be very difficult to work on. The other programmer should try doing a debug non-optimized build and running it in a debugger to try to find the problem. Because it's your embedding they may need to work with you in case it's a bug in your code. Good luck. -- Paul Bone http://paul.bone.id.au