All of lore.kernel.org
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Ralph Gauges <ralphgauges@googlemail.com>,
	"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: segmentation fault in btrfs tool v4.15
Date: Fri, 9 Feb 2018 15:34:16 +0800	[thread overview]
Message-ID: <54be9660-0236-576c-87e7-f07862a02244@gmx.com> (raw)
In-Reply-To: <0e0755f1-b97e-1256-5a7f-231c2e851b1b@googlemail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1563 bytes --]



On 2018年02月09日 15:23, Ralph Gauges wrote:
> Hi Qu,
> 
> I applied the patch to the sources of v4.15 and ran it in gdb. This is
> the result.
> 
> (gdb) set args check /dev/sdf1
> (gdb) run
> Starting program: /home/gauges/Applications/bin/btrfs check /dev/sdf1
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> parent transid verify failed on 266195058688 wanted 1857 found 1864
> parent transid verify failed on 266195058688 wanted 1857 found 1864
> parent transid verify failed on 266195058688 wanted 1857 found 1864
> parent transid verify failed on 266195058688 wanted 1857 found 1864
> Ignoring transid failure
> ERROR: child eb corrupted: parent bytenr=247283269632 item=23 parent
> level=1 child level=2
> ERROR: cannot open file system
> [Inferior 1 (process 7149) exited with code 01]
> 
> 
> So obviously it does not crash any more. Thanks.
> Since you are an expert on the btrfs filesystem, any hints as to how I
> could fix my backup
> partition?

Guys in mail list may have better ideas, CCed to mail list.

In fact the problem all happens in extent tree, may be we could salvage
something by RO mount it?

If kernel can't mount it even RO, then "btrfs restore" may be your last
chance.

Thanks,
Qu

> This output from btrfs seems to suggest that "btrfs check"
> can't handle this error?!
> Or this this last error something else that didn't show up so far
> because of the segfault?
> 
> Thanks
> 
> Ralph
> 
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 520 bytes --]

      parent reply	other threads:[~2018-02-09  7:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-06  7:56 segmentation fault in btrfs tool v4.15 Ralph Gauges
2018-02-06  8:04 ` Qu Wenruo
     [not found]   ` <15274509-75d4-af47-46ea-8ac048b58ba9@googlemail.com>
     [not found]     ` <31d87507-982c-b735-9f3a-9fbad4d247e2@gmx.com>
     [not found]       ` <c525bb95-1a17-c01e-4c15-f89a6cc68c6e@googlemail.com>
     [not found]         ` <6bb438c5-811d-d7b8-f551-a1a08be321c5@gmx.com>
     [not found]           ` <b0b40b12-1130-ad31-6ff0-e0b674a71691@googlemail.com>
     [not found]             ` <0f66e50a-520d-f565-0d2d-2411d480da05@gmx.com>
     [not found]               ` <adbe7eae-268d-fffd-4bc4-e724e26ab584@googlemail.com>
     [not found]                 ` <bfb10542-2bd3-5926-f8ac-036eef890a29@gmx.com>
     [not found]                   ` <0e0755f1-b97e-1256-5a7f-231c2e851b1b@googlemail.com>
2018-02-09  7:34                     ` Qu Wenruo [this message]

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=54be9660-0236-576c-87e7-f07862a02244@gmx.com \
    --to=quwenruo.btrfs@gmx.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=ralphgauges@googlemail.com \
    /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.