Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Aug 2017 04:46:27 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        current@freebsd.org
Subject:   SIGSEGV in /bin/sh after r322740 -> r322776 update
Message-ID:  <20170822114627.GC1130@albert.catwhisker.org>

next in thread | raw e-mail | index | archive | help

--8Y8a5CJOPM/zJV44
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Started with:
FreeBSD freebeast.catwhisker.org 12.0-CURRENT FreeBSD 12.0-CURRENT #445  r3=
22740M/322745:1200040: Mon Aug 21 04:35:19 PDT 2017     root@freebeast.catw=
hisker.org:/common/S4/obj/usr/src/sys/GENERIC  amd64

After source-based update (which was uneventful):
FreeBSD freebeast.catwhisker.org 12.0-CURRENT FreeBSD 12.0-CURRENT #446  r3=
22776M/322778:1200041: Tue Aug 22 04:07:02 PDT 2017     root@freebeast.catw=
hisker.org:/common/S4/obj/usr/src/sys/GENERIC  amd64

Rebooted; trying "make delete-old-libs" yields:
Segmentation fault (core dumped)
make: "/usr/src/share/mk/bsd.compiler.mk" line 159: warning: "echo "5.0.0 5=
=2E0.0svn)" | awk -F. '{print $1 * 10000 + $2 * 100 + $3;}'" returned non-z=
ero status
Segmentation fault (core dumped)
make: "/usr/src/share/mk/bsd.compiler.mk" line 164: warning: "{ echo "__Fre=
eBSD_cc_version" | cc -E - 2>/dev/null || echo __FreeBSD_cc_version; } | se=
d -n '$p'" returned non-zero status
Segmentation fault (core dumped)
make: "/usr/src/share/mk/bsd.linker.mk" line 56: warning: Unknown linker fr=
om LD=3Dld: , defaulting to bfd
Segmentation fault (core dumped)
make: "/usr/src/share/mk/bsd.linker.mk" line 61: warning: "echo "2.17.50" |=
  awk -F. '{print $1 * 10000 + $2 * 100 + $3;}'" returned non-zero status
Segmentation fault (core dumped)
Segmentation fault (core dumped)
make[1]: "/usr/src/share/mk/bsd.compiler.mk" line 155: Unable to determine =
compiler type for CC=3Dcc.  Consider setting COMPILER_TYPE.
*** Error code 1

Stop.
make: stopped in /usr/src
=2EERROR_TARGET=3D'delete-old-libs'
=2EERROR_META_FILE=3D''
=2EMAKE.LEVEL=3D'0'
MAKEFILE=3D''
=2EMAKE.MODE=3D'normal'
_ERROR_CMD=3D'.PHONY'
=2ECURDIR=3D'/usr/src'
=2EMAKE=3D'make'
=2EOBJDIR=3D'/usr/obj/usr/src'
=2ETARGETS=3D'delete-old-libs'
DESTDIR=3D''
LD_LIBRARY_PATH=3D''
MACHINE=3D'amd64'
MACHINE_ARCH=3D'amd64'
MAKEOBJDIRPREFIX=3D'/usr/obj'
MAKESYSPATH=3D'/usr/src/share/mk'
MAKE_VERSION=3D'20170720'
PATH=3D'/sbin:/bin:/usr/sbin:/usr/bin'
SRCTOP=3D'/usr/src'
OBJTOP=3D'/usr/obj/usr/src'


I actually *first* noticed the issue on my laptop -- above was my
builld machine.  On laptop, I run xdm; entered login & password;
screen blanked, then returned to fresh login screen.  Loggedin on
vty, and found sh.core.  "file sh.core" said:

g1-252(11.1-S)[4] file sh.core=20
sh.core: ELF 64-bit LSB core file x86-64, version 1 (FreeBSD), FreeBSD-styl=
e, from ' /usr/local/lib/X11/xdm/Xsession'

Files affected by the update were:
Updating '/S4/usr/src':
A    /S4/usr/src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/llquan=
tize/err.D_LLQUANT_MAGTOOBIG.offbyone.d
U    /S4/usr/src/cddl/contrib/opensolaris/lib/libdtrace/common/dt_cc.c
U    /S4/usr/src/cddl/usr.sbin/dtrace/tests/common/llquantize/Makefile
U    /S4/usr/src/contrib/top/loadavg.h
U    /S4/usr/src/kerberos5/libexec/kpasswdd/Makefile
U    /S4/usr/src/lib/libc/amd64/sys/Makefile.inc
A    /S4/usr/src/lib/libc/amd64/sys/amd64_detect_rdfsgsbase.c
A    /S4/usr/src/lib/libc/amd64/sys/amd64_detect_rdfsgsbase.h
U    /S4/usr/src/lib/libc/amd64/sys/amd64_get_fsbase.c
U    /S4/usr/src/lib/libc/amd64/sys/amd64_get_gsbase.c
U    /S4/usr/src/lib/libc/amd64/sys/amd64_set_fsbase.c
U    /S4/usr/src/lib/libc/amd64/sys/amd64_set_gsbase.c
U    /S4/usr/src/lib/libc/mips/Symbol.map
U    /S4/usr/src/lib/libcompiler_rt/Makefile.inc
U    /S4/usr/src/share/man/man7/tests.7
U    /S4/usr/src/sys/amd64/amd64/cpu_switch.S
U    /S4/usr/src/sys/amd64/amd64/exception.S
U    /S4/usr/src/sys/amd64/amd64/machdep.c
U    /S4/usr/src/sys/amd64/amd64/ptrace_machdep.c
U    /S4/usr/src/sys/amd64/amd64/sys_machdep.c
U    /S4/usr/src/sys/amd64/amd64/vm_machdep.c
U    /S4/usr/src/sys/amd64/include/asmacros.h
U    /S4/usr/src/sys/amd64/include/pcb.h
U    /S4/usr/src/sys/arm64/arm64/swtch.S
U    /S4/usr/src/sys/cddl/contrib/opensolaris/uts/common/sys/isa_defs.h
U    /S4/usr/src/sys/compat/linuxkpi/common/src/linux_rcu.c
U    /S4/usr/src/sys/dev/qlxgbe/README.txt
U    /S4/usr/src/sys/dev/qlxgbe/ql_boot.c
U    /S4/usr/src/sys/dev/qlxgbe/ql_def.h
U    /S4/usr/src/sys/dev/qlxgbe/ql_fw.c
U    /S4/usr/src/sys/dev/qlxgbe/ql_glbl.h
U    /S4/usr/src/sys/dev/qlxgbe/ql_hw.c
U    /S4/usr/src/sys/dev/qlxgbe/ql_hw.h
U    /S4/usr/src/sys/dev/qlxgbe/ql_inline.h
U    /S4/usr/src/sys/dev/qlxgbe/ql_ioctl.c
U    /S4/usr/src/sys/dev/qlxgbe/ql_isr.c
U    /S4/usr/src/sys/dev/qlxgbe/ql_minidump.c
U    /S4/usr/src/sys/dev/qlxgbe/ql_os.c
U    /S4/usr/src/sys/dev/qlxgbe/ql_os.h
U    /S4/usr/src/sys/dev/qlxgbe/ql_reset.c
U    /S4/usr/src/sys/dev/qlxgbe/ql_ver.h
U    /S4/usr/src/sys/kern/subr_smp.c
U    /S4/usr/src/sys/mips/mips/exception.S
U    /S4/usr/src/sys/modules/qlxgbe/Makefile
U    /S4/usr/src/sys/netipsec/ipsec.c
U    /S4/usr/src/sys/netipsec/ipsec.h
U    /S4/usr/src/sys/netipsec/ipsec6.h
U    /S4/usr/src/sys/netipsec/ipsec_output.c
U    /S4/usr/src/sys/sys/param.h
U    /S4/usr/src/sys/sys/smp.h
U    /S4/usr/src/sys/ufs/ffs/ffs_softdep.c
U    /S4/usr/src/sys/x86/x86/mp_x86.c
U    /S4/usr/src/usr.sbin/chown/tests/chown_test.sh
Updated to revision 322778.

lldb's notion of the backtrace was fairly non-useful:
g1-252(11.1-S)[7] lldb -c sh.core
(lldb) target create --core "sh.core"
Core file '/home/david/sh.core' (x86_64) was loaded.
(lldb) bt
* thread #1, name =3D 'sh', stop reason =3D signal SIGSEGV
  * frame #0: 0x0000000800b6ee08
    frame #1: 0x0000000800000003
(lldb)=20

I have rebooted the laptop back to stable/11, but the bujild machine
is available for me to poke at.  I am able to login (login shell is
/bin/csh), but not at all sure what sort of evasive maneuvers will be
needed to escape from this.  I do have a freshly-built stable/11 /bin/sh,
and misc/compat11x installed, so that *might* provide an option....

Peace,
david
--=20
David H. Wolfskill				david@catwhisker.org
If we wish to eliminate sources of Fake News, start at the top: D. Trump.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

--8Y8a5CJOPM/zJV44
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQF8BAEBCgBmBQJZnBmTXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDQ0I3Q0VGOTE3QTgwMUY0MzA2NEQ3N0Ix
NTM5Q0M0MEEwNDlFRTE3AAoJEBU5zECgSe4XNsgH/2YYdn6D597NbdSP2BHyAx35
eci4f/HRihe2flgpOENyLyi4L/Dt7KSIh2EaRjdacRNVzMke3G9nY6gfEnqzXRzB
Gtq76gIJEYF3fTYqU4iMSvhV8mf2qbWccc+ATjRaLI6ixKIvBUbmPFSuU8fdUsbE
3QPnJ1Zy/sORNigP8AV23012JqbgkMYRVhJlZrwNW+LWi14727aAaK7q++CiSyFR
HBuL+y3Z9d6MjTmNYteviEFMzAVDRUj0LKO18BhBCnXzKRqQwhoteset3Qs+ME9Q
VCvwYr0kOu1pSg5ugvIBPPMJJ1OzQJPNPSm1zGFx8YcPdHehgluW19vYEAB6dwM=
=8zbK
-----END PGP SIGNATURE-----

--8Y8a5CJOPM/zJV44--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170822114627.GC1130>