MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #29355 All Revisions ] Back to Issue ]
Summary 0029355: OCCT 6.9.1 persistence restored in OCCT 7.2.0 not working
Revision 2017-11-30 07:13 by abv
Additional information
and documentation updates
Submitted by walter steffe on 30 November, 2017 - 01:29

I have done an experiment to get more information on the situation before the crash:

The following line: "std::ios_base::iostate streamState=myStream.rdstate();"

was inserted into the following function which is defined inside of FSD_File.cxx

void FSD_File::EndReadObjectData()
{

  char c;
  std::ios_base::iostate streamState=myStream.rdstate();
  myStream.get(c);
  while (c != ')') {
    if (IsEnd() || (c != ' ') || (c == '\n')) {
      throw Storage_StreamFormatError();
    }
    myStream.get(c);
  }

// cout << "EndReadObjectData" << endl;
}

So I have discovered that when the code enters into that functions the stream status is not valid

(gdb) p streamState
$1 = std::_S_failbit

and therefore c is not read inside of the function.

So the problem occurred in some other place before entering into the function void FSD_File::EndReadObjectData(). But I do not know where.

Walter
Revision 2017-11-30 07:13 by abv
Additional information
and documentation updates


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker