qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [Bug 1701973] [NEW] pread does not work right under qemu-sh


From: Bruno Haible
Subject: [Qemu-devel] [Bug 1701973] [NEW] pread does not work right under qemu-sh4
Date: Sun, 02 Jul 2017 23:22:27 -0000

Public bug reported:

The pread system call returns a wrong value in some case, 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-pread test-pread.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-pread

Expected output:
ret=1 errno=0

Actual output:
ret=0 errno=2
test-pread.c:44: assertion 'ret == 1' failed
qemu: uncaught target signal 6 (Aborted) - core dumped

** Affects: qemu
     Importance: Undecided
         Status: New

** Attachment added: "source code of test program"
   
https://bugs.launchpad.net/bugs/1701973/+attachment/4908129/+files/test-pread.c

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1701973

Title:
  pread does not work right under qemu-sh4

Status in QEMU:
  New

Bug description:
  The pread system call returns a wrong value in some case, 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-pread test-pread.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-pread

  Expected output:
  ret=1 errno=0

  Actual output:
  ret=0 errno=2
  test-pread.c:44: assertion 'ret == 1' failed
  qemu: uncaught target signal 6 (Aborted) - core dumped

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1701973/+subscriptions



reply via email to

[Prev in Thread] Current Thread [Next in Thread]