Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 536760 - dev-db/mongodb-2.6.7 - mongo: in void v8::internal::String::WriteToFlat<unsigned short>(v8::internal::String*, unsigned short*, int, int) ()
Summary: dev-db/mongodb-2.6.7 - mongo: in void v8::internal::String::WriteToFlat<unsig...
Status: RESOLVED DUPLICATE of bug 526114
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-16 11:37 UTC by Darko Luketic
Modified: 2015-01-16 15:44 UTC (History)
0 users

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 Darko Luketic 2015-01-16 11:37:02 UTC
In reference to #526114

(gdb) r
Starting program: /usr/bin/mongo -ssl --sslCAFile /ssl/cacerts.pem --sslPEMKeyFile /ssl/somehost.both somehost
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".
MongoDB shell version: 2.6.7
[New Thread 0x7ffff4cc9700 (LWP 23427)]
[New Thread 0x7ffff7e59700 (LWP 23428)]
connecting to: somehost/test
[New Thread 0x7ffff42bc700 (LWP 23429)]
[Thread 0x7ffff42bc700 (LWP 23429) exited]

Program received signal SIGSEGV, Segmentation fault.
0x00000000009c1322 in void v8::internal::String::WriteToFlat<unsigned short>(v8::internal::String*, unsigned short*, int, int) ()
(gdb) t a a bt

Thread 3 (Thread 0x7ffff7e59700 (LWP 23428)):
#0  0x00007ffff5837e0d in nanosleep () from /lib64/libc.so.6
#1  0x00007ffff58619f4 in usleep () from /lib64/libc.so.6
#2  0x00000000009def7b in v8::internal::SignalSender::Run() ()
#3  0x00000000009dd856 in ?? ()
#4  0x00007ffff69b12c4 in start_thread () from /lib64/libpthread.so.0
#5  0x00007ffff58683fd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7ffff4cc9700 (LWP 23427)):
#0  0x00007ffff69b682f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x0000000000720435 in mongo::DeadlineMonitor<mongo::V8Scope>::deadlineMonitorThread() ()
#2  0x00007ffff6ddadba in ?? () from /usr/lib64/libboost_thread.so.1.56.0
#3  0x00007ffff69b12c4 in start_thread () from /lib64/libpthread.so.0
#4  0x00007ffff58683fd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7ffff7fe6780 (LWP 23423)):
#0  0x00000000009c1322 in void v8::internal::String::WriteToFlat<unsigned short>(v8::internal::String*, unsigned short*, int, int) ()
#1  0x0000000000a31cd8 in v8::internal::GenericStringUtf16CharacterStream::FillBuffer(unsigned int, unsigned int) ()
#2  0x0000000000a31d14 in v8::internal::BufferedUtf16CharacterStream::ReadBlock() ()
#3  0x0000000000a370be in v8::internal::Scanner::Initialize(v8::internal::Utf16CharacterStream*) ()
#4  0x00000000009cf94b in v8::internal::Parser::ParseLazy(v8::internal::Utf16CharacterStream*, v8::internal::ZoneScope*) ()
#5  0x00000000009dad68 in v8::internal::Parser::ParseLazy() ()
#6  0x00000000009db185 in v8::internal::ParserApi::Parse(v8::internal::CompilationInfo*, int) ()
#7  0x00000000008788d0 in v8::internal::Compiler::CompileLazy(v8::internal::CompilationInfo*) ()
#8  0x000000000099b5a8 in v8::internal::JSFunction::CompileLazy(v8::internal::Handle<v8::internal::JSFunction>, v8::internal::ClearExceptionFlag) ()
#9  0x0000000000937fbd in v8::internal::CallIC_Miss(v8::internal::Arguments, v8::internal::Isolate*) ()
#10 0x0000091c3fe06362 in ?? ()
#11 0x0000091c3fe062c1 in ?? ()
#12 0x00007fffffffd090 in ?? ()
#13 0x00007fffffffd0d8 in ?? ()
#14 0x0000091c3fe261b5 in ?? ()
#15 0x00003fb4843284d9 in ?? ()
#16 0x00003b918df62779 in ?? ()
#17 0x0000091c3fe26121 in ?? ()
#18 0x0000000600000000 in ?? ()
#19 0x00003b918df0c6f9 in ?? ()
#20 0x00007fffffffd168 in ?? ()
#21 0x0000091c3fe4a37b in ?? ()
#22 0x00003b918df62779 in ?? ()
#23 0x0000000000000000 in ?? ()

I have aggressive optimization set.
-O3 -march=(the eqivalent of native) -mtune=(same) -pipe

However it's not related to the optimization, since the same happened in 2.6.5 with -O2 (and -O3 later) (see reference)

# emerge -vpq dev-db/mongodb
[ebuild   R   ] dev-db/mongodb-2.6.7  USE="ssl -debug -kerberos -mms-agent -static-libs"

# emerge --info
Portage 2.2.15 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.9.2, glibc-2.20-r1, 3.14.28-gentoo x86_64)
=================================================================
System uname: Linux-3.14.28-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E31245_@_3.30GHz-with-gentoo-2.2
KiB Mem:    16377536 total,  11055820 free
KiB Swap:   33554424 total,  33554424 free
Timestamp of tree: Fri, 16 Jan 2015 07:15:01 +0000
sh bash 4.3_p33
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p33
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.7
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4, 1.15
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.9.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.4
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.20-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=sandybridge -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mno-movbe -maes -mno-sha -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mavx -mno-avx2 -msse4.2 -msse4.1 -mno-lzcnt -mno-rtm -mno-hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=sandybridge"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -pipe -march=sandybridge -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mno-movbe -maes -mno-sha -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mavx -mno-avx2 -msse4.2 -msse4.1 -mno-lzcnt -mno-rtm -mno-hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=sandybridge"
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 preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.hetzner.de/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8 -l8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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=""
SYNC="rsync://mirror.hetzner.de/gentoo/portage"
USE="X509 acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm go iconv ipv6 mmx modern-top modules multilib ncurses nls nptl openmp pam pcre readline seccomp session sse sse2 sse3 sse4 ssl systemd tcpd unicode 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" 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 ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif geo gzip map proxy referer rewrite userid addition auth_pam auth_request cache_purge echo geoip gunzip gzip_static headers_more metrics push_stream realip secure_link slowfs_cache spdy sticky stub_status sub upload_progress upstream_check" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" 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
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-16 14:36:18 UTC

*** This bug has been marked as a duplicate of bug 526114 ***
Comment 2 Darko Luketic 2015-01-16 15:44:55 UTC
(In reply to Jeroen Roovers from comment #1)
> 
> *** This bug has been marked as a duplicate of bug 526114 ***

The issue isn't fixed. This is not a GRSEC enabled kernel.
And it's still happening. In 2.6.7. The other bug report was for 2.6.5.

Either this or the other bug needs to be re-opened.