From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdR3o-000327-Ms for qemu-devel@nongnu.org; Fri, 17 May 2013 16:15:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UdR3n-0003eN-P4 for qemu-devel@nongnu.org; Fri, 17 May 2013 16:15:28 -0400 Received: from mail-ee0-f42.google.com ([74.125.83.42]:59692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdR3n-0003e7-IH for qemu-devel@nongnu.org; Fri, 17 May 2013 16:15:27 -0400 Received: by mail-ee0-f42.google.com with SMTP id c50so2757236eek.15 for ; Fri, 17 May 2013 13:15:26 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <51968FD1.2010805@redhat.com> Date: Fri, 17 May 2013 22:15:13 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20130517183729.15720.99670.malonedeb@chaenomeles.canonical.com> <20130517183729.15720.99670.malonedeb@chaenomeles.canonical.com> In-Reply-To: <20130517183729.15720.99670.malonedeb@chaenomeles.canonical.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Bug 1181354] [NEW] assert failed in scsi-bus.c line 1539 in SCSI_XFER_NONE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: TC1988 Cc: qemu-devel@nongnu.org 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