** Description changed:

  [Impact]
  libmozjs24 does not support 48-bit virtual addresses on arm64. 48-bit virtual 
addresses are enabled in the Ubuntu 16.04 kernel (though not on the kernel used 
on the buildds). This causes applications to crash.
  
  [Test Case]
- apt source mozjs24
- sudo apt build-dep -y mozjs24
- sudo apt install -y fakeroot
- cd mozjs24-24.2.0
- fakeroot make -f debian/rules build
- cd js/src
- make
- ./jsapi-tests/jsapi-tests 
- 
- Unpatched source crashes for me immediately on xenial:
- dannf@mustang:~/mozjs24-24.2.0/js/src$ ./jsapi-tests/jsapi-tests 
- testXDR_sourceMap
+ = mozjs =
+ $ sudo apt install couchdb-bin
+ $ couchjs a.js 
  Segmentation fault
  
- All tests pass w/ patched source
+ = mozjs24 =
+ $ cat a.js
+ print("hello")
+ $ js24 a.js
+ Segmentation fault
  
- [Regression Risk] 
- I'd suggest running through the jsapi-tests on each supported Ubuntu 
architecture. I've only ran it on arm64 so far.
+ [Regression Risk]
+ The fix for mozjs24 is ifdef'd to only apply to arm64. Since arm64 is 
currently segfaulting with a very simple program, there's very little chance of 
making things worse.

** Changed in: mozjs24 (Ubuntu Xenial)
       Status: Triaged => In Progress

** Changed in: mozjs24 (Ubuntu Xenial)
     Assignee: (unassigned) => dann frazier (dannf)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1571017

Title:
  [arm64] libmozjs24 crashes w/ 48-bit VA

To manage notifications about this bug go to:
https://bugs.launchpad.net/mozjs/+bug/1571017/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to