Re: SIGSEGV in /bin/sh after r322740 -> r322776 update

From: David Wolfskill <david_at_catwhisker.org>
Date: Tue, 22 Aug 2017 05:28:36 -0700
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 = 'sh', stop reason = signal SIGSEGV
> >   * frame #0: 0x0000000800b6ee08
> >     frame #1: 0x0000000800000003
> > (lldb) 
> I am not sure how to get the interesting information with lldb,
> try gdb.

freebeast(12.0-C)[11] gdb -c sh.core 
GNU gdb (GDB) 8.0 [GDB v8.0 for FreeBSD]
...
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) 

> 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:

...
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 MEDIUM 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 bits) 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=0
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 11 (core dumped)
Aug 22 11:13:28 freebeast kernel: pid 571 (nfsd), uid 0: exited on signal 11 (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 11 (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 signal 11 (core dumped)
Aug 22 12:05:46 freebeast kernel: pid 1139 (csh), uid 1001: exited on signal 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
-- 
David H. Wolfskill				david_at_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.

Received on Tue Aug 22 2017 - 10:28:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:12 UTC