Opened 10 years ago

Closed 9 years ago

#49 closed defect (fixed)

input_history_ bug when counting lines in .history segment (MCR10032)

Reported by: Gary Dixon Owned by: Gary Dixon
Priority: major Milestone: MR12.6f
Component: Standard Library Version: MR12.6e
Keywords: Cc:

Description

When attempting to count lines in the USER_NAME.history segment, input_history_ routine hSeg_count_lines can loop forever if the final line of the file does not end with a NL character. Though this is an unlikely condition for a .history segment, it is one of the designed states for such files. The bug causing the looping is a code implementation error, not a design flaw.

Since this type of infinite looping in a process can use more than 99% of the available CPU time, it thereby affects overall system performance. This bug is a major defect that must be corrected before the input_history_ I/O module is released.

Change History (4)

comment:1 by Gary Dixon, 10 years ago

Owner: changed from Eric Swenson to Gary Dixon
Status: newassigned

comment:3 by Gary Dixon, 10 years ago

Summary: input_history_ bug when counting lines in .history segmentinput_history_ bug when counting lines in .history segment (MCR10032)

comment:4 by Eric Swenson, 9 years ago

Component: DocumentationStandard Library
Milestone: MR12.6f
Resolution: fixed
Status: assignedclosed
Version: MR12.6e
Note: See TracTickets for help on using tickets.