Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
general protection fault - libc-2.27.so (bugzilla #673724)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Skotlex
Apprentice
Apprentice


Joined: 13 Mar 2004
Posts: 293

PostPosted: Thu Dec 20, 2018 5:02 am    Post subject: general protection fault - libc-2.27.so (bugzilla #673724) Reply with quote

So... for a few weeks I've been unable to complete my world update due to some segmentation faults ocurring in a few packages. My last thread on the issue helped solve a few issues, and what remains seems to have a different enough cause to use its own thread.

The current packages that I can't update are:
Code:

dev-libs/openssl-1.0.2p-r1
x11-libs/libdrm-2.4.96
media-libs/mesa-18.2.7
media-libs/libepoxy-1.5.3
app-text/ghostscript-gpl-9.26
x11-drivers/nvidia-drivers-415.18


So, I'll take openssl, and the error log I get is:
Code:

>>> Emerging (1 of 1) dev-libs/openssl-1.0.2p-r1::gentoo
>>> Failed to emerge dev-libs/openssl-1.0.2p-r1, Log file:
>>>  '/var/tmp/portage/dev-libs/openssl-1.0.2p-r1/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 0.70, 0.41, 0.24
 * Package:    dev-libs/openssl-1.0.2p-r1
 * Repository: gentoo
 * Maintainer: base-system@gentoo.org
 * USE:        abi_x86_64 amd64 asm cpu_flags_x86_sse2 elibc_glibc kernel_linux sslv3 tls-heartbeat userland_GNU zlib
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
(...)
=== SANITY TESTING!
=== No configuration will be done, all other arguments will be ignored!
======================================================================
No sanity errors detected!
 * Will copy sources from /var/tmp/portage/dev-libs/openssl-1.0.2p-r1/work/openssl-1.0.2p
 * abi_x86_64.amd64: copying to /var/tmp/portage/dev-libs/openssl-1.0.2p-r1/work/openssl-1.0.2p-abi_x86_64.amd64
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/openssl-1.0.2p-r1/work/openssl-1.0.2p ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
 * Use configuration linux-x86_64
./Configure linux-x86_64 enable-camellia enable-ec enable-ec2m enable-srp enable-idea enable-mdc2 enable-rc5 enable-tlsext enable-asm no-gmp no-krb5 no-rfc3779 no-sctp no-ssl2 enable-ssl3 enable-heartbeats enable-zlib --prefix=/usr --openssldir=/etc/ssl --libdir=lib64 shared threads
Configuring for linux-x86_64
    no-ec_nistp_64_gcc_128 [default]  OPENSSL_NO_EC_NISTP_64_GCC_128 (skip dir)
    no-gmp          [option]   OPENSSL_NO_GMP (skip dir)
    no-jpake        [experimental] OPENSSL_NO_JPAKE (skip dir)
    no-krb5         [krb5-flavor not specified] OPENSSL_NO_KRB5
    no-libunbound   [experimental] OPENSSL_NO_LIBUNBOUND (skip dir)
    no-md2          [default]  OPENSSL_NO_MD2 (skip dir)
    no-rfc3779      [option]   OPENSSL_NO_RFC3779 (skip dir)
    no-sctp         [option]   OPENSSL_NO_SCTP (skip dir)
    no-ssl-trace    [default]  OPENSSL_NO_SSL_TRACE (skip dir)
    no-ssl2         [option]   OPENSSL_NO_SSL2 (skip dir)
    no-store        [experimental] OPENSSL_NO_STORE (skip dir)
    no-unit-test    [default]  OPENSSL_NO_UNIT_TEST (skip dir)
    no-weak-ssl-ciphers [default]  OPENSSL_NO_WEAK_SSL_CIPHERS (skip dir)
    no-zlib-dynamic [default]
IsMK1MF=0
CC            =x86_64-pc-linux-gnu-gcc
CFLAG         =-fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM
EX_LIBS       =-ldl -lz
CPUID_OBJ     =x86_64cpuid.o
BN_ASM        =x86_64-gcc.o x86_64-mont.o x86_64-mont5.o x86_64-gf2m.o rsaz_exp.o rsaz-x86_64.o rsaz-avx2.o
EC_ASM        =ecp_nistz256.o ecp_nistz256-x86_64.o
DES_ENC       =des_enc.o fcrypt_b.o
AES_ENC       =aes-x86_64.o vpaes-x86_64.o bsaes-x86_64.o aesni-x86_64.o aesni-sha1-x86_64.o aesni-sha256-x86_64.o aesni-mb-x86_64.o
BF_ENC        =bf_enc.o
CAST_ENC      =c_enc.o
RC4_ENC       =rc4-x86_64.o rc4-md5-x86_64.o
RC5_ENC       =rc5_enc.o
MD5_OBJ_ASM   =md5-x86_64.o
SHA1_OBJ_ASM  =sha1-x86_64.o sha256-x86_64.o sha512-x86_64.o sha1-mb-x86_64.o sha256-mb-x86_64.o
RMD160_OBJ_ASM=
CMLL_ENC      =cmll-x86_64.o cmll_misc.o
MODES_OBJ     =ghash-x86_64.o aesni-gcm-x86_64.o
ENGINES_OBJ   =
PROCESSOR     =
RANLIB        =x86_64-pc-linux-gnu-ranlib
ARFLAGS       =
PERL          =/usr/bin/perl
SIXTY_FOUR_BIT_LONG mode
DES_UNROLL used
DES_INT used
RC4_CHUNK is unsigned long
created directory `include/openssl'
(...)
Configured for linux-x86_64.

*** Because of configuration changes, you MUST do the following before
*** building:

   make depend
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-libs/openssl-1.0.2p-r1/work/openssl-1.0.2p ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_compile
make -j8 -j1 V=1 depend
making depend in crypto...
make[1]: Entering directory '/var/tmp/portage/dev-libs/openssl-1.0.2p-r1/work/openssl-1.0.2p-abi_x86_64.amd64/crypto'
Segmentation fault
make[1]: *** [Makefile:137: local_depend] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-libs/openssl-1.0.2p-r1/work/openssl-1.0.2p-abi_x86_64.amd64/crypto'
make: *** [Makefile:487: depend] Error 1
 * ERROR: dev-libs/openssl-1.0.2p-r1::gentoo failed (compile phase):
 *   emake failed


dmesg prints this (for openssl):
Code:

[179617.736213] do_general_protection: 11 callbacks suppressed
[179617.736215] traps: x86_64-pc-linux[13498] general protection ip:7f938211839c sp:7ffeb914df18 error:0 in libc-2.27.so[7f9381fb8000+1be000]


libdrm as error doesn't actually prints any segmentation fault messages, but it does say "ninja: build stopped: subcommand failed." and the dmesg for it prints:
Code:

[179996.531036] x86_64-pc-linux[15914]: segfault at 920 ip 00007f227284739c sp 00007ffe11e06648 error 4 in libc-2.27.so[7f22726e7000+1be000]
[179996.639313] x86_64-pc-linux[15917]: segfault at 920 ip 00007f3a69fd039c sp 00007fff6c782528 error 4 in libc-2.27.so[7f3a69e70000+1be000]


mesa also has a ninja build subcommand failed error, and dmesg also prints:
Code:

[180244.591578] x86_64-pc-linux[18844]: segfault at 930 ip 00007f2fd9cad39c sp 00007ffe8e0bee58 error 4 in libc-2.27.so[7f2fd9b4d000+1be000]
[180244.628339] x86_64-pc-linux[18848]: segfault at 930 ip 00007fb23b7ec39c sp 00007ffd8dcd7f28 error 4 in libc-2.27.so[7fb23b68c000+1be000]
[180244.646596] x86_64-pc-linux[18847]: segfault at 930 ip 00007f60e347b39c sp 00007ffe22a4bbe8 error 4 in libc-2.27.so[7f60e331b000+1be000]
[180244.701664] x86_64-pc-linux[18845]: segfault at 930 ip 00007fcf5baac39c sp 00007ffd76144078 error 4 in libc-2.27.so[7fcf5b94c000+1be000]
[180244.810306] x86_64-pc-linux[18846]: segfault at 930 ip 00007fefb6ba139c sp 00007ffdf42867e8 error 4 in libc-2.27.so[7fefb6a41000+1be000]


libepoxy has the same ninja build error, and dmesg:
Code:

[180337.199755] x86_64-pc-linux[20045]: segfault at 8e0 ip 00007fb65782b39c sp 00007fff492cb6d8 error 4 in libc-2.27.so[7fb6576cb000+1be000]
[180337.224680] x86_64-pc-linux[20044]: segfault at 8e0 ip 00007f1547a7939c sp 00007ffe919cbe58 error 4 in libc-2.27.so[7f1547919000+1be000]
[180337.257220] x86_64-pc-linux[20042]: segfault at 1 ip 00007f9de422139c sp 00007ffdbe98b098 error 4 in libc-2.27.so[7f9de40c1000+1be000]
[180337.284912] x86_64-pc-linux[20043]: segfault at 1 ip 00007f9a33ba139c sp 00007ffd17af8a18 error 4 in libc-2.27.so[7f9a33a41000+1be000]
[180337.415230] x86_64-pc-linux[20041]: segfault at 1 ip 00007f468c4f939c sp 00007ffe38d424d8 error 4 in libc-2.27.so[7f468c399000+1be000]
[180337.717634] x86_64-pc-linux[20040]: segfault at 8e0 ip 00007ff67396939c sp 00007ffc3641ba98 error 4 in libc-2.27.so[7ff673809000+1be000]
[180337.746493] x86_64-pc-linux[20039]: segfault at 8e0 ip 00007f5e350bb39c sp 00007fffeaf96cd8 error 4 in libc-2.27.so[7f5e34f5b000+1be000]


For ghostscript-gpl, I get a bunch of:
Code:

make: *** [base/lib.mak:1356: obj/ets.o] Error 139
make[2]: *** [base/lib.mak:2682: soobj/gxicolor.o] Error 139
make[1]: *** [base/unix-dll.mak:283: so-only-subtarget] Error 2
make: *** [base/unix-dll.mak:245: so] Error 2

But dmesg, again, gives me this:
Code:

[180440.194932] traps: x86_64-pc-linux[23974] general protection ip:7fe8aabafdc5 sp:7ffdc8fa7660 error:0 in libc-2.27.so[7fe8aab77000+1be000]


nvidia-drivers (I know it's unsupported, but just included for completeness), also gives a similar dmesg output:
Code:

[180644.677930] traps: x86_64-pc-linux[30656] general protection ip:7f8903ca039c sp:7fff1753a998 error:0 in libc-2.27.so[7f8903b40000+1be000]
[180644.718242] traps: x86_64-pc-linux[30664] general protection ip:7fe438f2d39c sp:7ffd64306198 error:0 in libc-2.27.so[7fe438dcd000+1be000]
[180644.750618] traps: x86_64-pc-linux[30669] general protection ip:7faad5a8039c sp:7ffcd9e776e8 error:0 in libc-2.27.so[7faad5920000+1be000]
[180644.775543] traps: x86_64-pc-linux[30674] general protection ip:7f3af965439c sp:7fff878dde38 error:0 in libc-2.27.so[7f3af94f4000+1be000]
[180644.801931] traps: x86_64-pc-linux[30679] general protection ip:7f819802839c sp:7fff3723af58 error:0 in libc-2.27.so[7f8197ec8000+1be000]
[180644.824556] traps: x86_64-pc-linux[30684] general protection ip:7f03e8c0039c sp:7ffe7873f488 error:0 in libc-2.27.so[7f03e8aa0000+1be000]
[180644.852676] traps: x86_64-pc-linux[30689] general protection ip:7f6a6d3f739c sp:7ffc44b84c98 error:0 in libc-2.27.so[7f6a6d297000+1be000]
[180644.898511] traps: x86_64-pc-linux[30697] general protection ip:7f895092e39c sp:7ffc79402e18 error:0 in libc-2.27.so[7f89507ce000+1be000]
[180644.921299] traps: x86_64-pc-linux[30702] general protection ip:7fd1c46f539c sp:7ffe7ccebd98 error:0 in libc-2.27.so[7fd1c4595000+1be000]
[180644.944438] traps: x86_64-pc-linux[30707] general protection ip:7f2c02d4939c sp:7ffcf05426e8 error:0 in libc-2.27.so[7f2c02be9000+1be000]


Digging further, and using the Backtraces wiki, I recompiled gcc and glibc and managed to get a core file when compiling openssl.
Code:

>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-libs/openssl-1.0.2p-r1/work/openssl-1.0.2p ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_compile
make -j8 -j1 V=1 depend
making depend in crypto...
make[1]: Entering directory '/var/tmp/portage/dev-libs/openssl-1.0.2p-r1/work/openssl-1.0.2p-abi_x86_64.amd64/crypto'
making depend in crypto/objects...
make[2]: Entering directory '/var/tmp/portage/dev-libs/openssl-1.0.2p-r1/work/openssl-1.0.2p-abi_x86_64.amd64/crypto/objects'
../../util/domd ../.. -MD x86_64-pc-linux-gnu-gcc -- -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -march=native -Os -ggdb  -pipe -fno-strict-aliasing -Wa,--noexecstack -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -DOPENSSL_NO_DEPRECATED -DOPENSSL_NO_EC_NISTP_64_GCC_128 -DOPENSSL_NO_GMP -DOPENSSL_NO_JPAKE -DOPENSSL_NO_LIBUNBOUND -DOPENSSL_NO_MD2 -DOPENSSL_NO_RFC3779 -DOPENSSL_NO_SCTP -DOPENSSL_NO_SSL_TRACE -DOPENSSL_NO_SSL2 -DOPENSSL_NO_STORE -DOPENSSL_NO_UNIT_TEST -DOPENSSL_NO_WEAK_SSL_CIPHERS --  o_names.c obj_dat.c obj_lib.c obj_err.c obj_xref.c
Segmentation fault (core dumped)
make[2]: *** [Makefile:81: depend] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-libs/openssl-1.0.2p-r1/work/openssl-1.0.2p-abi_x86_64.amd64/crypto/objects'
make[1]: *** [Makefile:133: depend] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-libs/openssl-1.0.2p-r1/work/openssl-1.0.2p-abi_x86_64.amd64/crypto'
make: *** [Makefile:487: depend] Error 1


And...
Code:

> cd /var/tmp/portage/dev-libs/openssl-1.0.2p-r1/work/openssl-1.0.2p-abi_x86_64.amd64/crypto/objects
> file core
core: ELF 64-bit LSB core file, x86-64, version 1 (SYSV), SVR4-style, from 'x86_64-pc-linux-gnu-gcc -Werror -D OPENSSL_DOING_MAKEDEPEND -M -fPIC -DOPENSSL_', real uid: 250, effective uid: 250, real gid: 250, effective gid: 250, execfn: '/usr/bin/x86_64-pc-linux-gnu-gcc', platform: 'x86_64'
> gdb /usr/bin/x86_64-pc-linux-gnu-gcc --core core
GNU gdb (Gentoo 8.1 p1) 8.1
Copyright (C) 2018 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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/x86_64-pc-linux-gnu-gcc...done.

warning: core file may not match specified executable file.
[New LWP 10466]
Core was generated by `x86_64-pc-linux-gnu-gcc -Werror -D OPENSSL_DOING_MAKEDEPEND -M -fPIC -DOPENSSL_'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  __strncmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp-sse42.S:198
198   ../sysdeps/x86_64/multiarch/strcmp-sse42.S: Aucun fichier ou dossier de ce type.
(gdb) bt
#0  __strncmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp-sse42.S:198
#1  0x00007f0d85258fc2 in __add_to_environ (name=0x7fffffd21a40 "COLLECT_GCC_OPTIONS", value=value@entry=0x0,
    combined=combined@entry=0x1130950 "COLLECT_GCC_OPTIONS='-Werror' '-D' 'OPENSSL_DOING_MAKEDEPEND' '-M' '-fPIC' '-D' 'OPENSSL_PIC' '-D' 'ZLIB' '-D' 'OPENSSL_THREADS' '-D' '_REENTRANT' '-D' 'DSO_DLFCN' '-D' 'HAVE_DLFCN_H' '-D' 'L_ENDIAN' "..., replace=replace@entry=1) at setenv.c:143
#2  0x00007f0d85258e91 in putenv (
    string=0x1130950 "COLLECT_GCC_OPTIONS='-Werror' '-D' 'OPENSSL_DOING_MAKEDEPEND' '-M' '-fPIC' '-D' 'OPENSSL_PIC' '-D' 'ZLIB' '-D' 'OPENSSL_THREADS' '-D' '_REENTRANT' '-D' 'DSO_DLFCN' '-D' 'HAVE_DLFCN_H' '-D' 'L_ENDIAN' "...) at putenv.c:77
#3  0x0000000000407bd1 in env_manager::xput (this=this@entry=0x6f1540 <env>, string=<optimized out>)
    at /var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/gcc/gcc.c:135
#4  0x000000000040821b in xputenv (string=<optimized out>) at /var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/gcc/gcc.c:2686
#5  set_collect_gcc_options () at /var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/gcc/gcc.c:4710
#6  0x000000000041063c in do_spec (spec=<optimized out>) at /var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/gcc/gcc.c:4863
#7  0x0000000000410b45 in do_spec (spec=<optimized out>) at /var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/gcc/gcc.c:8194
#8  driver::do_spec_on_infiles (this=0x1, this@entry=0x7fffffd21c10) at /var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/gcc/gcc.c:8133
#9  0x00000000004037dc in driver::main (this=this@entry=0x7fffffd21c10, argc=<optimized out>, argc@entry=59, argv=<optimized out>,
    argv@entry=0x7fffffd21d38) at /var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/gcc/gcc.c:7262
#10 0x0000000000403aa4 in main (argc=59, argv=0x7fffffd21d38) at /var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/gcc/gcc-main.c:46
(gdb)


What's next? Should I report it to the Gentoo Bugzilla?

EDIT: emerge --info output:

Code:

> emerge --info
Portage 2.3.51 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop, gcc-7.3.0, glibc-2.27-r6, 4.14.65-gentoo x86_64)
=================================================================
System uname: Linux-4.14.65-gentoo-x86_64-Intel-R-_Core-TM-_i7-3630QM_CPU_@_2.40GHz-with-gentoo-2.6
KiB Mem:    16385652 total,   4055060 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 19 Dec 2018 16:24:24 +0000
Head commit of repository gentoo: 143791f2ed01123698da06105ee48e75db5af97a

sh dash 0.5.9.1-r3
ld GNU ld (Gentoo 2.30 p5) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r4::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://anongit.gentoo.org/repo/sync/gentoo.git
    priority: 100
    sync-git-verify-commit-signature: 1

Zarielle
    location: /etc/portage/overlay
    masters: gentoo
    priority: 101

ABI="amd64"
ABI_X86="64"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ALSA_CARDS="hda-intel"
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"
ARCH="amd64"
AUTOCLEAN="yes"
BOOTSTRAP_USE="cxx unicode internal-glib split-usr python_targets_python3_6 python_targets_python2_7 multilib"
BROOT=""
CALLIGRA_FEATURES="karbon plan sheets stage words"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -Os -ggdb  -pipe"
CFLAGS_amd64="-m64"
CFLAGS_x32="-mx32"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x32="x86_64-pc-linux-gnux32"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/lib/modules/*"
COLORTERM="rxvt-xpm"
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"
CPU_FLAGS_X86="avx f16c mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
CXXFLAGS="-march=native -Os -ggdb  -pipe"
DEFAULT_ABI="amd64"
DISPLAY=":0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vim"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="-vt --jobs=2 --load-average=8"
EMERGE_WARNING_DELAY="10"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
EPREFIX=""
EROOT="/"
ESYSROOT="/"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; eval \"declare -a ssh_opts=(\${3})\" ; exec sftp \${port:+-P \${port}} \"\${ssh_opts[@]}\" \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; exec rsync --rsh=\"ssh \${port:+-p\${port}} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FFLAGS="-O2 -pipe"
GCC_SPECS=""
GENTOO_MIRRORS="ftp://mirrors.rit.edu/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo ftp://mirror.datapipe.net/gentoo"
GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx"
GRUB_PLATFORMS=""
GSETTINGS_BACKEND="dconf"
HOME="/root"
INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH="10"
INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS="false"
INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT="100"
INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH="25"
INFINALITY_FT_BOLD_EMBOLDEN_X_VALUE="0"
INFINALITY_FT_BOLD_EMBOLDEN_Y_VALUE="0"
INFINALITY_FT_BRIGHTNESS="0"
INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH="0"
INFINALITY_FT_CONTRAST="0"
INFINALITY_FT_FILTER_PARAMS="06 25 44 25 06"
INFINALITY_FT_FRINGE_FILTER_STRENGTH="0"
INFINALITY_FT_GAMMA_CORRECTION="0 100"
INFINALITY_FT_GLOBAL_EMBOLDEN_X_VALUE="0"
INFINALITY_FT_GLOBAL_EMBOLDEN_Y_VALUE="0"
INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH="0"
INFINALITY_FT_STEM_ALIGNMENT_STRENGTH="0"
INFINALITY_FT_STEM_FITTING_STRENGTH="0"
INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE="0"
INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS="false"
INFINALITY_FT_USE_VARIOUS_TWEAKS="true"
INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH="0"
INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/7.3.0/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.30/info:/usr/share/info"
INPUT_DEVICES="evdev keyboard mouse synaptics wacom joystick"
IUSE_IMPLICIT="abi_x86_64 prefix prefix-chain prefix-guest"
I_WANT_GLOBAL_JAVA_OPTIONS="true"
KERNEL="linux"
L10N="fr-FR fr en-GB en es-MX es"
LANG="fr_FR.utf8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_MESSAGES="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LDFLAGS_amd64="-m elf_x86_64"
LDFLAGS_x32="-m elf32_x86_64"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe %s"
LIBDIR_amd64="lib64"
LIBDIR_x32="libx32"
LIBDIR_x86="lib32"
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer"
LINGUAS="fr_FR fr en_GB en es_MX es"
LOGNAME="root"
MAKEOPTS="-j8"
MANPAGER="manpager"
MANPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/7.3.0/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.30/man:/usr/lib/llvm/6/share/man:/usr/local/share/man:/usr/share/man"
MOZ_GMP_PATH="/usr/lib64/nsbrowser/plugins/gmp-gmpopenh264/system-installed"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage|udev|systemd|clang|python-exec|llvm)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OFFICE_IMPLEMENTATION="libreoffice"
OLDPWD="/root"
OPENCL_PROFILE="nvidia"
OPENGL_PROFILE="nvidia"
PAGER="/usr/bin/vimmanpager"
PATH="/usr/lib/llvm/6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin"
PHP_TARGETS="php5-6 php7-1"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="alpha amd64 amd64-fbsd amd64-linux arm arm-linux arm64 arm64-linux hppa ia64 m68k m68k-mint mips ppc ppc-aix ppc-macos ppc64 ppc64-linux s390 sh sparc sparc-solaris sparc64-solaris x64-cygwin x64-macos x64-solaris x86 x86-cygwin x86-fbsd x86-linux x86-macos x86-solaris x86-winnt"
PORTAGE_BIN_PATH="/usr/lib/portage/python3.6"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="echo syslog"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --digest-algo SHA256 --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_INTERNAL_CALLER="1"
PORTAGE_NICENESS="18"
PORTAGE_OVERRIDE_EPREFIX=""
PORTAGE_PYM_PATH="/usr/lib64/python3.6/site-packages"
PORTAGE_PYTHONPATH="/usr/lib64/python3.6/site-packages"
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 --exclude=/.git"
PORTAGE_RSYNC_RETRIES="-1"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTAGE_XATTR_EXCLUDE="btrfs.* security.evm security.ima    security.selinux system.nfs4_acl user.apache_handler    user.Beagle.* user.dublincore.* user.mime_encoding user.xdg.*"
PORT_LOGDIR_CLEAN="find "${PORT_LOGDIR}" -type f ! -name "summary.log*" -mtime +7 -delete"
POSTGRES_TARGETS="postgres9_5 postgres10"
PROFILE_ONLY_VARIABLES="ARCH ELIBC IUSE_IMPLICIT KERNEL USERLAND USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ARCH USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL USE_EXPAND_VALUES_USERLAND"
PWD="/root"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python3_6"
PYTHON_TARGETS="python2_7 python3_6"
QT_GRAPHICSSYSTEM="raster"
RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; exec rsync --rsh=\"ssh \${port:+-p\${port}} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
ROOT="/"
ROOTPATH="/usr/lib/llvm/6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin"
RPMDIR="/usr/portage/rpm"
RUBY_TARGETS="ruby23 ruby24"
SANE_BACKENDS="plustek pixma"
SHELL="/bin/zsh"
SHLVL="1"
SYMLINK_LIB="yes"
SYSROOT="/"
TERM="rxvt-unicode"
TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1"
UNINSTALL_IGNORE="/lib/modules/* /var/run /var/lock"
USE="3dnow X a52 aac acpi alsa amd64 avi berkdb boundschecking bzip2 cairo canna cdda cdr cjk cli crypt cscope cups curl cxx dbus dedicated dga divx divx4linux dlloader dri dts dvd dvdr dvdread emboss encode exif fam fbcon fbsplash ffmpeg fftw flac foomaticdb fortran gd gdbm gif gimp glamor gmedia gnutls gpm gstreamer gtk gtk3 gtkhtml hal hddtemp howl iconv icu idn imap imlib innodb inotify ipv6 ithreads jabber jikes joystick jpeg lame lcms libnotify libsamplerate libtirpc libwww lm_sensors lzma mad matroska mbox mmx mng modplug mp3 mp4 mpeg mplayer mtp multilib musepack ncurses nls nptl nsplugin nvidia ogg opencl opengl openmp opus pam pango pcre pdf pdflib perl png ppds python readline realmedia scanner schroedinger sdl seccomp speex spell sse sse2 ssl ssse3 svg tcpd tetex theora threads tiff timidity truetype udev udisks unicode upower usb v4l v4l2 vaapi vdpau vim-syntax vorbis webkit win32codecs wma wmf wmp x264 xcb xcomposite xface xft xine xml xml2 xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="avx f16c mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse synaptics wacom joystick" KERNEL="linux" L10N="fr-FR fr en-GB en es-MX es" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23 ruby24" SANE_BACKENDS="plustek pixma" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" 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"
USER="root"
USERLAND="GNU"
USE_EXPAND="ABI_MIPS ABI_PPC ABI_S390 ABI_X86 ALSA_CARDS APACHE2_MODULES APACHE2_MPMS CALLIGRA_EXPERIMENTAL_FEATURES CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CPU_FLAGS_ARM CPU_FLAGS_X86 CURL_SSL ELIBC ENLIGHTENMENT_MODULES FFTOOLS GPSD_PROTOCOLS GRUB_PLATFORMS INPUT_DEVICES KERNEL L10N LCD_DEVICES LIBREOFFICE_EXTENSIONS LIRC_DEVICES LLVM_TARGETS MONKEYD_PLUGINS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL NGINX_MODULES_STREAM OFED_DRIVERS OFFICE_IMPLEMENTATION OPENMPI_FABRICS OPENMPI_OFED_FEATURES OPENMPI_RM PHP_TARGETS POSTGRES_TARGETS PYTHON_SINGLE_TARGET PYTHON_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS ROS_MESSAGES RUBY_TARGETS SANE_BACKENDS USERLAND UWSGI_PLUGINS VIDEO_CARDS VOICEMAIL_STORAGE XFCE_PLUGINS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="ABI_MIPS ABI_PPC ABI_S390 CPU_FLAGS_ARM ELIBC KERNEL USERLAND"
USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL USERLAND"
USE_EXPAND_UNPREFIXED="ARCH"
USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-fbsd amd64-linux arm arm64 hppa ia64 m68k m68k-mint mips ppc ppc64 ppc64-linux ppc-aix ppc-macos s390 sh sparc sparc64-solaris sparc-solaris x64-cygwin x64-macos x64-solaris x86 x86-cygwin x86-fbsd x86-linux x86-macos x86-solaris x86-winnt"
USE_EXPAND_VALUES_ELIBC="AIX bionic Cygwin Darwin DragonFly FreeBSD glibc HPUX Interix mingw mintlib musl NetBSD OpenBSD SunOS uclibc Winnt"
USE_EXPAND_VALUES_KERNEL="AIX Darwin FreeBSD freemint HPUX linux NetBSD OpenBSD SunOS Winnt"
USE_EXPAND_VALUES_USERLAND="BSD GNU"
USE_ORDER="env:pkg:conf:defaults:pkginternal:features:repo:env.d"
VIDEO_CARDS="nvidia vesa"
XAUTHORITY="/root/.xauthBraFko"
XDG_CACHE_HOME="/tmp/cache/root"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
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"


Last edited by Skotlex on Tue Dec 25, 2018 7:48 pm; edited 2 times in total
Back to top
View user's profile Send private message
lyncse
n00b
n00b


Joined: 25 Dec 2018
Posts: 1

PostPosted: Tue Dec 25, 2018 2:17 pm    Post subject: Re: general protection fault - libc-2.27.so[7fd05e31b000+1be Reply with quote

What is your CPU (model/stepping)? I see same issue on mobile Arrandale while qemu with -cpu Nehalem works perfectly with same binaries. It seems that we are hitting issue with null value of the environment variable passed by sys-apps/sandbox.

EDIT: FEATURES="-sandbox -usersandbox" could be used as an ugly fix. Created https://bugs.gentoo.org/673724 for further tracking.
Back to top
View user's profile Send private message
Skotlex
Apprentice
Apprentice


Joined: 13 Mar 2004
Posts: 293

PostPosted: Tue Dec 25, 2018 7:24 pm    Post subject: Reply with quote

Yes, effectively it is a bug related to the sandbox, I recently was linked to that same bug number, and disabling the sandbox workarounds the issue.

My CPU model is a mcpu=ivybridge model 58 stepping 9.
Code:

# cat /proc/cpuinfo
processor   : 0
vendor_id   : GenuineIntel
cpu family   : 6
model      : 58
model name   : Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz
stepping   : 9
microcode   : 0x12
cpu MHz      : 3192.744
cache size   : 6144 KB
physical id   : 0
siblings   : 8
core id      : 0
cpu cores   : 4
apicid      : 0
initial apicid   : 0
fpu      : yes
fpu_exception   : yes
cpuid level   : 13
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave avx f16c rdrand lahf_lm cpuid_fault epb pti tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts
bugs      : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf
bogomips   : 4789.12
clflush size   : 64
cache_alignment   : 64
address sizes   : 36 bits physical, 48 bits virtual
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 3770
Location: Germany

PostPosted: Wed Dec 26, 2018 1:03 am    Post subject: Reply with quote

Hi,
shot in the dark
Quote:
Code:
CFLAGS="-march=native -Os -ggdb  -pipe"
Same error with -O2 optimization level?
Back to top
View user's profile Send private message
Skotlex
Apprentice
Apprentice


Joined: 13 Mar 2004
Posts: 293

PostPosted: Wed Jan 02, 2019 6:20 pm    Post subject: Reply with quote

The bug has been tracked down to the interaction between sandbox and a statically linked dash shell.
Apparently, under some CPU models, running a statically linked dash in a sandbox causes a memory corruption when accessing the library area (in this case, the environment), and this corruption leads to a segmentation fault when the underlying process tries to access said section (gcc). Or at least, that's my reading of the bug (see bug #673560).

As per the resolution of bug #669702, the recommendation is to just not build dash statically to avoid this issue.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum