Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 462856 - =dev-libs/gjs-1.34.0 segfaulting against ~dev-libs/spidermonkey-1.8.5
Summary: =dev-libs/gjs-1.34.0 segfaulting against ~dev-libs/spidermonkey-1.8.5
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-23 18:55 UTC by Chris Smith
Modified: 2013-08-26 16:51 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Smith 2013-03-23 18:55:57 UTC
gnome-shell is no longer starting apparently due to a crash in spidermonkey

remerging spidermonkey did not solve the issue

also tried unmasking dev-lang/spidermonkey-1.8.7 but then gjs and therefore gnome-shell would not build





Reproducible: Always

Actual Results:  
Mar 23 14:35:41 sartre kernel: [13956.600653] gnome-shell[14823]: segfault at 30 ip 00007f5fab773ff0 sp 00007fffee18c828 error 4 in libmozjs185.so.1.0.0[7f5fab729000+30f000]
Mar 23 14:35:41 sartre gnome-session[14680]: WARNING: Application 'gnome-shell.desktop' killed by signal 11
Mar 23 14:35:41 sartre kernel: [13956.780520] gnome-shell[14861]: segfault at 30 ip 00007f6da1d07ff0 sp 00007fff893968f8 error 4 in libmozjs185.so.1.0.0[7f6da1cbd000+30f000]
Mar 23 14:35:41 sartre gnome-session[14680]: WARNING: Application 'gnome-shell.desktop' killed by signal 11
Mar 23 14:35:41 sartre gnome-session[14680]: WARNING: App 'gnome-shell.desktop' respawning too quickly
Mar 23 14:35:41 sartre goa[14888]: goa-daemon version 3.6.2 starting [main.c:112, main()]
Mar 23 14:35:45 sartre gnome-session[14680]: CRITICAL: gsm_manager_set_phase: assertion `GSM_IS_MANAGER (manager)' failed
Mar 23 14:35:45 sartre gnome-session[14680]: Gtk-CRITICAL: gtk_main_quit: assertion `main_loops != NULL' failed



emerge --info
Portage 2.2.0_alpha169 (default/linux/amd64/13.0/desktop/gnome, gcc-4.7.2, glibc-2.16.0, 3.8.4-gentoo x86_64)
=================================================================
System uname: Linux-3.8.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:    32900292 total,  21712496 free
KiB Swap:    6291452 total,   6291452 free
Timestamp of tree: Sat, 23 Mar 2013 17:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo desktop server
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -floop-interchange -floop-strip-mine -floop-block"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -floop-interchange -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/desktop /usr/local/portage/server"
SYNC="rsync://rsync11.us.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 amr apache2 audiofile bash-completion berkdb bluray branding bzip2 cairo caps cdaudio cdda cddb cdparanoia cdr cdrdao chm cli colord consolekit cracklib crypt cups curl cxx dbus designer-plugin djvu dri dts dv dvb dvd dvdr ebook emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gif gmp gnome gnome-keyring gnome-online-accounts gphoto2 gpm graphite gstreamer gtk gtk3 iconv icu ieee1394 imagemagick imap imlib ipv6 jack java jpeg jpeg2k kpathsea lame lcms libffi libnotify mad marble midi mmap mmx mng modules mozilla mp3 mp4 mpeg mudflap multilib musicbrainz mythtv nautilus ncurses network nls nodrm nptl nsplugin nvidia ofx ogg opencl openexr opengl openmp pam pango pcre pdf png policykit ppds pulseaudio quicktime readline rtmp samba sasl scanner sdl semantic-desktop session slp smp sndfile socialweb spell sse sse2 ssl startup-notification subversion svg theora threads tiff tk transparency truetype udev udisks unicode upower usb v4l vaapi vcd vdpau vim-syntax vorbis vpx wav wavpack wmf wxwidgets x264 xattr xcomposite xine xml xscreensaver xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel hdsp hpet hrtimer rtctimer seqdummy virmidi" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" LINGUAS="en_US en" NGINX_MODULES_HTTP="autoindex fancyindex fastcgi gzip" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jory A. Pratt gentoo-dev 2013-03-23 19:16:50 UTC
Please attach a proper backtrace, for help with this please refer to http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 2 Chris Smith 2013-03-23 19:45:42 UTC
"gdb startx" does not work - it's not binary, how to get around this?
Comment 3 Klaus Kusche 2013-04-03 10:58:29 UTC
Hmmm, I also have a SIGSEGV in gnome-shell.desktop here on gnome / gdm startup,
with gnome-shell-3.8.0.1.

I'm not sure if it is the same, but it's also on two *different* adresses,
as in your case 
(which is strange, it should at least always crash in the same way).

Backtrace (no debug symbols) doesn't turn up anything useful:
Last frame is ???, the frame before is in libgio.

Why do you believe it is related to spidermonkey? (same spidermonkey here)
Comment 4 Klaus Kusche 2013-04-03 13:12:47 UTC
Downgraded to gnome shell 3.6.3.1.

Same problem: Immediate sigsegv at gdm startup.

Compiling with debug will not help:
The stack looks completely messed up
(the addresses don't even look remotely like stack addresses...).

For me, there's no proof yet that this is spidermonkey's fault.
Perhaps the gnome folks should look at it?
Comment 5 Klaus Kusche 2013-04-03 13:18:48 UTC
Just another thing which might be of interest (with 3.8.0.1):
I also tried on a PaX system.
PaX kills it before it sigsegv's.
The interesting thing is:
PaX kills it because of an execution attempt in anonymous memory,
although PaX MPROTECT ist turned off for /usr/bin/gnome-shell. Hmmm...
Comment 6 Klaus Kusche 2013-04-03 13:58:26 UTC
Got a better backtrace.

It is in clutter/cogl called from within spidermonkey.

Disabled gles2, re-emerged both, sigsegv is gone
(however, the gnome shell still does not start up correctly:
"Respawning too quickly...").
Comment 7 Ian Stakenvicius (RETIRED) gentoo-dev 2013-04-03 16:07:52 UTC
(In reply to comment #4)
> Compiling with debug will not help:
> The stack looks completely messed up
> (the addresses don't even look remotely like stack addresses...).

If USE="debug" is set on spidermonkey, this is a guaranteed segfault or immediate exit (unfortunately) for a lot of consumers of spidermonkey, because the upstream software wasn't completely ported to the new API and the "assert" logic enabled by that flag triggers aborts that are not handled.  Last I tried using gnome-shell (which was a year ago), this was one that definitely died with dev-lang/spidermonkey-1.8.5[debug].

That's not to say there aren't other issues, of course, but if you could confirm that you don't have USE="debug" set on spidermonkey, we'd appreciate it.
Comment 8 Klaus Kusche 2013-04-03 19:27:11 UTC
Tried a lot, gave up (no success)
(it was a test system, I kicked it).

I don't have debug on spidermonkey or anything else 
(except glibc to make valgrind happy).

Basically, this was a PaXified system, 
but the problems also happened with a plain kernel.

It turned out that I had two seperate problems,
both leading to the same effect (gnome shell gets sigkilled on gdm startup):

* For gnome 3.6, it was definitely related to cogl/clutter,
called from within spidermonkey: That's what the stack trace said,
and the problem went away using softpipe instead of hardware accel
(but of course, gnome shell terminates itself when softpipe is used).
Graphics is amd r600, both r600 and sw using gallium, both without llvm.

* For gnome 3.8, the sigkill was not related to cogl/clutter or spidermonkey:
The stacktrace was rather short and somewhere within libgio,
and it remained unchanged no matter what gl interface and what renderer I used.
Comment 9 Chris Smith 2013-04-03 23:30:24 UTC
Was hoping this information would help me get back into gnome-shell. But so far no success. The only things I had installed with the gles2 flag was media-libs/mesa, I removed that flag and remerged it, as well as cogl, clutter, spidermonkey and gnome-shell, yet still get the segfault:

Apr  3 16:04:37 sartre kernel: [   43.370011] gnome-shell[2050]: segfault at 30 ip 00007f61cf740200 sp 00007fff8c16a7e8 error 4 in libmozjs185.so.1.0.0[7f61cf6f5000+315000]
Apr  3 16:04:37 sartre kernel: [   43.550236] gnome-shell[2119]: segfault at 30 ip 00007f0c3a17b200 sp 00007fff76b5fcc8 error 4 in libmozjs185.so.1.0.0[7f0c3a130000+315000]
Comment 10 Chris Smith 2013-04-03 23:31:05 UTC
Note that I am not using GDM. I boot into text mode and then do startx.
Comment 11 July Tikhonov 2013-05-05 21:14:35 UTC
Not sure if this is the proper backtrace. I reemerged spidermonkey and got the following backtrace with gdb:

GNU gdb (Gentoo 7.5.1 p2) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/gnome-shell...(no debugging symbols found)...done.
(gdb) start
Starting program: /usr/bin/gnome-shell --replace
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe25a2700 (LWP 8242)]
[New Thread 0x7fffe1da1700 (LWP 8244)]
[New Thread 0x7fffe1398700 (LWP 8245)]
[New Thread 0x7fffe0b97700 (LWP 8246)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4e2b4b0 in JS_GetPrivate () from /usr/lib64/libmozjs185.so.1.0
#0  0x00007ffff4e2b4b0 in JS_GetPrivate () from /usr/lib64/libmozjs185.so.1.0
#1  0x00007ffff722b123 in gjs_boxed_from_c_struct () from /usr/lib64/libgjs.so.0
#2  0x00007ffff7238f74 in gjs_error_from_gerror () from /usr/lib64/libgjs.so.0
#3  0x00007ffff7221693 in gjs_throw_g_error () from /usr/lib64/libgjs.so.0
#4  0x00007ffff722c0a5 in ?? () from /usr/lib64/libgjs.so.0
#5  0x00007ffff722e8b8 in gjs_define_function () from /usr/lib64/libgjs.so.0
#6  0x00007ffff722a2a6 in gjs_define_boxed_class () from /usr/lib64/libgjs.so.0
#7  0x00007ffff7235383 in gjs_define_info () from /usr/lib64/libgjs.so.0
#8  0x00007ffff722f660 in ?? () from /usr/lib64/libgjs.so.0
#9  0x00007ffff4ecd6a5 in ?? () from /usr/lib64/libmozjs185.so.1.0
#10 0x00007ffff4ed8e81 in ?? () from /usr/lib64/libmozjs185.so.1.0
#11 0x00007ffff4ea3a86 in ?? () from /usr/lib64/libmozjs185.so.1.0
#12 0x00007ffff4eb6785 in ?? () from /usr/lib64/libmozjs185.so.1.0
#13 0x00007ffff4eb6c12 in ?? () from /usr/lib64/libmozjs185.so.1.0
#14 0x00007ffff4eb7ac3 in ?? () from /usr/lib64/libmozjs185.so.1.0
#15 0x00007ffff4e2fb71 in JS_CallFunctionValue () from /usr/lib64/libmozjs185.so.1.0
#16 0x00007ffff72349b9 in ?? () from /usr/lib64/libgjs.so.0
#17 0x00007ffff4ecd6a5 in ?? () from /usr/lib64/libmozjs185.so.1.0
#18 0x00007ffff4ed864c in ?? () from /usr/lib64/libmozjs185.so.1.0
#19 0x00007ffff4e2d96d in JS_GetPropertyById () from /usr/lib64/libmozjs185.so.1.0
#20 0x00007ffff4e2da04 in JS_GetProperty () from /usr/lib64/libmozjs185.so.1.0
#21 0x00007ffff7234cff in gjs_define_repo () from /usr/lib64/libgjs.so.0
#22 0x00007ffff72223c6 in gjs_import_native_module () from /usr/lib64/libgjs.so.0
#23 0x00007ffff721d793 in ?? () from /usr/lib64/libgjs.so.0
#24 0x00007ffff721e623 in ?? () from /usr/lib64/libgjs.so.0
#25 0x00007ffff4ecd6a5 in ?? () from /usr/lib64/libmozjs185.so.1.0
#26 0x00007ffff4ed8e81 in ?? () from /usr/lib64/libmozjs185.so.1.0
#27 0x00007ffff4ea3a86 in ?? () from /usr/lib64/libmozjs185.so.1.0
#28 0x00007ffff4eb6785 in ?? () from /usr/lib64/libmozjs185.so.1.0
#29 0x00007ffff4eb82b5 in ?? () from /usr/lib64/libmozjs185.so.1.0
#30 0x00007ffff4e2fe95 in JS_EvaluateUCScriptForPrincipals () from /usr/lib64/libmozjs185.so.1.0
#31 0x00007ffff4e2ff92 in JS_EvaluateScriptForPrincipals () from /usr/lib64/libmozjs185.so.1.0
#32 0x00007ffff4e30032 in JS_EvaluateScript () from /usr/lib64/libmozjs185.so.1.0
#33 0x00007ffff721e8ba in ?? () from /usr/lib64/libgjs.so.0
#34 0x00007ffff4ecd6a5 in ?? () from /usr/lib64/libmozjs185.so.1.0
#35 0x00007ffff4ed8e81 in ?? () from /usr/lib64/libmozjs185.so.1.0
#36 0x00007ffff4ea3a86 in ?? () from /usr/lib64/libmozjs185.so.1.0
#37 0x00007ffff4eb6785 in ?? () from /usr/lib64/libmozjs185.so.1.0
#38 0x00007ffff4eb82b5 in ?? () from /usr/lib64/libmozjs185.so.1.0
#39 0x00007ffff4e2fe95 in JS_EvaluateUCScriptForPrincipals () from /usr/lib64/libmozjs185.so.1.0
#40 0x00007ffff4e30162 in JS_EvaluateUCScript () from /usr/lib64/libmozjs185.so.1.0
#41 0x00007ffff721cde3 in gjs_context_eval () from /usr/lib64/libgjs.so.0
#42 0x00007ffff7b6c4bc in ?? () from /usr/lib64/gnome-shell/libgnome-shell.so
#43 0x00007ffff7481c0b in meta_plugin_manager_new () from /usr/lib64/libmutter.so.0
#44 0x00007ffff747f1b4 in meta_compositor_manage_screen () from /usr/lib64/libmutter.so.0
#45 0x00007ffff74949c4 in meta_display_open () from /usr/lib64/libmutter.so.0
#46 0x00007ffff749f418 in meta_run () from /usr/lib64/libmutter.so.0
#47 0x0000000000401c9c in ?? ()
#48 0x00007ffff534060d in __libc_start_main () from /lib64/libc.so.6
#49 0x0000000000401d99 in ?? ()
#50 0x00007fffffffe108 in ?? ()
#51 0x00000000ffffffff in ?? ()
#52 0x0000000000000002 in ?? ()
#53 0x00007fffffffe3d7 in ?? ()
#54 0x0000000000000000 in ?? ()
(gdb) continue
Continuing.
[Thread 0x7ffff7f9a900 (LWP 8229) exited]
[Thread 0x7fffe1398700 (LWP 8245) exited]
[Thread 0x7fffe0b97700 (LWP 8246) exited]
[Thread 0x7fffe1da1700 (LWP 8244) exited]

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.

# emerge --info spidermonkey
Portage 2.1.11.62 (default/linux/amd64/13.0/desktop/gnome, gcc-4.6.3, glibc-2.15-r3, 3.7.10-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.7.10-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-3317U_CPU_@_1.70GHz-with-gentoo-2.2
KiB Mem:     7782028 total,   6074540 free
KiB Swap:    3687420 total,   3687420 free
Timestamp of tree: Sat, 04 May 2013 16:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.3-r3, 3.2.3-r2, 3.3.1::<unknown repository>
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync2.ru.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam ffmpeg fftw firefox flac fortran gdbm gif gimp gnome gnome-keyring gnome-online-accounts gnuplot gpm gstreamer gtk iconv ipv6 jpeg latex lcms ldap libnotify libsecret lzma mad mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio python qt3support readline sdl session socialweb spell sse sse2 sse3 ssl startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vim-syntax vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-lang/spidermonkey-1.8.5-r4 was built with the following:
USE="-debug -minimal -static-libs -test"
CFLAGS="-march=native -O1 -ggdb -pipe"
CXXFLAGS="-march=native -O1 -ggdb -pipe"

INTERESTING: I found why the backtrace is so poor. From compilation process of spidermonkey I can see that '-pipe' and '-O3' flags are used, along with portage-defined flags. E.g.
"""
x86_64-pc-linux-gnu-g++ -o pm_linux.o -c  -I./dist/system_wrappers_js -include ./config/gcc_hidden.h -DOSTYPE=\"Linux3.7\" -DOSARCH=Linux -DEXPORT_JS_API -D__STDC_LIMIT_MACROS  -I. -I. -I./dist/include -I./dist/include/nsprpub  -I/usr/include/nspr   -I. -I./assembler -I./yarr  -fPIC  -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -pedantic -Wno-long-long -march=native -O1 -ggdb -pipe -fno-strict-aliasing -pthread -pipe  -DNDEBUG -DTRIMMED -O3 -fstrict-aliasing -fomit-frame-pointer -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1 -DENABLE_JIT=1   -DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MF .deps/pm_linux.pp ./perf/pm_linux.cpp
"""
Note the '-march=native -O1 -ggdb -pipe' piece that originates from portage, and following duplicate '-pipe', and following overriding '-O3'! Isn't this an error of package by itself?
Comment 12 July Tikhonov 2013-05-05 21:33:13 UTC
Or maybe I just should use splitdebug? I hope this backtrace will be more useful (I also recompiled dev-libs/gjs):

Starting program: /usr/bin/gnome-shell --replace
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe25a3700 (LWP 27217)]
[New Thread 0x7fffe1da2700 (LWP 27219)]
[New Thread 0x7fffe1399700 (LWP 27220)]
[New Thread 0x7fffe0b98700 (LWP 27221)]
[New Thread 0x7fffcb9fe700 (LWP 27222)]

Program received signal SIGSEGV, Segmentation fault.
JS_GetPrivate (cx=0x15d3740, obj=0x0) at jsapi.cpp:2976
2976	jsapi.cpp: No such file or directory.
#0  JS_GetPrivate (cx=0x15d3740, obj=0x0) at jsapi.cpp:2976
#1  0x00007ffff722bd7b in priv_from_js (object=0x0, context=0x15d3740) at gi/boxed.c:62
#2  gjs_boxed_from_c_struct (context=0x15d3740, info=0x16ec540, gboxed=0x1674870, flags=GJS_BOXED_CREATION_NONE) at gi/boxed.c:1216
#3  0x00007ffff723928e in gjs_error_from_gerror (context=0x15d3740, gerror=0x1674870, add_stack=1) at gi/gerror.c:598
#4  0x00007ffff72222aa in gjs_throw_g_error (context=0x15d3740, error=0x1674870) at gjs/jsapi-util-error.c:183
#5  0x00007ffff722c90c in init_cached_function_data (context=0x15d3740, function=0x16fa2a0, gtype=84, info=0x16ec5e0) at gi/function.c:1430
#6  0x00007ffff722f1aa in function_new (info=0x16ec5e0, gtype=84, context=0x15d3740) at gi/function.c:1619
#7  gjs_define_function (context=0x15d3740, in_object=0x7fffcfa1b900, gtype=84, info=0x16ec5e0) at gi/function.c:1640
#8  0x00007ffff722afaa in gjs_define_static_methods (boxed_info=0x16ec4a0, gtype=84, constructor=0x7fffcfa1b900, context=0x15d3740) at gi/boxed.c:90
#9  gjs_define_boxed_class (context=0x15d3740, in_object=0x7fffcfa11410, info=<optimized out>, constructor_p=0x0, prototype_p=0x0) at gi/boxed.c:1182
#10 0x00007ffff723563c in gjs_define_info (context=0x15d3740, in_object=0x7fffcfa11410, info=0x16ec4a0) at gi/repo.c:495
#11 0x00007ffff722fe3d in ns_new_resolve (context=0x15d3740, obj=0x7fffcfa11410, id=<optimized out>, flags=<optimized out>, objp=0x7fffffffb460) at gi/ns.c:114
#12 0x00007ffff4ece6a5 in CallResolveOp (cx=0x15d3740, start=<optimized out>, obj=0x7fffcfa11410, id=140736676866880, flags=1, objp=0x7fffffffb530, propp=0x7fffffffb540, recursedp=0x7fffffffb56f)
    at jsobj.cpp:4898
#13 0x00007ffff4ed9e81 in js_LookupPropertyWithFlagsInline (propp=0x7fffffffb540, objp=0x7fffffffb530, flags=65535, id=<optimized out>, obj=0x7fffcfa11410, cx=0x15d3740) at jsobj.cpp:4971
#14 js_GetPropertyHelperWithShapeInline (holderOut=<optimized out>, shapeOut=<synthetic pointer>, getHow=1, id=<optimized out>, vp=0x7fffffffb880, receiver=0x7fffcfa11410, obj=0x7fffcfa11410, 
    cx=0x15d3740) at jsobj.cpp:5354
#15 js_GetPropertyHelperInline (vp=0x7fffffffb880, getHow=1, id=<optimized out>, receiver=0x7fffcfa11410, obj=0x7fffcfa11410, cx=0x15d3740) at jsobj.cpp:5457
#16 js_GetPropertyHelper (cx=0x15d3740, obj=0x7fffcfa11410, id=<optimized out>, getHow=1, vp=0x7fffffffb880) at jsobj.cpp:5463
#17 0x00007ffff4ea4a86 in js::Interpret (cx=0x15d3740, entryFrame=0x7fffcfbff160, inlineCallCount=0, interpMode=JSINTERP_NORMAL) at jsinterp.cpp:4214
#18 0x00007ffff4eb7785 in js::RunScript (cx=0x15d3740, script=<optimized out>, fp=0x7fffcfbff160) at jsinterp.cpp:653
#19 0x00007ffff4eb7c12 in js::Invoke (cx=0x15d3740, argsRef=..., flags=<optimized out>) at jsinterp.cpp:740
#20 0x00007ffff4eb8ac3 in js::ExternalInvoke (cx=0x15d3740, thisv=..., fval=..., argc=0, argv=0x0, rval=0x7fffffffbd20) at jsinterp.cpp:863
#21 0x00007ffff4e30b71 in JS_CallFunctionValue (cx=0x15d3740, obj=<optimized out>, fval=18445618172991223296, argc=<optimized out>, argv=<optimized out>, rval=<optimized out>) at jsapi.cpp:5145
#22 0x00007ffff7234db6 in resolve_namespace_object (ns_name=0x15c2800 "GLib", repo_obj=0x7fffcfa11340, context=0x15d3740) at gi/repo.c:125
#23 repo_new_resolve (context=0x15d3740, obj=0x7fffcfa11340, id=<optimized out>, flags=<optimized out>, objp=0x7fffffffbdd0) at gi/repo.c:185
#24 0x00007ffff4ece6a5 in CallResolveOp (cx=0x15d3740, start=<optimized out>, obj=0x7fffcfa11340, id=140736676851264, flags=1, objp=0x7fffffffbe90, propp=0x7fffffffbea0, recursedp=0x7fffffffbecf)
    at jsobj.cpp:4898
#25 0x00007ffff4ed964c in js_LookupPropertyWithFlagsInline (propp=0x7fffffffbea0, objp=0x7fffffffbe90, flags=1, id=<optimized out>, obj=0x7fffcfa11340, cx=0x15d3740) at jsobj.cpp:4971
#26 js_GetPropertyHelperWithShapeInline (holderOut=<optimized out>, shapeOut=<synthetic pointer>, getHow=0, id=<optimized out>, vp=0x7fffffffbf88, receiver=0x7fffcfa11340, obj=0x7fffcfa11340, 
    cx=0x15d3740) at jsobj.cpp:5354
#27 js_GetPropertyHelperInline (vp=0x7fffffffbf88, getHow=0, id=<optimized out>, receiver=0x7fffcfa11340, obj=0x7fffcfa11340, cx=0x15d3740) at jsobj.cpp:5457
#28 js_GetProperty (cx=0x15d3740, obj=0x7fffcfa11340, receiver=0x7fffcfa11340, id=<optimized out>, vp=0x7fffffffbf88) at jsobj.cpp:5470
#29 0x00007ffff4e2e96d in getProperty (receiver=<optimized out>, vp=<optimized out>, id=<optimized out>, cx=0x15d3740, this=<optimized out>) at jsobj.h:1229
#30 getProperty (vp=<optimized out>, id=<optimized out>, cx=0x15d3740, this=<optimized out>) at jsobj.h:1233
#31 JS_GetPropertyById (cx=<optimized out>, obj=<optimized out>, id=<optimized out>, vp=<optimized out>) at jsapi.cpp:3806
#32 0x00007ffff4e2ea04 in JS_GetProperty (cx=0x15d3740, obj=0x7fffcfa11340, name=0x7ffff723ddf2 "GLib", vp=0x7fffffffbf88) at jsapi.cpp:3825
#33 0x00007ffff723519c in repo_new (context=0x15d3740) at gi/repo.c:336
#34 gjs_define_repo (context=0x15d3740, module_obj=0x7fffcfa111a0, name=0x7ffff723a673 "gi") at gi/repo.c:349
#35 0x00007ffff721f920 in gjs_define_gi_stuff (context=<optimized out>, module_obj=<optimized out>) at gjs/gi.c:38
#36 0x00007ffff7222f74 in gjs_import_native_module (context=0x15d3740, module_obj=0x7fffcfa112d8, filename=<optimized out>, flags_p=0x7fffffffc03c) at gjs/native.c:253
#37 0x00007ffff721ead5 in import_native_file (context=0x15d3740, obj=0x7fffcfa111a0, name=0x15c4680 "gi", full_path=0x0) at gjs/importer.c:247
#38 0x00007ffff721f099 in do_import (name=0x15c4680 "gi", priv=<optimized out>, obj=0x7fffcfa111a0, context=0x15d3740) at gjs/importer.c:519
#39 importer_new_resolve (context=0x15d3740, obj=0x7fffcfa111a0, id=<optimized out>, flags=<optimized out>, objp=0x7fffffffc180) at gjs/importer.c:946
#40 0x00007ffff4ece6a5 in CallResolveOp (cx=0x15d3740, start=<optimized out>, obj=0x7fffcfa111a0, id=140737306912160, flags=1, objp=0x7fffffffc250, propp=0x7fffffffc260, recursedp=0x7fffffffc28f)
    at jsobj.cpp:4898
#41 0x00007ffff4ed9e81 in js_LookupPropertyWithFlagsInline (propp=0x7fffffffc260, objp=0x7fffffffc250, flags=65535, id=<optimized out>, obj=0x7fffcfa111a0, cx=0x15d3740) at jsobj.cpp:4971
#42 js_GetPropertyHelperWithShapeInline (holderOut=<optimized out>, shapeOut=<synthetic pointer>, getHow=1, id=<optimized out>, vp=0x7fffffffc5a0, receiver=0x7fffcfa111a0, obj=0x7fffcfa111a0, 
    cx=0x15d3740) at jsobj.cpp:5354
#43 js_GetPropertyHelperInline (vp=0x7fffffffc5a0, getHow=1, id=<optimized out>, receiver=0x7fffcfa111a0, obj=0x7fffcfa111a0, cx=0x15d3740) at jsobj.cpp:5457
#44 js_GetPropertyHelper (cx=0x15d3740, obj=0x7fffcfa111a0, id=<optimized out>, getHow=1, vp=0x7fffffffc5a0) at jsobj.cpp:5463
#45 0x00007ffff4ea4a86 in js::Interpret (cx=0x15d3740, entryFrame=0x7fffcfbff0f0, inlineCallCount=0, interpMode=JSINTERP_NORMAL) at jsinterp.cpp:4214
#46 0x00007ffff4eb7785 in js::RunScript (cx=0x15d3740, script=<optimized out>, fp=0x7fffcfbff0f0) at jsinterp.cpp:653
#47 0x00007ffff4eb92b5 in js::Execute (cx=0x15d3740, chain=0x7fffcfa11270, script=0x15c47b0, prev=<optimized out>, flags=<optimized out>, result=0x7fffffffcac8) at jsinterp.cpp:1028
#48 0x00007ffff4e30e95 in EvaluateUCScriptForPrincipalsCommon (compileVersion=<optimized out>, rval=0x7fffffffcac8, lineno=1, filename=<optimized out>, length=3163, chars=0x15c29b0, 
    principals=<optimized out>, obj=0x7fffcfa11270, cx=0x15d3740) at jsapi.cpp:5031
#49 JS_EvaluateUCScriptForPrincipals (cx=0x15d3740, obj=0x7fffcfa11270, principals=<optimized out>, chars=0x15c29b0, length=3163, filename=<optimized out>, lineno=1, rval=0x7fffffffcac8)
    at jsapi.cpp:5058
#50 0x00007ffff4e30f92 in JS_EvaluateScriptForPrincipals (cx=0x15d3740, obj=0x7fffcfa11270, principals=0x0, bytes=<optimized out>, nbytes=<optimized out>, 
    filename=0x15c12d0 "/usr/share/gnome-shell/js/ui/environment.js", lineno=1, rval=0x7fffffffcac8) at jsapi.cpp:5081
#51 0x00007ffff4e31032 in JS_EvaluateScript (cx=<optimized out>, obj=<optimized out>, bytes=<optimized out>, nbytes=<optimized out>, filename=<optimized out>, lineno=<optimized out>, 
    rval=0x7fffffffcac8) at jsapi.cpp:5101
#52 0x00007ffff721f438 in import_file (full_path=0x15c12d0 "/usr/share/gnome-shell/js/ui/environment.js", name=0x15c0f00 "environment", obj=0x7fffcfa11208, context=0x15d3740) at gjs/importer.c:424
#53 do_import (name=0x15c0f00 "environment", priv=<optimized out>, obj=0x7fffcfa11208, context=0x15d3740) at gjs/importer.c:614
#54 importer_new_resolve (context=0x15d3740, obj=0x7fffcfa11208, id=<optimized out>, flags=<optimized out>, objp=0x7fffffffcb60) at gjs/importer.c:946
#55 0x00007ffff4ece6a5 in CallResolveOp (cx=0x15d3740, start=<optimized out>, obj=0x7fffcfa11208, id=140736676850240, flags=1, objp=0x7fffffffcc30, propp=0x7fffffffcc40, recursedp=0x7fffffffcc6f)
    at jsobj.cpp:4898
#56 0x00007ffff4ed9e81 in js_LookupPropertyWithFlagsInline (propp=0x7fffffffcc40, objp=0x7fffffffcc30, flags=65535, id=<optimized out>, obj=0x7fffcfa11208, cx=0x15d3740) at jsobj.cpp:4971
#57 js_GetPropertyHelperWithShapeInline (holderOut=<optimized out>, shapeOut=<synthetic pointer>, getHow=1, id=<optimized out>, vp=0x7fffffffcf80, receiver=0x7fffcfa11208, obj=0x7fffcfa11208, 
    cx=0x15d3740) at jsobj.cpp:5354
#58 js_GetPropertyHelperInline (vp=0x7fffffffcf80, getHow=1, id=<optimized out>, receiver=0x7fffcfa11208, obj=0x7fffcfa11208, cx=0x15d3740) at jsobj.cpp:5457
#59 js_GetPropertyHelper (cx=0x15d3740, obj=0x7fffcfa11208, id=<optimized out>, getHow=1, vp=0x7fffffffcf80) at jsobj.cpp:5463
#60 0x00007ffff4ea4a86 in js::Interpret (cx=0x15d3740, entryFrame=0x7fffcfbff048, inlineCallCount=0, interpMode=JSINTERP_NORMAL) at jsinterp.cpp:4214
#61 0x00007ffff4eb7785 in js::RunScript (cx=0x15d3740, script=<optimized out>, fp=0x7fffcfbff048) at jsinterp.cpp:653
#62 0x00007ffff4eb92b5 in js::Execute (cx=0x15d3740, chain=0x7fffcfa03048, script=0x15c2850, prev=<optimized out>, flags=<optimized out>, result=0x7fffffffd408) at jsinterp.cpp:1028
#63 0x00007ffff4e30e95 in EvaluateUCScriptForPrincipalsCommon (compileVersion=<optimized out>, rval=0x7fffffffd408, lineno=1, filename=<optimized out>, length=54, chars=0x16eb5e0, 
    principals=<optimized out>, obj=0x7fffcfa03048, cx=0x15d3740) at jsapi.cpp:5031
#64 JS_EvaluateUCScriptForPrincipals (cx=0x15d3740, obj=0x7fffcfa03048, principals=<optimized out>, chars=0x16eb5e0, length=54, filename=<optimized out>, lineno=1, rval=0x7fffffffd408)
    at jsapi.cpp:5058
#65 0x00007ffff4e31162 in JS_EvaluateUCScript (cx=<optimized out>, obj=<optimized out>, chars=<optimized out>, length=<optimized out>, filename=<optimized out>, lineno=<optimized out>, 
    rval=0x7fffffffd408) at jsapi.cpp:5066
#66 0x00007ffff721db7c in gjs_context_eval (js_context=0x154ff20, script=<optimized out>, script_len=-1, filename=0x7ffff7bb7704 "<main>", exit_status_p=0x7fffffffd45c, error=0x7fffffffd450)
    at gjs/context.c:1031
#67 0x00007ffff7b6c4bc in ?? () from /usr/lib64/gnome-shell/libgnome-shell.so
#68 0x00007ffff7481c0b in meta_plugin_manager_new () from /usr/lib64/libmutter.so.0
#69 0x00007ffff747f1b4 in meta_compositor_manage_screen () from /usr/lib64/libmutter.so.0
#70 0x00007ffff74949c4 in meta_display_open () from /usr/lib64/libmutter.so.0
#71 0x00007ffff749f418 in meta_run () from /usr/lib64/libmutter.so.0
#72 0x0000000000401c9c in ?? ()
#73 0x00007ffff534160d in __libc_start_main () from /lib64/libc.so.6
#74 0x0000000000401d99 in ?? ()
#75 0x00007fffffffe108 in ?? ()
#76 0x00000000ffffffff in ?? ()
#77 0x0000000000000002 in ?? ()
#78 0x00007fffffffe3d7 in ?? ()
#79 0x0000000000000000 in ?? ()
Continuing.
[Thread 0x7fffcb9fe700 (LWP 27222) exited]
[Thread 0x7fffe0b98700 (LWP 27221) exited]
[Thread 0x7fffe1399700 (LWP 27220) exited]
[Thread 0x7fffe1da2700 (LWP 27219) exited]
[Thread 0x7fffe25a3700 (LWP 27217) exited]

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
Comment 13 July Tikhonov 2013-05-07 20:55:23 UTC
It appears to me that bug is contained in dev-libs/gjs rather than dev-lang/spidermonkey.
This is my "patch" to dev-libs/gjs-1.34.0:

--- gjs-1.34.0/gi/boxed.c
+++ gjs-1.34.0m/gi/boxed.c
@@ -1213,6 +1213,8 @@
                       g_base_info_get_name((GIBaseInfo *)info), gboxed);
 
     proto = gjs_lookup_boxed_prototype(context, info);
+    if (proto == NULL)
+        return NULL;
     proto_priv = priv_from_js(context, proto);
 
     obj = JS_NewObjectWithGivenProto(context,

I just found the place where NULL already occurs but is not yet fatal, and returned what appeared to me as a reasonable value :)
The patch is intuitive rather than intellectual, so it is not going anywhere - but I hope it will help developers to spot the problem. Anyway, with this patch my gnome-shell is working now :) good luck.

emerge --info spidermonkey gjs
Portage 2.1.11.62 (default/linux/amd64/13.0/desktop/gnome, gcc-4.6.3, glibc-2.15-r3, 3.7.10-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.7.10-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-3317U_CPU_@_1.70GHz-with-gentoo-2.2
KiB Mem:     7782028 total,   2713724 free
KiB Swap:    3687420 total,   3687420 free
Timestamp of tree: Tue, 07 May 2013 06:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.3-r3, 3.2.3-r2, 3.3.1
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3 --load-average=0.9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync2.ru.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus djvu dri dts dvd dvdr eds emboss encode evo exif fam ffmpeg fftw firefox flac fortran gdbm gif gimp gnome gnome-keyring gnome-online-accounts gnuplot gpm gstreamer gtk iconv ipv6 jpeg latex lcms ldap libnotify libsecret lzma mad mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio python qt3support readline sdl session socialweb spell sse sse2 sse3 ssl startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vim-syntax vorbis wxwidgets x264 xcb xml xpm xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-lang/spidermonkey-1.8.5-r4 was built with the following:
USE="-debug -minimal -static-libs -test"
CFLAGS="-march=native -O0 -ggdb -pipe"
CXXFLAGS="-march=native -O0 -ggdb -pipe"


dev-libs/gjs-1.34.0 was built with the following:
USE="(multilib) -examples -test" ABI_X86="64"
CFLAGS="-march=native -O0 -ggdb -pipe"
CXXFLAGS="-march=native -O0 -ggdb -pipe"
Comment 14 Ian Stakenvicius (RETIRED) gentoo-dev 2013-08-26 15:09:24 UTC
I agree with July Tikhonov 's assignment -- reassigning bug.
Comment 15 Pacho Ramos gentoo-dev 2013-08-26 16:51:16 UTC
Try with gjs-1.36.1