Re: dash behaviour, was Re: core dump analysis
Geert Uytterhoeven <[email protected]>
| Newsgroups | gmane.linux.ports.m68k,gmane.linux.debian.ports.68k |
|---|---|
| Message-ID | <CAMuHMdWhVdafr4QDkq0QF+ptMD-ruZsF8Ga2Cu240K5YX5jwPA@mail.gmail.com> |
Hi Finn, On Fri, Apr 7, 2023 at 6:08 AM Finn Thain <[email protected]> wrote: > When dash is feeling crashy, you can get results like this: > > root@debian:~# sh /etc/init.d/mountdevsubfs.sh > *** stack smashing detected ***: terminated > Aborted (core dumped) > Warning: mountdevsubfs should be called with the 'start' argument. > root@debian:~# sh /etc/init.d/mountdevsubfs.sh > *** stack smashing detected ***: terminated > Aborted (core dumped) > Warning: mountdevsubfs should be called with the 'start' argument. > root@debian:~# sh /etc/init.d/mountdevsubfs.sh > *** stack smashing detected ***: terminated > Aborted (core dumped) > Warning: mountdevsubfs should be called with the 'start' argument. > root@debian:~# sh /etc/init.d/mountdevsubfs.sh > *** stack smashing detected ***: terminated > Aborted (core dumped) > Warning: mountdevsubfs should be called with the 'start' argument. > root@debian:~# > > But when it's not feeling crashy, you can't: > > root@debian:~# sh /etc/init.d/mountdevsubfs.sh > Warning: mountdevsubfs should be called with the 'start' argument. > root@debian:~# sh /etc/init.d/mountdevsubfs.sh > Warning: mountdevsubfs should be called with the 'start' argument. > root@debian:~# sh /etc/init.d/mountdevsubfs.sh > Warning: mountdevsubfs should be called with the 'start' argument. > root@debian:~# sh /etc/init.d/mountdevsubfs.sh > Warning: mountdevsubfs should be called with the 'start' argument. > > The only way I have found to alter dash's inclination to crash is to > reboot. (I said previously I was unable to reproduce this in a single user > mode shell but it turned out to be more subtle.) That sounds like memory corruption somewhere else, e.g. in the buffer cache... Can you reproduce with CONFIG_DEBUG_SLAB=y? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds