From: Stefan Hajnoczi <stefanha@gmail.com>
To: Vasiliy Tolstov <v.tolstov@selfip.ru>
Cc: Kevin Wolf <kwolf@redhat.com>,
Teruaki Ishizaki <ishizaki.teruaki@lab.ntt.co.jp>,
Hitoshi Mitake <mitake.hitoshi@gmail.com>,
Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>,
Jeff Cody <jcody@redhat.com>,
qemu-devel@nongnu.org, sheepdog-ng@googlegroups.com,
morita.kazutaka@gmail.com, Stefan Hajnoczi <stefanha@redhat.com>,
Liu Yuan <namei.unix@gmail.com>,
sheepdog@lists.wpkg.org
Subject: Re: [Qemu-devel] [sheepdog] [PATCH] sheepdog: fix overlapping metadata update
Date: Mon, 10 Aug 2015 11:44:22 +0100 [thread overview]
Message-ID: <20150810104422.GF31433@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <CACaajQt9tTP3GbD-ySmnGi0m8CGggwFT-fUkd8Z2mGvqn-3bTQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1353 bytes --]
On Sun, Aug 09, 2015 at 05:03:14PM +0300, Vasiliy Tolstov wrote:
> 2015-08-05 21:58 GMT+03:00 Jeff Cody <jcody@redhat.com>:
> > Hi Vasiliy,
> >
> > If you run configure with --disable-strip, it will not strip the
> > debugging symbols from the binary after the build. Then, you can run
> > gdb on qemu, and do a backtrace after you hit the segfault ('bt').
> > That may shed some light, and is a good place to start.
>
>
> I'm try to debug (disable-strip), but i'm start vps from libvirt (i'm
> add -s flag to qemu, to start gdb), but when i'm attach to remote
> session,qemu aready dies, or all works fine.
> does it possible to determine by this dmesg what happening in qemu
> binary with debug symbols?
> qemu-system-x86[34046]: segfault at 401364 ip 00007f33f52a1ff8 sp
> 00007f3401ecad30 error 4 in qemu-system-x86_64[7f33f4efd000+518000]
-s launches QEMU's gdbstub for *guest* debugging. It allows you to see
the CPU and memory state inside the guest. It won't help you debug this
segfault.
Since the problem you encountered is a *QEMU* segfault, you need to use
*host* GDB on the QEMU process instead.
I'm not sure if libvirt sets the RLIMIT_CORE rlimit for the QEMU process
(which could disable coredumps), but if your host uses systemd you may
be able to inspect the coredump with gdb using coredumpctl(1).
[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2015-08-10 11:40 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-29 4:02 [Qemu-devel] [PATCH] sheepdog: fix overlapping metadata update Liu Yuan
2015-07-29 5:04 ` [Qemu-devel] [sheepdog] " Hitoshi Mitake
2015-07-29 9:31 ` Liu Yuan
2015-07-30 6:41 ` Vasiliy Tolstov
2015-07-30 9:13 ` Liu Yuan
2015-07-30 9:29 ` Vasiliy Tolstov
2015-07-30 13:27 ` Jeff Cody
2015-07-31 11:55 ` Vasiliy Tolstov
2015-07-31 12:08 ` Vasiliy Tolstov
2015-08-02 2:06 ` Liu Yuan
2015-08-02 11:52 ` Vasiliy Tolstov
2015-08-02 12:07 ` Vasiliy Tolstov
2015-08-03 0:41 ` Liu Yuan
2015-08-04 8:07 ` Vasiliy Tolstov
2015-08-05 18:58 ` Jeff Cody
2015-08-09 14:03 ` Vasiliy Tolstov
2015-08-10 10:44 ` Stefan Hajnoczi [this message]
2015-08-03 2:01 ` Liu Yuan
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=20150810104422.GF31433@stefanha-thinkpad.redhat.com \
--to=stefanha@gmail.com \
--cc=ishizaki.teruaki@lab.ntt.co.jp \
--cc=jcody@redhat.com \
--cc=kwolf@redhat.com \
--cc=mitake.hitoshi@gmail.com \
--cc=mitake.hitoshi@lab.ntt.co.jp \
--cc=morita.kazutaka@gmail.com \
--cc=namei.unix@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=sheepdog-ng@googlegroups.com \
--cc=sheepdog@lists.wpkg.org \
--cc=stefanha@redhat.com \
--cc=v.tolstov@selfip.ru \
/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).