On Tue, Jun 04, 2019 at 04:58:30PM +0200, Hrvoje Popovski wrote:
> On 4.6.2019. 16:54, Otto Moerbeek wrote:
> > On Tue, Jun 04, 2019 at 04:50:28PM +0200, Hrvoje Popovski wrote:
> >
> >> On 4.6.2019. 16:38, Otto Moerbeek wrote:
> >>> On Tue, Jun 04, 2019 at 03:41:02PM +0200, Hrvoje Popovski wrote:
> >>>
> >>>> Hi all,
> >>>>
> >>>> after upgrading Fujitsu RX 2530 M4 from 6.4 to 6.5 in dmesg i saw
> >>>> "Segmentation fault (core dumped)" instead of "setting tty flags".
> >>>> Installation and upgrade are very standard, but they are done over
> >>>> Fujitsu AVR, their remote console like Dell iDRAC.
> >>>> Machine is working normally, i just wanted to report this.
> >>>>
> >>>> core dump:
> >>>> http://kosjenka.srce.hr/~hrvoje/openbsd/ttyflags.core
> >>>>
> >>>> sendbug is in attachment
> >>>>
> >>>> dmesg -s
> >>>> Automatic boot in progress: starting file system checks.
> >>>> /dev/sd0a (208b7bf77955eee9.a): file system is clean; not checking
> >>>> /dev/sd0k (208b7bf77955eee9.k): file system is clean; not checking
> >>>> /dev/sd0d (208b7bf77955eee9.d): file system is clean; not checking
> >>>> /dev/sd0f (208b7bf77955eee9.f): file system is clean; not checking
> >>>> /dev/sd0g (208b7bf77955eee9.g): file system is clean; not checking
> >>>> /dev/sd0h (208b7bf77955eee9.h): file system is clean; not checking
> >>>> /dev/sd0j (208b7bf77955eee9.j): file system is clean; not checking
> >>>> /dev/sd0i (208b7bf77955eee9.i): file system is clean; not checking
> >>>> /dev/sd0e (208b7bf77955eee9.e): file system is clean; not checking
> >>>> Segmentation fault (core dumped)
> >>>> starting network
> >>>> reordering libraries: done.
> >>>> starting early daemons: syslogd ntpd.
> >>>> starting RPC daemons:.
> >>>> savecore: no core dump
> >>>> checking quotas: done.
> >>>> clearing /tmp
> >>>> kern.securelevel: 0 -> 1
> >>>> creating runtime link editor directory cache.
> >>>> preserving editor files.
> >>>> starting network daemons: sshd snmpd bgpd smtpd.
> >>>> starting package daemons: zabbix_agentd.
> >>>> starting local daemons: cron.
> >>>> Tue Jun 4 06:44:04 CEST 2019
> >>>
> >>> Does this also happen when you run ttyflags -a by hand?
> >>>
> >>
> >> yes it happens,
> >>
> >> rs2# ttyflags -a
> >> Segmentation fault (core dumped)
> >>
> >> http://kosjenka.srce.hr/~hrvoje/openbsd/ttyflags2.core
> >>
> >>
> >>> Do you have a malformed entry in /etc/ttys ?
> >>
> >> i don't think that i have. i haven't touch /etc/ttys
> >>
> >>
> >>> Please share your /etc/ttys file.
> >>
> >> http://kosjenka.srce.hr/~hrvoje/openbsd/ttys
> >>
> >
> > there's a stray t at the end.
>
> ohh .. for god sake .. i'm sorry for taking your time .. thank you ..
>
Well, ttyflags should not crash. I just committed a fix that skips
these malformed entries.
Any idea how you ended up with this malformed file?
-Otto