summary refs log tree commit diff stats
path: root/results/scraper/launchpad-without-comments/1701974
diff options
context:
space:
mode:
Diffstat (limited to 'results/scraper/launchpad-without-comments/1701974')
-rw-r--r--results/scraper/launchpad-without-comments/170197417
1 files changed, 17 insertions, 0 deletions
diff --git a/results/scraper/launchpad-without-comments/1701974 b/results/scraper/launchpad-without-comments/1701974
new file mode 100644
index 00000000..cea75a55
--- /dev/null
+++ b/results/scraper/launchpad-without-comments/1701974
@@ -0,0 +1,17 @@
+pwrite does not work right under qemu-sh4
+
+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-gnu-gcc-5 -O -Wall -static -o test-pwrite test-pwrite.c
+- Set environment variable for using qemu-sh4 (actually not needed, since the program is statically linked here).
+- ~/inst-qemu/2.9.0/bin/qemu-sh4 test-pwrite
+
+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
\ No newline at end of file