linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: cwillu <cwillu@cwillu.com>
To: Chris Samuel <chris@csamuel.org>
Cc: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: BUG while writing to USB btrfs filesystem
Date: Sun, 30 Jan 2011 21:11:40 -0600	[thread overview]
Message-ID: <AANLkTinFq=EfJDU6EUTGN6J9rP2aw849o+KvGV_C-L4G@mail.gmail.com> (raw)
In-Reply-To: <4D46250D.2090403@csamuel.org>

On Sun, Jan 30, 2011 at 8:57 PM, Chris Samuel <chris@csamuel.org> wrote=
:
> On 31/01/11 12:33, cwillu wrote:
>
>> [33159.490003] kernel BUG at /home/kernel-ppa/COD/linux/fs/btrfs/ino=
de.c:1629!
>
> It looks like this happens when btrfs_drop_extents() returns
> an error, and in the code the only time that seems to happen
> without already calling BUG_ON() is if it runs out of memory
> at the very start:
>
> =A0 =A0 =A0 =A0path =3D btrfs_alloc_path();
> =A0 =A0 =A0 =A0if (!path)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return -ENOMEM;
>
> Is there anything in the log from before that oops ?
>
> NB: I just did a quick scan of btrfs_drop_extents() so it's
> possible I missed something..

There's a bunch of places it could be (any ret =3D foo followed by a
break will exit with that ret rather than oops).

Possibly relevant is that this generally occurs while building a
rootfs in a tmpfs chroot, which gets fairly sizeable (~2gb, on a
machine with 8gb ram).  The previous trace I posted occurred after the
tmpfs was tarred and unmounted, while the tarball was being written
out to a usb card reader, which seems like an odd time for an overly
huge tmpfs to cause trouble.

I've adjusted the job to not use the tmpfs for now, so the chroot is
on btrfs (combined with libeatmydata in order to continue to build
images in 40 minutes rather than 4 hours; dpkg).  We'll see if that
makes a difference.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2011-01-31  3:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-18 22:28 BUG while writing to USB btrfs filesystem cwillu
2011-01-18 23:06 ` cwillu
2011-01-31  1:33   ` cwillu
2011-01-31  2:57     ` Chris Samuel
2011-01-31  3:11       ` cwillu [this message]
2011-01-31  3:35         ` Chris Samuel
2011-01-31  5:18           ` cwillu

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='AANLkTinFq=EfJDU6EUTGN6J9rP2aw849o+KvGV_C-L4G@mail.gmail.com' \
    --to=cwillu@cwillu.com \
    --cc=chris@csamuel.org \
    --cc=linux-btrfs@vger.kernel.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 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).