Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Aug 2017 05:28:36 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        current@freebsd.org
Subject:   Re: SIGSEGV in /bin/sh after r322740 -> r322776 update
Message-ID:  <20170822122836.GH1130@albert.catwhisker.org>
In-Reply-To: <20170822115923.GC1700@kib.kiev.ua>
References:  <20170822114627.GC1130@albert.catwhisker.org> <20170822115923.GC1700@kib.kiev.ua>

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

--JCYGd/UpHK4EX+A4
Content-Type: multipart/mixed; boundary="1n5KrmHTzI9lYhsK"
Content-Disposition: inline


--1n5KrmHTzI9lYhsK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Aug 22, 2017 at 02:59:23PM +0300, Konstantin Belousov wrote:
> ...
> > 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 am not sure how to get the interesting information with lldb,
> try gdb.

freebeast(12.0-C)[11] gdb -c sh.core=20
GNU gdb (GDB) 8.0 [GDB v8.0 for FreeBSD]
=2E..
Type "apropos word" to search for commands related to "word".
[New LWP 100182]
Core was generated by `sh -c cc --version || echo 0.0.0'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000000800b6ee08 in ?? ()
(gdb) bt
#0  0x0000000800b6ee08 in ?? ()
#1  0x0000000000000000 in ?? ()
(gdb)=20

> Disassemble the code around the faulting %rip.

Sorry; I haven't done very much with any debugger other than the
one in Perl in ... decades.  Checking the gdb docs online, the only
reference to "disassembly" reads "23.3.3.22 Disassembly In Guile",
which seems rather far off the mark.

I'm afraid I'll need a bit more detail.

>Also provide the first
> 100 lines of verbose dmesg of the boot on the affected machine.

Well, a copy of the complete (verbose) dmesg.boot from *yesterday*
(r322740) is at
<http://www.catwhisker.org/~david/FreeBSD/history/freebeast.12_dmesg.txt>;

I grabbed a copy of the dmesg.boot for today, and have attached
"head -100" from it to this message.

> Is it only /bin/sh which faults ?

Well, /bin/csh doesn't seem to be giving me any trouble as I use
it interactively.  I don't recall seeing evidence that anything
that isn't invoking /bin/sh is having a problem; on the other hand,
there is a lot of the system I don't normally use.  But things like
"svn info" work, as does "svnlite info" (big difference there is
that former is a port, built under stable/11, while the latter would
be part of base).

> Does system boot into multiuser ?

Yes; it does.  But checking /var/log/messages, I see:

=2E..
Aug 22 11:13:28 freebeast kernel: da3: Delete methods: <NONE(*),ZERO>
Aug 22 11:13:28 freebeast kernel: GEOM: new disk da3
Aug 22 11:13:28 freebeast kernel: (da3:umass-sim0:0:0:3): PREVENT ALLOW MED=
IUM REMOVAL not supported.
Aug 22 11:13:28 freebeast kernel: re0: link state changed to DOWN
Aug 22 11:13:28 freebeast kernel: pid 286 (sh), uid 0: exited on signal 11 =
(core dumped)
Aug 22 11:13:28 freebeast kernel: pid 293 (sh), uid 0: exited on signal 11 =
(core dumped)
Aug 22 11:13:28 freebeast kernel: pid 298 (sh), uid 0: exited on signal 11 =
(core dumped)
Aug 22 11:13:28 freebeast kernel: pid 302 (sh), uid 0: exited on signal 11 =
(core dumped)
Aug 22 11:13:28 freebeast kernel: re0: link state changed to UP
Aug 22 11:13:28 freebeast kernel: pid 307 (sh), uid 0: exited on signal 11 =
(core dumped)
Aug 22 11:13:28 freebeast kernel: pid 318 (sh), uid 0: exited on signal 11 =
(core dumped)
Aug 22 11:13:28 freebeast kernel: ubt0 on uhub0
Aug 22 11:13:28 freebeast kernel: ubt0: <Broadcom Corp BCM43142A0, rev 2.00=
/1.12, addr 3> on usbus0
Aug 22 11:13:28 freebeast kernel: random: harvesting attach, 8 bytes (4 bit=
s) from ubt0
Aug 22 11:13:28 freebeast kernel: pid 327 (sh), uid 0: exited on signal 11 =
(core dumped)
Aug 22 11:13:28 freebeast kernel: pid 331 (sh), uid 0: exited on signal 11 =
(core dumped)
Aug 22 11:13:28 freebeast kernel: WARNING: attempt to domain_add(bluetooth)=
 after domainfinalize()
Aug 22 11:13:28 freebeast kernel: WARNING: attempt to domain_add(netgraph) =
after domainfinalize()
Aug 22 11:13:28 freebeast lpd[596]: lpd startup: logging=3D0
Aug 22 11:13:28 freebeast kernel: .
Aug 22 11:13:28 freebeast ntpd[618]: ntpd 4.2.8p10-a (1): Starting
Aug 22 11:13:28 freebeast kernel: pid 572 (nfsd), uid 0: exited on signal 1=
1 (core dumped)
Aug 22 11:13:28 freebeast kernel: pid 571 (nfsd), uid 0: exited on signal 1=
1 (core dumped)
Aug 22 11:13:29 freebeast kernel: pid 684 (sh), uid 0: exited on signal 11 =
(core dumped)
Aug 22 11:13:29 freebeast kernel: pid 725 (autounmountd), uid 0: exited on =
signal 11 (core dumped)
Aug 22 11:27:08 freebeast kernel: pid 810 (csh), uid 1001: exited on signal=
 11 (core dumped)
Aug 22 11:27:12 freebeast kernel: pid 844 (csh), uid 1001: exited on signal=
 11 (core dumped)
Aug 22 11:27:12 freebeast kernel: pid 894 (csh), uid 1001: exited on signal=
 11 (core dumped)
Aug 22 11:27:16 freebeast kernel: pid 928 (csh), uid 1001: exited on signal=
 11 (core dumped)
Aug 22 11:27:16 freebeast kernel: pid 954 (csh), uid 1001: exited on signal=
 11 (core dumped)
Aug 22 11:27:16 freebeast kernel: pid 978 (csh), uid 1001: exited on signal=
 11 (core dumped)
Aug 22 11:27:26 freebeast kernel: pid 1011 (csh), uid 0: exited on signal 1=
1 (core dumped)
Aug 22 11:27:26 freebeast kernel: pid 1042 (sh), uid 0: exited on signal 11=
 (core dumped)
Aug 22 11:27:26 freebeast kernel: pid 1043 (sh), uid 0: exited on signal 11=
 (core dumped)
Aug 22 11:27:26 freebeast kernel: pid 1045 (sh), uid 0: exited on signal 11=
 (core dumped)
Aug 22 11:27:26 freebeast kernel: pid 1046 (sh), uid 0: exited on signal 11=
 (core dumped)
Aug 22 11:27:27 freebeast kernel: pid 1048 (sh), uid 0: exited on signal 11=
 (core dumped)
Aug 22 11:27:27 freebeast kernel: pid 1051 (sh), uid 0: exited on signal 11=
 (core dumped)
Aug 22 11:27:27 freebeast kernel: pid 1052 (sh), uid 0: exited on signal 11=
 (core dumped)
Aug 22 11:27:27 freebeast kernel: pid 1056 (sh), uid 0: exited on signal 11=
 (core dumped)
Aug 22 11:27:27 freebeast kernel: pid 1059 (sh), uid 0: exited on signal 11=
 (core dumped)
Aug 22 12:05:24 freebeast kernel: pid 1134 (scp), uid 1001: exited on signa=
l 11 (core dumped)
Aug 22 12:05:46 freebeast kernel: pid 1139 (csh), uid 1001: exited on signa=
l 11 (core dumped)


which provides some evidence that /bin/csh is also affected.

Thanks for your help; sorry I'm so clueless about using gdb.

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.

--1n5KrmHTzI9lYhsK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="dmesg.boot_head"
Content-Transfer-Encoding: quoted-printable

pcm2:       + <- nid=3D26 [pin: Line-in (Blue Jack)] [src: line]
pcm2:       + <- nid=3D29 [beep widget] [src: speaker]
pcm2:=20
pcm2: Master Volume (OSS: vol): -65/0dB
pcm2:    +- ctl 14 (nid  12 out):    -65/0dB (88 steps)
pcm2:    +- ctl 15 (nid  12 in   0): mute
pcm2:    +- ctl 16 (nid  12 in   1): mute
pcm2:    +- ctl 17 (nid  13 out):    -65/0dB (88 steps)
pcm2:    +- ctl 18 (nid  13 in   0): mute
pcm2:    +- ctl 19 (nid  13 in   1): mute
pcm2:    +- ctl 20 (nid  14 out):    -65/0dB (88 steps)
pcm2:    +- ctl 21 (nid  14 in   0): mute
pcm2:    +- ctl 22 (nid  14 in   1): mute
pcm2:    +- ctl 23 (nid  15 out):    -65/0dB (88 steps)
pcm2:    +- ctl 24 (nid  15 in   0): mute
pcm2:    +- ctl 25 (nid  15 in   1): mute
pcm2:    +- ctl 26 (nid  20 in ):    mute
pcm2:    +- ctl 27 (nid  21 in ):    mute
pcm2:    +- ctl 28 (nid  22 in ):    mute
pcm2:    +- ctl 29 (nid  23 in ):    mute
pcm2:    +- ctl 36 (nid  27 in ):    mute
pcm2:=20
pcm2: PCM Volume (OSS: pcm): 0/0dB
pcm2:    +- ctl 15 (nid  12 in   0): mute
pcm2:    +- ctl 18 (nid  13 in   0): mute
pcm2:    +- ctl 21 (nid  14 in   0): mute
pcm2:    +- ctl 24 (nid  15 in   0): mute
pcm2:=20
pcm2: Microphone Volume (OSS: mic): 0/30dB
pcm2:    +- ctl  1 (nid   7 in   0): -17/30dB (64 steps) + mute
pcm2:    +- ctl  4 (nid  11 in   0): -34/12dB (32 steps) + mute
pcm2:    +- ctl 31 (nid  24 out):    0/30dB (4 steps)
pcm2:=20
pcm2: Microphone2 Volume (OSS: monitor): 0/30dB
pcm2:    +- ctl  1 (nid   7 in   0): -17/30dB (64 steps) + mute
pcm2:    +- ctl  5 (nid  11 in   1): -34/12dB (32 steps) + mute
pcm2:    +- ctl 33 (nid  25 out):    0/30dB (4 steps)
pcm2:=20
pcm2: Line-in Volume (OSS: line): 0/30dB
pcm2:    +- ctl  1 (nid   7 in   0): -17/30dB (64 steps) + mute
pcm2:    +- ctl  6 (nid  11 in   2): -34/12dB (32 steps) + mute
pcm2:    +- ctl 35 (nid  26 out):    0/30dB (4 steps)
pcm2:=20
pcm2: Speaker/Beep Volume (OSS: speaker): -17/12dB
pcm2:    +- ctl  1 (nid   7 in   0): -17/30dB (64 steps) + mute
pcm2:    +- ctl  9 (nid  11 in   5): -34/12dB (32 steps) + mute
pcm2:=20
pcm2: Recording Level (OSS: rec): -17/30dB
pcm2:    +- ctl  1 (nid   7 in   0): -17/30dB (64 steps) + mute
pcm2:=20
pcm2: Input Mix Level (OSS: mix): -17/30dB
pcm2:    +- ctl  1 (nid   7 in   0): -17/30dB (64 steps) + mute
pcm2:    +- ctl 16 (nid  12 in   1): mute
pcm2:    +- ctl 19 (nid  13 in   1): mute
pcm2:    +- ctl 22 (nid  14 in   1): mute
pcm2:    +- ctl 25 (nid  15 in   1): mute
pcm2:=20
pcm2: Input Monitoring Level (OSS: igain): 0/0dB
pcm2:    +- ctl 16 (nid  12 in   1): mute
pcm2:    +- ctl 19 (nid  13 in   1): mute
pcm2:    +- ctl 22 (nid  14 in   1): mute
pcm2:    +- ctl 25 (nid  15 in   1): mute
pcm2:=20
pcm2: Mixer "vol":
pcm2: Mixer "pcm":
pcm2: Mixer "speaker":
pcm2: Mixer "line":
pcm2: Mixer "mic":
pcm2: Mixer "mix":
pcm2: Mixer "rec":
pcm2: Mixer "igain":
pcm2: Mixer "ogain":
pcm2: Mixer "monitor":
pcm2: Soft PCM mixer ENABLED
pcm2: Playback channel set is: Front Left, Front Right, Front Center, Low F=
requency Effects, Back Left, Back Right, Side Left, Side Right,=20
pcm2: Playback channel matrix is: 7.1 (disconnected)
pcm2: Recording channel set is: Front Left, Front Right,=20
pcm2: Recording channel matrix is: 2.0 (disconnected)
random: harvesting attach, 8 bytes (4 bits) from pcm2
random: harvesting attach, 8 bytes (4 bits) from hdaa1
random: harvesting attach, 8 bytes (4 bits) from hdacc1
ugen1.1: <Intel EHCI root HUB> at usbus1
ugen0.1: <0x8086 XHCI root HUB> at usbus0
ugen2.1: <Intel EHCI root HUB> at usbus2
ses0 at ahciem0 bus 0 scbus5 target 0 lun 0
ses0: <AHCI SGPIO Enclosure 1.00 0001> SEMB S-E-S 2.00 device
ses0: SEMB SES Device
uhub0: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ses0: ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <Crucial CT960M500SSD1 MU03> ACS-2 ATA SATA 3.x device
ada0: Serial Number 1350095E5057
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 915715MB (1875385008 512 byte sectors)
ada0: quirks=3D0x2<NCQ_TRIM_BROKEN>
GEOM: new disk ada0
uhub1: ada1 at ahcich2 bus 0 scbus2 target 0 lun 0
ada1: <M4-CT512M4SSD2 0309> ACS-2 ATA SATA 3.x device
ada1: Serial Number 00000000123209121C23
ada1: 600.000MB/s transfers (SATA 3.x, UDMA5, PIO 8192bytes)

--1n5KrmHTzI9lYhsK--

--JCYGd/UpHK4EX+A4
Content-Type: application/pgp-signature; name="signature.asc"

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

iQF8BAEBCgBmBQJZnCN0XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDQ0I3Q0VGOTE3QTgwMUY0MzA2NEQ3N0Ix
NTM5Q0M0MEEwNDlFRTE3AAoJEBU5zECgSe4X/NwH/RLgIvvqjzeEzgvvSgk+g4bU
fDILKGv3OsdY8v8GKA672t6UO50JS5BBAwlwpn3nZxssNk84Xc5yuvWhsmAO0xh5
Ltd9udcfoykJ5U8YlNX4vH66Ot5seraK4G0nWm3a0q6oytl3YBKqhB9s6833gpKW
nnwETQVK+Q5QqgPuc7YBjk5aDG/b09uSqLPxJUX42nBv7SSAyC/DJ34tCahG0Txy
WItPn7tdlB5kmKpEd1iLvK8hmCGU7AYtRArmG/LuHFVH9U6tzxGKUPV0AJ/cUcmz
AYGsjSbkgZTvPkGHkaIpJ+s6YE6PuCLft+7seNLwlRZdnBN23k8yNq8dxOdB1qU=
=4Qim
-----END PGP SIGNATURE-----

--JCYGd/UpHK4EX+A4--



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