From: Christoph Groth <christoph@grothesque.org>
To: Goldwyn Rodrigues <rgoldwyn@suse.de>
Cc: Chris Murphy <lists@colorremedies.com>,
Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: gdb log of crashed "btrfs-image -s"
Date: Wed, 18 Jan 2017 21:11:04 +0100 [thread overview]
Message-ID: <87fukgcenb.fsf@grothesque.org> (raw)
In-Reply-To: <ab4eb6a1-f634-6a8d-b260-1a7abf09f6f1@suse.de> (Goldwyn Rodrigues's message of "Wed, 18 Jan 2017 05:49:50 -0600")
[-- Attachment #1.1: Type: text/plain, Size: 452 bytes --]
Goldwyn Rodrigues wrote:
> Thanks Christoph for the backtrace. I am unable to reproduce it,
> but looking at your backtrace, I found a bug. Would you be able
> to give it a try and check if it fixes the problem?
I applied your patch to v4.9, and compiled the static binaries.
Unfortunately, it still segfaults. (Perhaps your fix is correct,
and there's a second problem?) I attach a new backtrace. Do let
me know if I can help in another way.
[-- Attachment #1.2: btrfs-image2.log --]
[-- Type: application/octet-stream, Size: 4392 bytes --]
root@xubuntu:~# gdb /mnt/btrfs-image.static
GNU gdb (Ubuntu 7.11-0ubuntu1) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /mnt/btrfs-image.static...done.
(gdb) run -s -c3 /dev/sda2 /mnt/mim.bim
Starting program: /mnt/btrfs-image.static -s -c3 /dev/sda2 /mnt/mim.bim
[New LWP 2334]
[New LWP 2335]
[New LWP 2336]
[New LWP 2337]
*** Error in `/mnt/btrfs-image.static': double free or corruption (out): 0x0000000000772f70 ***
======= Backtrace: =========
[0x45fba7]
[0x465452]
[0x465c2e]
[0x402694]
[0x402dce]
[0x403201]
[0x405102]
[0x405786]
[0x44cb83]
[0x44ce0e]
[0x400b2a]
======= Memory map: ========
00400000-00521000 r-xp 00000000 08:21 689 /mnt/btrfs-image.static
00721000-00728000 rw-p 00121000 08:21 689 /mnt/btrfs-image.static
00728000-007e4000 rw-p 00000000 00:00 0 [heap]
7fffe0000000-7fffe017e000 rw-p 00000000 00:00 0
7fffe017e000-7fffe4000000 ---p 00000000 00:00 0
7fffe4000000-7fffe4025000 rw-p 00000000 00:00 0
7fffe4025000-7fffe8000000 ---p 00000000 00:00 0
7fffe8000000-7fffe81a6000 rw-p 00000000 00:00 0
7fffe81a6000-7fffec000000 ---p 00000000 00:00 0
7fffec000000-7fffec17c000 rw-p 00000000 00:00 0
7fffec17c000-7ffff0000000 ---p 00000000 00:00 0
7ffff0000000-7ffff019a000 rw-p 00000000 00:00 0
7ffff019a000-7ffff4000000 ---p 00000000 00:00 0
7ffff5ff6000-7ffff5ff7000 rw-p 00000000 00:00 0
7ffff5ff7000-7ffff5ff8000 ---p 00000000 00:00 0
7ffff5ff8000-7ffff67f8000 rw-p 00000000 00:00 0
7ffff67f8000-7ffff67f9000 ---p 00000000 00:00 0
7ffff67f9000-7ffff6ff9000 rw-p 00000000 00:00 0
7ffff6ff9000-7ffff6ffa000 ---p 00000000 00:00 0
7ffff6ffa000-7ffff77fa000 rw-p 00000000 00:00 0
7ffff77fa000-7ffff77fb000 ---p 00000000 00:00 0
7ffff77fb000-7ffff7ffb000 rw-p 00000000 00:00 0
7ffff7ffb000-7ffff7ffd000 r--p 00000000 00:00 0 [vvar]
7ffff7ffd000-7ffff7fff000 r-xp 00000000 00:00 0 [vdso]
7ffffffde000-7ffffffff000 rw-p 00000000 00:00 0 [stack]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Thread 1 "btrfs-image.sta" received signal SIGABRT, Aborted.
0x00000000004521ee in raise ()
(gdb) bt
#0 0x00000000004521ee in raise ()
#1 0x00000000004523ba in abort ()
#2 0x000000000045fbac in __libc_message ()
#3 0x0000000000465452 in malloc_printerr ()
#4 0x0000000000465c2e in _int_free ()
#5 0x0000000000402694 in sanitize_inode_ref (md=md@entry=0x7fffffffde00, eb=eb@entry=0x771ee0, slot=slot@entry=16, ext=ext@entry=0) at image/main.c:522
#6 0x0000000000402dce in sanitize_name (slot=16, key=<synthetic pointer>, src=0x764cf0, dst=0x76bed0 "4\246", <incomplete sequence \367\261>, md=0x7fffffffde00)
at image/main.c:561
#7 zero_items (src=0x764cf0, dst=0x76bed0 "4\246", <incomplete sequence \367\261>, md=<optimized out>) at image/main.c:602
#8 copy_buffer (src=0x764cf0, dst=0x76bed0 "4\246", <incomplete sequence \367\261>, md=<optimized out>) at image/main.c:645
#9 flush_pending (md=md@entry=0x7fffffffde00, done=done@entry=0) at image/main.c:983
#10 0x0000000000403201 in add_extent (start=start@entry=192589824, size=size@entry=4096, md=md@entry=0x7fffffffde00, data=data@entry=0) at image/main.c:1025
#11 0x0000000000405102 in copy_from_extent_tree (path=0x7fffffffe3d0, metadump=0x7fffffffde00) at image/main.c:1280
#12 create_metadump (input=input@entry=0x7fffffffe87f "/dev/sda2", out=out@entry=0x731be0, num_threads=num_threads@entry=4, compress_level=compress_level@entry=3,
sanitize=sanitize@entry=1, walk_trees=walk_trees@entry=0) at image/main.c:1370
#13 0x0000000000405786 in main (argc=<optimized out>, argv=0x7fffffffe618) at image/main.c:2855
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2017-01-18 20:12 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-16 11:10 Unocorrectable errors with RAID1 Christoph Groth
2017-01-16 13:24 ` Austin S. Hemmelgarn
2017-01-16 15:42 ` Christoph Groth
2017-01-16 16:29 ` Austin S. Hemmelgarn
2017-01-17 4:50 ` Janos Toth F.
2017-01-17 12:25 ` Austin S. Hemmelgarn
2017-01-17 9:18 ` Christoph Groth
2017-01-17 12:32 ` Austin S. Hemmelgarn
2017-01-16 22:45 ` Goldwyn Rodrigues
2017-01-17 8:44 ` Christoph Groth
2017-01-17 11:32 ` Goldwyn Rodrigues
2017-01-17 20:25 ` Christoph Groth
2017-01-17 21:52 ` Chris Murphy
2017-01-17 23:10 ` Christoph Groth
2017-01-18 7:13 ` gdb log of crashed "btrfs-image -s" Christoph Groth
2017-01-18 11:49 ` Goldwyn Rodrigues
2017-01-18 20:11 ` Christoph Groth [this message]
2017-01-23 12:09 ` Goldwyn Rodrigues
2017-01-17 22:57 ` Unocorrectable errors with RAID1 Goldwyn Rodrigues
2017-01-17 23:22 ` Christoph Groth
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=87fukgcenb.fsf@grothesque.org \
--to=christoph@grothesque.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=lists@colorremedies.com \
--cc=rgoldwyn@suse.de \
/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.