All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ilya Shar <ilya_shar@yahoo.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Help with gdb on Mac OS
Date: Sun, 11 Feb 2007 22:54:44 -0800 (PST)	[thread overview]
Message-ID: <103570.87635.qm@web62001.mail.re1.yahoo.com> (raw)

I am trying to step through i386-darwin-user/qemu-i386
in gdb but I am getting a KERN_PROTECTION_FAILURE
fairly early in the run: 

(gdb) run /bin/ls
Starting program:
/Users/ilya/tmp/feb11/qemu-0.9.0/i386-darwin-user/qemu-i386
/bin/ls
Reading symbols for shared libraries . done
Starting /bin/ls with qemu
----------------

Program received signal EXC_BAD_ACCESS, Could not
access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x2115eaf5
helper_cmpxchg8b () at ../cpu-all.h:344
344         ((uint32_t *)ptr)[0] = x.p[0];
(gdb) 

The offending value of ptr is misalligned, can this
indicate a problem?  Reducing optimization or setting
-g3 doesn't change this behavior.  Strangely, the same
example runs fine without gdb. 

Is there any way to correct the gdb problem?  I am
using gdb 6.3 on Mac OS Intel with QEMU 0.9.0 and
patches for gcc4/Mac posted by Mike Kronenberg.  

Thanks for your help, 
Ilya 



 
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121

             reply	other threads:[~2007-02-12  6:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-12  6:54 Ilya Shar [this message]
2007-02-12 10:17 ` [Qemu-devel] Help with gdb on Mac OS Pierre d'Herbemont

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=103570.87635.qm@web62001.mail.re1.yahoo.com \
    --to=ilya_shar@yahoo.com \
    --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.