pwrite does not work right under qemu-sh4
Bug #1701974 reported by
Bruno Haible
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The pwrite system call has no effect when writing to a non-zero file position, in a program running under qemu-sh4 (version 2.9.0).
How to reproduce:
- Compile the program:
sh4-linux-
- Set environment variable for using qemu-sh4 (actually not needed, since the program is statically linked here).
- ~/inst-
Expected output:
buf = 01W3456789
Actual output:
buf = 0123456789
test-pwrite.c:56: assertion 'strcmp ("01W3456789",buf) == 0' failed
qemu: uncaught target signal 6 (Aborted) - core dumped
To post a comment you must log in.
In case it matters: My host platform is Linux/x86_64.