From: Andre Noll <maan@systemlinux.org>
To: Sage Weil <sage@newdream.net>
Cc: ceph-devel@vger.kernel.org
Subject: Re: osd: terminate called after throwing an instance of 'std::bad_alloc'
Date: Mon, 7 Jun 2010 10:07:54 +0200 [thread overview]
Message-ID: <20100607080754.GU1211@skl-net.de> (raw)
In-Reply-To: <Pine.LNX.4.64.1006040944331.2384@cobra.newdream.net>
[-- Attachment #1: Type: text/plain, Size: 1664 bytes --]
On Fri, Jun 04, 09:48, Sage Weil Wrote
> On Fri, 4 Jun 2010, Andre Noll wrote:
> > On Wed, Jun 02, 11:19, Sage Weil Wrote
> > > Okay, it looks like there is a corrupt PG log. Can you tar up the
> > > $osd_data/current/meta directory, and then 'f 8' and 'p /x info.pgid' from
> > > gdb (to figure out which pg it's loading)?
> >
> > It's in decode_nohead():
> >
> > ...
> > Program received signal SIGABRT, Aborted.
> > [Switching to Thread 0x7ff115b566f0 (LWP 5045)]
> > 0x00007ff1146e9095 in raise () from /lib/libc.so.6
> > (gdb) f 8
> > #8 0x0000000000540920 in PG::read_log (this=0x7ff1104b6460,
> > store=<value optimized out>) at ./include/cstring.h:120
> > 120 _data = new char[_len + 1];
> > (gdb) p /x info.pgid
> > $1 = {v = {preferred = {v = 0xffff}, ps = {v = 0x1bf}, pool = {v = 0x0}}}
>
> The pgid's format like $pool.$ps[p$preferred] (where the preferred bit
> only shows up if >= 0). In hex. So the pgid above is 0.1bf, and the
> corrupted log should be current/meta/pglog_0.1bf_0. If you send me that
> file (off list) I can see what the corruption looks like.
Thanks for the explanation. I'll send it off-list in a minute.
It's 361K large.
> If you want to try to bring the osd up without that pg, you can move that
> pglog file and current/0.1bf to some other temp directory and restart
> cosd.
Did not work. It recreated that file and then crashed for the same
reason. The gdb output is identical, but the file contents have
changed. I'll send the new pglog_0.1bf_0 as well.
Thanks
Andre
--
The only person who always got his work done by Friday was Robinson Crusoe
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2010-06-07 8:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-31 12:51 osd: terminate called after throwing an instance of 'std::bad_alloc' Andre Noll
2010-06-01 17:28 ` Sage Weil
2010-06-02 8:10 ` Andre Noll
2010-06-02 18:19 ` Sage Weil
2010-06-04 8:45 ` Andre Noll
2010-06-04 16:48 ` Sage Weil
2010-06-07 8:07 ` Andre Noll [this message]
[not found] ` <20100607080932.GV1211@skl-net.de>
[not found] ` <Pine.LNX.4.64.1006071016470.20365@cobra.newdream.net>
[not found] ` <20100608122838.GA9152@skl-net.de>
2010-06-09 5:54 ` Sage Weil
2010-06-09 8:16 ` Andre Noll
2010-06-09 17:29 ` Sage Weil
2010-06-14 8:48 ` Andre Noll
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=20100607080754.GU1211@skl-net.de \
--to=maan@systemlinux.org \
--cc=ceph-devel@vger.kernel.org \
--cc=sage@newdream.net \
/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