qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* qemu-system-m68k: ../hw/scsi/scsi-disk.c:557: scsi_write_data: Assertion `r->req.aiocb == NULL' failed.
@ 2023-08-13  7:46 Waldemar Brodkorb
  2023-08-14 10:56 ` Thomas Huth
  2023-08-16  9:15 ` Philippe Mathieu-Daudé
  0 siblings, 2 replies; 6+ messages in thread
From: Waldemar Brodkorb @ 2023-08-13  7:46 UTC (permalink / raw)
  To: qemu-devel

Hi,

I am using Qemu 8.0.3 and getting this error:
qemu-system-m68k: ../hw/scsi/scsi-disk.c:557: scsi_write_data: Assertion `r->req.aiocb == NULL' failed.

It happens f.e. when I extract the glibc source code inside Linux.
Linux 6.1.44, glibc 2.38 is used for the Linux system.
I am starting qemu this way:
qemu-system-m68k -nographic -M q800 -kernel /home/wbx/openadk/firmware/qemu-m68k-q800_glibc_68040/qemu-m68k-q800-archive-kernel qemu-m68k.img

What can I do about it? Why this is happening on "heavy" I/O usage?

Thanks for any help
 Waldemar



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

* Re: qemu-system-m68k: ../hw/scsi/scsi-disk.c:557: scsi_write_data: Assertion `r->req.aiocb == NULL' failed.
  2023-08-13  7:46 qemu-system-m68k: ../hw/scsi/scsi-disk.c:557: scsi_write_data: Assertion `r->req.aiocb == NULL' failed Waldemar Brodkorb
@ 2023-08-14 10:56 ` Thomas Huth
  2023-08-15 10:26   ` Waldemar Brodkorb
  2023-08-16  9:15 ` Philippe Mathieu-Daudé
  1 sibling, 1 reply; 6+ messages in thread
From: Thomas Huth @ 2023-08-14 10:56 UTC (permalink / raw)
  To: Waldemar Brodkorb, qemu-devel; +Cc: Laurent Vivier, Mark Cave-Ayland

On 13/08/2023 09.46, Waldemar Brodkorb wrote:
> Hi,
> 
> I am using Qemu 8.0.3 and getting this error:
> qemu-system-m68k: ../hw/scsi/scsi-disk.c:557: scsi_write_data: Assertion `r->req.aiocb == NULL' failed.
> 
> It happens f.e. when I extract the glibc source code inside Linux.
> Linux 6.1.44, glibc 2.38 is used for the Linux system.
> I am starting qemu this way:
> qemu-system-m68k -nographic -M q800 -kernel /home/wbx/openadk/firmware/qemu-m68k-q800_glibc_68040/qemu-m68k-q800-archive-kernel qemu-m68k.img
> 
> What can I do about it? Why this is happening on "heavy" I/O usage?

Is it a regression? I.e. did it not happen on older versions of QEMU?

  Thomas




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

* Re: qemu-system-m68k: ../hw/scsi/scsi-disk.c:557: scsi_write_data: Assertion `r->req.aiocb == NULL' failed.
  2023-08-14 10:56 ` Thomas Huth
@ 2023-08-15 10:26   ` Waldemar Brodkorb
  0 siblings, 0 replies; 6+ messages in thread
From: Waldemar Brodkorb @ 2023-08-15 10:26 UTC (permalink / raw)
  To: Thomas Huth
  Cc: Waldemar Brodkorb, qemu-devel, Laurent Vivier, Mark Cave-Ayland

Hi,
Thomas Huth wrote,

> On 13/08/2023 09.46, Waldemar Brodkorb wrote:
> > Hi,
> > 
> > I am using Qemu 8.0.3 and getting this error:
> > qemu-system-m68k: ../hw/scsi/scsi-disk.c:557: scsi_write_data: Assertion `r->req.aiocb == NULL' failed.
> > 
> > It happens f.e. when I extract the glibc source code inside Linux.
> > Linux 6.1.44, glibc 2.38 is used for the Linux system.
> > I am starting qemu this way:
> > qemu-system-m68k -nographic -M q800 -kernel /home/wbx/openadk/firmware/qemu-m68k-q800_glibc_68040/qemu-m68k-q800-archive-kernel qemu-m68k.img
> > 
> > What can I do about it? Why this is happening on "heavy" I/O usage?
> 
> Is it a regression? I.e. did it not happen on older versions of QEMU?

It seems to be a regression. It is the first time I use
qemu-system-m68k to build glibc natively, before that I only running
the uclibc-ng testsuite.

I now tried older releases and 5.2.0 is the first good version.
6.0.0 is crashing again.

best regards
 Waldemar


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

* Re: qemu-system-m68k: ../hw/scsi/scsi-disk.c:557: scsi_write_data: Assertion `r->req.aiocb == NULL' failed.
  2023-08-13  7:46 qemu-system-m68k: ../hw/scsi/scsi-disk.c:557: scsi_write_data: Assertion `r->req.aiocb == NULL' failed Waldemar Brodkorb
  2023-08-14 10:56 ` Thomas Huth
@ 2023-08-16  9:15 ` Philippe Mathieu-Daudé
  2023-08-16 11:30   ` Waldemar Brodkorb
  1 sibling, 1 reply; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-08-16  9:15 UTC (permalink / raw)
  To: Waldemar Brodkorb, qemu-devel; +Cc: qemu-block

Hi Waldemar

On 13/8/23 09:46, Waldemar Brodkorb wrote:
> Hi,
> 
> I am using Qemu 8.0.3 and getting this error:
> qemu-system-m68k: ../hw/scsi/scsi-disk.c:557: scsi_write_data: Assertion `r->req.aiocb == NULL' failed.
> 
> It happens f.e. when I extract the glibc source code inside Linux.
> Linux 6.1.44, glibc 2.38 is used for the Linux system.
> I am starting qemu this way:
> qemu-system-m68k -nographic -M q800 -kernel /home/wbx/openadk/firmware/qemu-m68k-q800_glibc_68040/qemu-m68k-q800-archive-kernel qemu-m68k.img
> 
> What can I do about it? Why this is happening on "heavy" I/O usage?

Cc'ing the qemu-block list.

Do you mind filling a bug report at
https://gitlab.com/qemu-project/qemu/-/issues ?

Regards,

Phil.

> 
> Thanks for any help
>   Waldemar
> 
> 



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

* Re: qemu-system-m68k: ../hw/scsi/scsi-disk.c:557: scsi_write_data: Assertion `r->req.aiocb == NULL' failed.
  2023-08-16  9:15 ` Philippe Mathieu-Daudé
@ 2023-08-16 11:30   ` Waldemar Brodkorb
  2023-08-16 13:35     ` Mark Cave-Ayland
  0 siblings, 1 reply; 6+ messages in thread
From: Waldemar Brodkorb @ 2023-08-16 11:30 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé; +Cc: Waldemar Brodkorb, qemu-devel, qemu-block

Hi,
Philippe Mathieu-Daudé wrote,

> Hi Waldemar
> 
> On 13/8/23 09:46, Waldemar Brodkorb wrote:
> > Hi,
> > 
> > I am using Qemu 8.0.3 and getting this error:
> > qemu-system-m68k: ../hw/scsi/scsi-disk.c:557: scsi_write_data: Assertion `r->req.aiocb == NULL' failed.
> > 
> > It happens f.e. when I extract the glibc source code inside Linux.
> > Linux 6.1.44, glibc 2.38 is used for the Linux system.
> > I am starting qemu this way:
> > qemu-system-m68k -nographic -M q800 -kernel /home/wbx/openadk/firmware/qemu-m68k-q800_glibc_68040/qemu-m68k-q800-archive-kernel qemu-m68k.img
> > 
> > What can I do about it? Why this is happening on "heavy" I/O usage?
> 
> Cc'ing the qemu-block list.
> 
> Do you mind filling a bug report at
> https://gitlab.com/qemu-project/qemu/-/issues ?

Okay, see here:
https://gitlab.com/qemu-project/qemu/-/issues/1831

best regards
 Waldemar


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

* Re: qemu-system-m68k: ../hw/scsi/scsi-disk.c:557: scsi_write_data: Assertion `r->req.aiocb == NULL' failed.
  2023-08-16 11:30   ` Waldemar Brodkorb
@ 2023-08-16 13:35     ` Mark Cave-Ayland
  0 siblings, 0 replies; 6+ messages in thread
From: Mark Cave-Ayland @ 2023-08-16 13:35 UTC (permalink / raw)
  To: Waldemar Brodkorb, Philippe Mathieu-Daudé; +Cc: qemu-devel, qemu-block

On 16/08/2023 12:30, Waldemar Brodkorb wrote:

> Hi,
> Philippe Mathieu-Daudé wrote,
> 
>> Hi Waldemar
>>
>> On 13/8/23 09:46, Waldemar Brodkorb wrote:
>>> Hi,
>>>
>>> I am using Qemu 8.0.3 and getting this error:
>>> qemu-system-m68k: ../hw/scsi/scsi-disk.c:557: scsi_write_data: Assertion `r->req.aiocb == NULL' failed.
>>>
>>> It happens f.e. when I extract the glibc source code inside Linux.
>>> Linux 6.1.44, glibc 2.38 is used for the Linux system.
>>> I am starting qemu this way:
>>> qemu-system-m68k -nographic -M q800 -kernel /home/wbx/openadk/firmware/qemu-m68k-q800_glibc_68040/qemu-m68k-q800-archive-kernel qemu-m68k.img
>>>
>>> What can I do about it? Why this is happening on "heavy" I/O usage?
>>
>> Cc'ing the qemu-block list.
>>
>> Do you mind filling a bug report at
>> https://gitlab.com/qemu-project/qemu/-/issues ?
> 
> Okay, see here:
> https://gitlab.com/qemu-project/qemu/-/issues/1831

Thanks for the bug report! I'm currently working on improving the ESP emulation, so I 
can add your test case to my current suite of test images. My guess is that the write 
interrupt isn't being delayed correctly and so the assert() triggers due to buffer 
underflow.

Please can you upload the binary images to the bug report to allow me to try and 
reproduce this issue? The ESP code tends to be timing sensitive across kernel 
versions and OSs, so without this it will be difficult to reproduce.


ATB,

Mark.



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

end of thread, other threads:[~2023-08-16 13:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-13  7:46 qemu-system-m68k: ../hw/scsi/scsi-disk.c:557: scsi_write_data: Assertion `r->req.aiocb == NULL' failed Waldemar Brodkorb
2023-08-14 10:56 ` Thomas Huth
2023-08-15 10:26   ` Waldemar Brodkorb
2023-08-16  9:15 ` Philippe Mathieu-Daudé
2023-08-16 11:30   ` Waldemar Brodkorb
2023-08-16 13:35     ` Mark Cave-Ayland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).