[Mingw-w64-public] [Project News|New Builds]

2017-10-19 Thread niXman
Hi, The new builds of MinGW-W64 based on GCC-7.2.0 is uploaded, again =) MinGW-w64 master branch is used. 32-bit: posix-sjlj: https://sf.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/7.2.0/threads-posix/sjlj/i686-7.2.0-release-posix-sjlj-rt_v5-rev0

Re: [Mingw-w64-public] _ftelli64 bug

2017-10-19 Thread Liu Hao
On 2017/10/19 18:22, Mateusz Mikuła wrote: You can try linking to different version of runtime library [0] like MSVC does by default. [0] https://stackoverflow.com/questions/3402252/how-to-link-against-msvcr90-dll-with-mingw-gcc MSVCR90 have been in the DLL hell for a decade so linking against

Re: [Mingw-w64-public] _ftelli64 bug

2017-10-19 Thread Yuta Nakai
Maybe this is a bug of MinGW-w64. We have our own implementation of _ftelli64 for msvcrt.dll in libmingwex, because msvcrt.dll does not export it. Workaround: You can use ucrtbase.dll as C Runtime instead of msvcrt.dll. Ucrtbase.dll exports _ftelli64. Windows 10 版のメ�`ル

Re: [Mingw-w64-public] _ftelli64 bug

2017-10-19 Thread Mateusz Mikuła
You can try linking to different version of runtime library [0] like MSVC does by default. [0] https://stackoverflow.com/questions/3402252/how-to-link-against-msvcr90-dll-with-mingw-gcc 2017-10-19 10:54 GMT+02:00 Etienne Sandré-Chardonnal : > Hi, > > I don't think this is a text/binary issue: >

Re: [Mingw-w64-public] _ftelli64 bug

2017-10-19 Thread Etienne Sandré-Chardonnal
Hi, I don't think this is a text/binary issue: - I'm already opening with "rb" - This is random - This only happens when doing concurrent reads - ftell works while _ftelli64 has problems To me this is a race condition in _ftelli64 I have tested the code in MSVC 2015, and the bug is not there

Re: [Mingw-w64-public] _ftelli64 bug

2017-10-19 Thread Kai Tietz via Mingw-w64-public
Hello, I am not quite sure if this is a Windows bug. The API you are using is actually that one from msvcrt.dll for large/none-large file accesses. The most common issue showing this behavior is the TEXT vs. BINARY file open mode on Windows C-runtime. New-lines might be expanded to carriage-retu

[Mingw-w64-public] _ftelli64 bug

2017-10-19 Thread Etienne Sandré-Chardonnal
Dear all, I have a program which reads concurrently multiple files using the C I/O library. I have encountered a problem, _ftelli64 randomly reports an incorrect position, with a mismatch of a few bytes. The bug disappears if any of these changes is done: - ftell is used instead of _ftelli64