OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000995OMNeT++simulation kernelpublic2017-02-09 16:422017-02-23 15:52
Reportertill 
Assigned Toandras 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Platformx86-64OSmacOSOS Version10.12
Product Version5.1pre3 
Target VersionFixed in Version5.1 
Summary0000995: Assert condition fails for ini files with CRLF line terminators in inifilereader
DescriptionFor Files with CRLF line terminators the inifilereader fails since omnetpp 5.1:

<!> Error: ASSERT: Condition 'rawLine.empty() || (*(rawLine.end()-1) != '\r' && *(rawLine.end()-1) != '\n')' does not hold in function internalReadFile, inifilereader.cc line 137
Steps To Reproducefile omnetpp.ini
     omnetpp.ini: ASCII text
unix2dos omnetpp.ini
file omnetpp.ini
     omnetpp.ini: ASCII text, with CRLF line terminators
opp_run ....
     <!> Error: ASSERT: Condition 'rawLine.empty() || (*(rawLine.end()-1) != '\r' && *(rawLine.end()-1) != '\n')' does not hold in function internalReadFile, inifilereader.cc line 137

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0001327)
andras (administrator)
2017-02-23 15:48

Yeah, this bug was introduced when the code was converted from FILE* I/O to C++ iostreams late last year, for 5.1pre2. Old code right-trimmed the line, which was lost during the conversion.

Thanks Till for reporting!

- Issue History
Date Modified Username Field Change
2017-02-09 16:42 till New Issue
2017-02-23 15:48 andras Note Added: 0001327
2017-02-23 15:48 andras Status new => resolved
2017-02-23 15:48 andras Fixed in Version => 5.1
2017-02-23 15:48 andras Resolution open => fixed
2017-02-23 15:48 andras Assigned To => andras


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker