All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1701974] [NEW] pwrite does not work right under qemu-sh4
@ 2017-07-02 23:32 Bruno Haible
  2017-07-02 23:32 ` [Qemu-devel] [Bug 1701974] " Bruno Haible
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Bruno Haible @ 2017-07-02 23:32 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

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

** Affects: qemu
     Importance: Undecided
         Status: New

** Attachment added: "source code of test program"
   https://bugs.launchpad.net/bugs/1701974/+attachment/4908131/+files/test-pwrite.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/1701974

Title:
  pwrite does not work right under qemu-sh4

Status in QEMU:
  New

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-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

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] [Bug 1701974] Re: pwrite does not work right under qemu-sh4
  2017-07-02 23:32 [Qemu-devel] [Bug 1701974] [NEW] pwrite does not work right under qemu-sh4 Bruno Haible
@ 2017-07-02 23:32 ` Bruno Haible
  2017-07-02 23:36 ` Bruno Haible
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Bruno Haible @ 2017-07-02 23:32 UTC (permalink / raw)
  To: qemu-devel

** Attachment added: "Statically linked compiled test program"
   https://bugs.launchpad.net/qemu/+bug/1701974/+attachment/4908132/+files/test-pwrite

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

Title:
  pwrite does not work right under qemu-sh4

Status in QEMU:
  New

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-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

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] [Bug 1701974] Re: pwrite does not work right under qemu-sh4
  2017-07-02 23:32 [Qemu-devel] [Bug 1701974] [NEW] pwrite does not work right under qemu-sh4 Bruno Haible
  2017-07-02 23:32 ` [Qemu-devel] [Bug 1701974] " Bruno Haible
@ 2017-07-02 23:36 ` Bruno Haible
  2017-08-31 22:02 ` Bruno Haible
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Bruno Haible @ 2017-07-02 23:36 UTC (permalink / raw)
  To: qemu-devel

In case it matters: My host platform is Linux/x86_64.

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

Title:
  pwrite does not work right under qemu-sh4

Status in QEMU:
  New

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-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

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] [Bug 1701974] Re: pwrite does not work right under qemu-sh4
  2017-07-02 23:32 [Qemu-devel] [Bug 1701974] [NEW] pwrite does not work right under qemu-sh4 Bruno Haible
  2017-07-02 23:32 ` [Qemu-devel] [Bug 1701974] " Bruno Haible
  2017-07-02 23:36 ` Bruno Haible
@ 2017-08-31 22:02 ` Bruno Haible
  2017-11-30 10:16 ` John Paul Adrian Glaubitz
  2017-12-15  6:21 ` Bruno Haible
  4 siblings, 0 replies; 6+ messages in thread
From: Bruno Haible @ 2017-08-31 22:02 UTC (permalink / raw)
  To: qemu-devel

The behaviour in qemu-2.10 is the same as in qemu-2.9.

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

Title:
  pwrite does not work right under qemu-sh4

Status in QEMU:
  New

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-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

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] [Bug 1701974] Re: pwrite does not work right under qemu-sh4
  2017-07-02 23:32 [Qemu-devel] [Bug 1701974] [NEW] pwrite does not work right under qemu-sh4 Bruno Haible
                   ` (2 preceding siblings ...)
  2017-08-31 22:02 ` Bruno Haible
@ 2017-11-30 10:16 ` John Paul Adrian Glaubitz
  2017-12-15  6:21 ` Bruno Haible
  4 siblings, 0 replies; 6+ messages in thread
From: John Paul Adrian Glaubitz @ 2017-11-30 10:16 UTC (permalink / raw)
  To: qemu-devel

This might be related to this fix:

>
https://git.qemu.org/?p=qemu.git;a=commit;h=8bf8e9df4a7d82c7a47cc961c9cdee1615595de0

FWIW, if you're interested in sh4, please join #debian-ports on OFTC and
subscribe to the debian-superh mailing list. We're doing lots of sh4
development and testing QEMU in Debian.

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

Title:
  pwrite does not work right under qemu-sh4

Status in QEMU:
  New

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-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

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] [Bug 1701974] Re: pwrite does not work right under qemu-sh4
  2017-07-02 23:32 [Qemu-devel] [Bug 1701974] [NEW] pwrite does not work right under qemu-sh4 Bruno Haible
                   ` (3 preceding siblings ...)
  2017-11-30 10:16 ` John Paul Adrian Glaubitz
@ 2017-12-15  6:21 ` Bruno Haible
  4 siblings, 0 replies; 6+ messages in thread
From: Bruno Haible @ 2017-12-15  6:21 UTC (permalink / raw)
  To: qemu-devel

Works fine in qemu-2.11:
$ ~/inst-qemu/2.11.0/bin/qemu-sh4 test-pwrite
buf = 01W3456789


** Changed in: qemu
       Status: New => Fix Released

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

Title:
  pwrite does not work right under qemu-sh4

Status in QEMU:
  Fix Released

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-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

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-12-15  6:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-02 23:32 [Qemu-devel] [Bug 1701974] [NEW] pwrite does not work right under qemu-sh4 Bruno Haible
2017-07-02 23:32 ` [Qemu-devel] [Bug 1701974] " Bruno Haible
2017-07-02 23:36 ` Bruno Haible
2017-08-31 22:02 ` Bruno Haible
2017-11-30 10:16 ` John Paul Adrian Glaubitz
2017-12-15  6:21 ` Bruno Haible

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.