Comment 0 for bug 1682631

Revision history for this message
Brian Vincent (bvinc) wrote :

A friend and I are seeing frequent gnome-shell crashes on Ubuntu 17.04 on 3 different computers. Here's an example:

Apr 12 22:35:00 ******** kernel: gnome-shell[2592]: segfault at 10 ip 00007f0e3ccc26d7 sp 00007ffdd31b4d90 error 4 in libmozjs-38.so.0.0.0[7f0e3c93e000+6c7000]

I've analyzed the issue for a while and I actually believe I've found the solution.

If I simply download the apt source package and build it using gcc 6.3.0, and then go to js/src and execute:

$ make check-jstests | grep -c UNEXPECTED-FAIL
49

Upon examination, those test failures are all because of segfaults.

If I rebuild and retests with gcc 5, all tests pass.

I've discovered that adding the flag -fno-strict-aliasing causes all of the tests to pass with gcc 6.