All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thiemo Seufer <ths@networkno.de>
To: qemu-devel@nongnu.org
Cc: Juergen Lock <nox@jelal.kn-bremen.de>
Subject: Re: [Qemu-devel] found one tcg `bug' (was: testing r4764 svn from 2008-06-20 18:25:56 +0200 on FreeBSD)
Date: Wed, 2 Jul 2008 21:49:48 +0100	[thread overview]
Message-ID: <20080702204948.GF7007@networkno.de> (raw)
In-Reply-To: <20080702200447.GA17144@saturn.kn-bremen.de>

Juergen Lock wrote:
[snip]
> >  (Memory corruption, right?)  I've put the end of a in_asm,out_asm log up at
> > 	http://people.freebsd.org/~nox/qemu/tcgbug-i386host.log.txt
> > (its long.)  That function is MD5Transform() in:
> > 	http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/md5c.c?annotate=1.27
> > in the FreeBSD 7.0 amd64 kernel on
> > 	ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-amd64/7.0/7.0-RELEASE-amd64-livefs.iso
> > (the bootonly most likely will fail in the same way:
> > 	ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-amd64/7.0/7.0-RELEASE-amd64-bootonly.iso
> > , you can go to
> > 	http://mirrorlist.freebsd.org/
> > to find a mirror near you, search for ISOs.)
> 
> Well, I finally got around looking at this again, and found the cause
> wasn't exactly a bug, just a too low constant:
> 
> Index: qemu/exec-all.h
> @@ -30,7 +30,7 @@
>  struct TranslationBlock;
>  
>  /* XXX: make safe guess about sizes */
> -#define MAX_OP_PER_INSTR 64
> +#define MAX_OP_PER_INSTR 128
>  /* A Call op needs up to 6 + 2N parameters (N = number of arguments).  */
>  #define MAX_OPC_PARAM 10
>  #define OPC_BUF_SIZE 512
> 
>  With this I can at least boot into fixit and run find /dist (I didn't
> test an actual install.)

Were you able to isolate the offending instruction? With more than 64
ops it should probably use a helper function.


Thiemo

  reply	other threads:[~2008-07-02 20:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-20 23:02 [Qemu-devel] testing r4764 svn from 2008-06-20 18:25:56 +0200 on FreeBSD Juergen Lock
2008-07-02 20:04 ` [Qemu-devel] found one tcg `bug' (was: testing r4764 svn from 2008-06-20 18:25:56 +0200 on FreeBSD) Juergen Lock
2008-07-02 20:49   ` Thiemo Seufer [this message]
2008-07-02 21:19     ` Juergen Lock

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=20080702204948.GF7007@networkno.de \
    --to=ths@networkno.de \
    --cc=nox@jelal.kn-bremen.de \
    --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 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.