Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 441934 - =dev-lang/spidermonkey-1.8.5*: JS engine completely broken on ia64
Summary: =dev-lang/spidermonkey-1.8.5*: JS engine completely broken on ia64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: IA64 Linux
: Normal major (vote)
Assignee: Mozilla Gentoo Team
URL: https://bugzilla.mozilla.org/show_bug...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-11-05 20:45 UTC by Émeric Maschino
Modified: 2013-12-29 01:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
jemalloc patch for ia64 (jemalloc.patch,2.05 KB, patch)
2012-11-05 20:55 UTC, Émeric Maschino
Details | Diff
static string changes (static-string-changes.patch,11.49 KB, patch)
2012-11-05 20:56 UTC, Émeric Maschino
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Émeric Maschino 2012-11-05 20:45:15 UTC
GNOME Shell received SIGSEGV from /usr/lib/libmozjs185.so.0 at startup (i.e. /usr/bin/gnome-shell --replace)
Comment 1 Émeric Maschino 2012-11-05 20:55:26 UTC
Created attachment 328486 [details, diff]
jemalloc patch for ia64
Comment 2 Émeric Maschino 2012-11-05 20:56:47 UTC
Created attachment 328488 [details, diff]
static string changes
Comment 3 Émeric Maschino 2012-11-05 21:05:09 UTC
The JS engine assumes that all allocated pointers have their high 17 bits clear which ia64's mmap doesn't support directly. The needed changes also require changes in static strings allocation (in fact, disabling it on ia64).

This bug was fixed in JS engine in Firefox (see https://bugzilla.mozilla.org/show_bug.cgi?id=589735). Changes were thus ported to SpiderMonkey (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=659186#53).

Please review the corresponding patches to fix Gentoo's spidermonkey-1.8.5-r1 (https://bugs.gentoo.org/attachment.cgi?id=328486 and https://bugs.gentoo.org/attachment.cgi?id=328488).

Dear maintainers, this issue has been reported upstream (see https://bugzilla.mozilla.org/show_bug.cgi?id=808512). However, it seems rather unmaintained these days. The proposed patches thus probably need to also be applied to other spidermonkey-1.8.5-r?.ebuilds, as well as other spidermonkey-?.?.?-r?.ebuilds. Thanks.
Comment 4 Raúl Porcel (RETIRED) gentoo-dev 2013-01-05 13:51:37 UTC
The easier way to reproduce is simply executing spidermonkey's 'js' binary, it segfaults.

I've reproduced the same on 1.8.7-r3, let's see what happens with the patches.
Comment 5 Jory A. Pratt gentoo-dev 2013-01-05 14:20:29 UTC
(In reply to comment #4)
> The easier way to reproduce is simply executing spidermonkey's 'js' binary,
> it segfaults.
> 
> I've reproduced the same on 1.8.7-r3, let's see what happens with the
> patches.

If your testing of the patches is fine please land them.
Comment 6 Raúl Porcel (RETIRED) gentoo-dev 2013-01-06 16:55:17 UTC
Fixed in 1.8.5, since one of the patches doesn't apply on 1.8.7, i'm closing this bug and opening a new one for 1.8.7, bug 450582.

Thanks Émeric for all the information and let's continue investigating on 1.8.7. Meanwhile we have a working 1.8.5.