[7.0] /bin/sh segfaulting during boot

Oliver Fromme olli at lurza.secnetix.de
Thu Mar 13 19:56:09 UTC 2008


walt <w41ter at gmail.com> wrote:
 > Oliver Fromme wrote:
 > > walt<w41ter at gmail.com>  wrote:
 > > >  I'm now running RELENG_7 on three x86 machines, but (only) one of
 > > >  them is behaving badly during bootup.
 > > > 
 > > >  Once the rc.d scripts start to run, I see /bin/sh crashing dozens of
 > > >  times before I finally see the login prompt.  A few of the normal
 > > >  processes actually start okay, like ppp and named (this is my home
 > > >  firewall), but many normal daemons like syslogd and sendmail are
 > > >  not running.
 > > 
 > > Last time I had symptoms like that, it turned out to
 > > be bad RAM.
 > 
 > I suspected the same, so I ran memtest86 overnight with no errors.

That's not a guarantee for no RAM problems (though it's
a strong indication).

 > I compiled sh with debugging symbols -- and it won't crash so I
 > still can't get a backtrace.  Very frustrating.  But at least I
 > have a working sh :o)

Maybe a bit toggled on your disk inside the sh binary,
and the disk failed to detect and/or report the error.

GELI and ZFS are supposed to detect such silent disk
corruption, so maybe you might want to use one of them.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"Python is an experiment in how much freedom programmers need.
Too much freedom and nobody can read another's code; too little
and expressiveness is endangered."
        -- Guido van Rossum


More information about the freebsd-stable mailing list