GNOME Bugzilla – Bug 790097
GNOME 3.26 mozjs crashes on ARM
Last modified: 2017-11-09 02:49:47 UTC
On armhf, the `js52` and `gjs` interpreters both crash immediately upon startup. This can be prevented with a compiler flag, but it's not clear whether this is a mozjs bug or a compiler bug.
Created attachment 363263 [details] [review] mozjs52: Adjust build flags on ARM Without this, js52 and gjs crash immediately upon startup on ARM. The fix is suggested by https://bugzilla.mozilla.org/show_bug.cgi?id=1337263
(This patch is for gnome-sdk-images. I'm not sure where else to file it.)
Review of attachment 363263 [details] [review]: OK if you add a comment with a link to this issue, otherwise nobody's going to know why it's there.
Comments aren't valid JSON, although I guess there are already other comments in that file...
I think all the software that processes these files understands comments.
Python's json module doesn't (https://github.com/endlessm/flapjack/blob/e19c1be38ff4715a7f45834bb279cc65bee74a38/flapjack/util.py#L14), but I added a comment and pushed to master and gnome-3-26.
Most json parsers don't... I think json-glib is unusual in allowing comments. Personally, I'm starting to think using json was a mistake, for this reason alone.