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
*** Bug 673560 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 669702 ***