[Bug 52743] New: regression cannot write to _fdopen'ed stdout
WineHQ Bugzilla
wine-bugs at winehq.org
Mon Mar 28 07:21:15 CDT 2022
https://bugs.winehq.org/show_bug.cgi?id=52743
Bug ID: 52743
Summary: regression cannot write to _fdopen'ed stdout
Product: Wine
Version: 7.5
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs at winehq.org
Reporter: xantares09 at hotmail.com
Distribution: ---
since wine 7.2, opening stdout with _fdopen and printing into it crashes
```
#include <stdio.h>
#include <io.h>
#include <fcntl.h>
int main()
{
FILE * m_stdout = _fdopen(_fileno(stdout), "wb");
fprintf(m_stdout, "foo\n");
fclose(m_stdout);
return 0;
}
$ x86_64-w64-mingw32-gcc main.c
$ wine a.exe
...
wine: Unhandled page fault on read access to 0000000000000050 at address
0000000170059685 (thread 0128), starting debugger...
...
```
For context, this is what qt-xmlpatterns does:
https://github.com/qt/qtxmlpatterns/blob/dev/tools/xmlpatterns/main.cpp#L184
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list