Bug 215373

Summary: Unneeded (?) assertion in ttyinq_line_iterate() from sys/kern/tty_inq.c
Product: Base System Reporter: Jan Kokemüller <jan.kokemueller>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Some People    
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Jan Kokemüller 2016-12-18 10:00:28 UTC
On CURRENT r309302 with debuggin on I'm getting assertions like here:

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.