Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673724 - sys-apps/sandbox: segfault in glibc__strncmp_sse42
Summary: sys-apps/sandbox: segfault in glibc__strncmp_sse42
Status: RESOLVED DUPLICATE of bug 669702
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Sandbox (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-25 15:23 UTC by Andrey Korolyov
Modified: 2019-01-03 14:23 UTC (History)
2 users (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 Andrey Korolyov 2018-12-25 15:23:08 UTC
This bug has been observed on all versions of sandbox up to 2.14 and with glibc >= 2.26, seems that some environment variable is dereferenced before the call. Only certain processor models are affected, e.g.

fam: 6/model: 26/stepping: 3 - fine
fam: 6/model: 30/stepping: 5 - fine
fam: 6/model: 37/stepping: 2 - affected

Some additional details are present at https://forums.gentoo.org/viewtopic-t-1090722-start-0.html.


#0  __strncmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp-sse42.S:198
#1  0x00007f7cb986a08a in __add_to_environ (name=0x7fff93c55790 "COMPILER_PATH", 
    value=value@entry=0x0, 
    combined=combined@entry=0x17e5110 "COMPILER_PATH=/usr/libexec/gcc/x86_64-pc-linux-gnu/6.5.0/:/usr/libexec/gcc/x86_64-pc-linux-gnu/6.5.0/:/usr/libexec/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/6.5.0/:/usr/lib/gcc/x86_64-"..., 
    replace=replace@entry=1) at setenv.c:143
#2  0x00007f7cb9869f3d in putenv (
    string=0x17e5110 "COMPILER_PATH=/usr/libexec/gcc/x86_64-pc-linux-gnu/6.5.0/:/usr/libexec/gcc/x86_64-pc-linux-gnu/6.5.0/:/usr/libexec/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/6.5.0/:/usr/lib/gcc/x86_64-"...) at putenv.c:77
#3  0x000000000040836d in env_manager::xput (this=this@entry=0x6f9060 <env>, 
    string=<optimized out>)
    at /var/tmp/portage/sys-devel/gcc-6.5.0/work/gcc-6.5.0/gcc/gcc.c:135
#4  0x0000000000413043 in xputenv (string=<optimized out>)
    at /var/tmp/portage/sys-devel/gcc-6.5.0/work/gcc-6.5.0/gcc/gcc.c:2669
#5  putenv_from_prefixes (do_multi=false, env_var=0x48ca17 "COMPILER_PATH", 
    paths=0x6f88c0 <exec_prefixes>)
    at /var/tmp/portage/sys-devel/gcc-6.5.0/work/gcc-6.5.0/gcc/gcc.c:2706
#6  driver::maybe_run_linker (this=this@entry=0x7fff93c55880, 
    argv0=0x7fff93c586ca "x86_64-pc-linux-gnu-gcc")
    at /var/tmp/portage/sys-devel/gcc-6.5.0/work/gcc-6.5.0/gcc/gcc.c:8242
#7  0x0000000000402f0b in driver::main (this=this@entry=0x7fff93c55880, 
    argc=<optimized out>, argc@entry=120, argv=<optimized out>, 
    argv@entry=0x7fff93c559a8)
    at /var/tmp/portage/sys-devel/gcc-6.5.0/work/gcc-6.5.0/gcc/gcc.c:7213
#8  0x0000000000403225 in main (argc=120, argv=0x7fff93c559a8)
    at /var/tmp/portage/sys-devel/gcc-6.5.0/work/gcc-6.5.0/gcc/gcc-main.c:46
Comment 1 Walther 2018-12-25 19:29:01 UTC
*** Bug 673560 has been marked as a duplicate of this bug. ***
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2019-01-03 14:23:17 UTC

*** This bug has been marked as a duplicate of bug 669702 ***