Project

General

Profile

Actions

Bug #378

closed

Error in "toffile" (Windows)

Added by Jörg Riesmeier almost 15 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Module:
ofstd
Operating System:
Compiler:

Description

Occured in cross-platform testing under Cygwin 1.7.7:
E-Mail from ME to JR:
This problem:

Seeking to start of blocks using SEEK_END [0%------------25%-------------50%--------------75%----------100%] [* Error: unexpected read error after fseek(SEEK_END) to block 6140 Error: fseek() tests unsuccessful. LFS test failed.

I've seen this before in Win32, not sure if it's a problem with OFFile or a bug in the test program though.
What's happening here is that the test program jumps to a random offset with fseek(file, offset, SEEK_END), reads a data block there, but doesn't find the data that should be there at this offset. Either a calculation error in the test program, or a problem with the implementation of fseek(SEEK_END).

=== Nachtrag JR ===

After Uli's correction from 2010-12-13 the test gets a bit further:

Seeking to random positions using SEEK_CUR [0%------------25%-------------50%--------------75%----------100%] [ Error: unexpected read error after fseek(SEEK_CUR) to block 0 Error: fseek() tests unsuccessful. LFS test failed.
Actions

Also available in: Atom PDF