From: Paolo Bonzini <pbonzini@redhat.com>
To: TC1988 <panie@tiscali.it>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Bug 1181354] [NEW] assert failed in scsi-bus.c line 1539 in SCSI_XFER_NONE
Date: Fri, 17 May 2013 22:15:13 +0200 [thread overview]
Message-ID: <51968FD1.2010805@redhat.com> (raw)
In-Reply-To: <20130517183729.15720.99670.malonedeb@chaenomeles.canonical.com>
Il 17/05/2013 20:37, TC1988 ha scritto:
> Public bug reported:
>
> Every time I format a SCSI hard disk (on ID 0) with Windows NT or DOS,
> QEMU crashes with an assertion failure on scsi-bus.c, any help?
>
> ** Affects: qemu
> Importance: Undecided
> Status: New
>
What SCSI adapter (QEMU command line)?
Please apply this patch and reproduce:
diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c
index c8d2a99..57b0a4b 100644
--- a/hw/scsi/scsi-disk.c
+++ b/hw/scsi/scsi-disk.c
@@ -2234,8 +2234,7 @@ static SCSIRequest *scsi_new_request(SCSIDevice *d, uint32_t tag, uint32_t lun,
}
req = scsi_req_alloc(ops, &s->qdev, tag, lun, hba_private);
-#ifdef DEBUG_SCSI
- DPRINTF("Command: lun=%d tag=0x%x data=0x%02x", lun, tag, buf[0]);
+ printf("Command: lun=%d tag=0x%x data=0x%02x", lun, tag, buf[0]);
{
int i;
for (i = 1; i < req->cmd.len; i++) {
@@ -2243,7 +2242,6 @@ static SCSIRequest *scsi_new_request(SCSIDevice *d, uint32_t tag, uint32_t lun,
}
printf("\n");
}
-#endif
return req;
}
Paolo
next prev parent reply other threads:[~2013-05-17 20:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-17 18:37 [Qemu-devel] [Bug 1181354] [NEW] assert failed in scsi-bus.c line 1539 in SCSI_XFER_NONE TC1988
2013-05-17 18:37 ` [Qemu-devel] [Bug 1181354] " TC1988
2013-05-17 20:15 ` Paolo Bonzini [this message]
2016-09-28 14:21 ` T. Huth
2017-07-25 8:53 ` Thomas Huth
2017-09-24 4:17 ` Launchpad Bug Tracker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51968FD1.2010805@redhat.com \
--to=pbonzini@redhat.com \
--cc=panie@tiscali.it \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).