Bug 215373 - Unneeded (?) assertion in ttyinq_line_iterate() from sys/kern/tty_inq.c
Summary: Unneeded (?) assertion in ttyinq_line_iterate() from sys/kern/tty_inq.c
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-18 10:00 UTC by Jan Kokemüller
Modified: 2016-12-18 10:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kokemüller 2016-12-18 10:00:28 UTC
On CURRENT r309302 with debuggin on I'm getting assertions like here:
https://lists.freebsd.org/pipermail/freebsd-current/2011-May/024573.html

They seem to happen randomly on key presses.

Is the second "MPASS(tib != NULL);" needed? Is it possible that "tib->tib_next" is NULL on the last loop iteration (i.e. offset gets incremented to ti->ti_end)? The first MPASS should be enough.