Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
app-arch/dump: restore are corrupted!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
vm666
n00b
n00b


Joined: 24 Oct 2003
Posts: 56

PostPosted: Thu May 26, 2011 7:22 am    Post subject: app-arch/dump: restore are corrupted! Reply with quote

I have a serious problem with dump/restore.
I dumped a partition with
Code:
dump -0 -b 1024 -f /xxx -u -A /xxx.toc /dev/yyy

Now when I try to restore it with
Code:
restore  -r  -f /xxx -l -v
, some of the restore files are corrupted: they contain blocks from other files (for example, messages in Claws-Mail are not in the right directory or are truncated before the end) or what looks like random crap (actually parts of other compressed files I think).
Finally, restore aborts with
Code:

*** buffer overflow detected ***: restore terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x7fca06b5ed97]
/lib64/libc.so.6(+0xe5c10)[0x7fca06b5cc10]
/lib64/libc.so.6(+0xe4a94)[0x7fca06b5ba94]
restore[0x40c480]
restore[0x40eab9]
restore[0x40fb54]
restore[0x408fd0]
restore[0x407c49]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x7fca06a95d2d]
restore[0x4033d9]
======= Memory map: ========
00400000-0041a000 r-xp 00000000 08:11 12734380                           /usr/sbin/restore
00619000-0061a000 r--p 00019000 08:11 12734380                           /usr/sbin/restore
0061a000-0061d000 rw-p 0001a000 08:11 12734380                           /usr/sbin/restore
0061d000-0065b000 rw-p 00000000 00:00 0
00a3f000-041ef000 rw-p 00000000 00:00 0                                  [heap]
7fca04468000-7fca0447e000 r-xp 00000000 08:11 1705516                    /lib64/libgcc_s.so.1
7fca0447e000-7fca0467d000 ---p 00016000 08:11 1705516                    /lib64/libgcc_s.so.1
7fca0467d000-7fca0467e000 r--p 00015000 08:11 1705516                    /lib64/libgcc_s.so.1
7fca0467e000-7fca0467f000 rw-p 00016000 08:11 1705516                    /lib64/libgcc_s.so.1
7fca0467f000-7fca06201000 rw-p 00000000 00:00 0
7fca06201000-7fca06203000 r-xp 00000000 08:11 26253                      /lib64/libdl-2.12.2.so
7fca06203000-7fca06403000 ---p 00002000 08:11 26253                      /lib64/libdl-2.12.2.so
7fca06403000-7fca06404000 r--p 00002000 08:11 26253                      /lib64/libdl-2.12.2.so
7fca06404000-7fca06405000 rw-p 00003000 08:11 26253                      /lib64/libdl-2.12.2.so
7fca06405000-7fca0641c000 r-xp 00000000 08:11 26281                      /lib64/libpthread-2.12.2.so
7fca0641c000-7fca0661c000 ---p 00017000 08:11 26281                      /lib64/libpthread-2.12.2.so
7fca0661c000-7fca0661d000 r--p 00017000 08:11 26281                      /lib64/libpthread-2.12.2.so
7fca0661d000-7fca0661e000 rw-p 00018000 08:11 26281                      /lib64/libpthread-2.12.2.so
7fca0661e000-7fca06622000 rw-p 00000000 00:00 0
7fca06622000-7fca0666e000 r-xp 00000000 08:11 13258629                   /lib64/libncurses.so.5.7
7fca0666e000-7fca0686d000 ---p 0004c000 08:11 13258629                   /lib64/libncurses.so.5.7
7fca0686d000-7fca06871000 r--p 0004b000 08:11 13258629                   /lib64/libncurses.so.5.7
7fca06871000-7fca06872000 rw-p 0004f000 08:11 13258629                   /lib64/libncurses.so.5.7
7fca06872000-7fca06873000 rw-p 00000000 00:00 0
7fca06873000-7fca06876000 r-xp 00000000 08:11 12733662                   /lib64/libcom_err.so.2.1
7fca06876000-7fca06a75000 ---p 00003000 08:11 12733662                   /lib64/libcom_err.so.2.1
7fca06a75000-7fca06a76000 r--p 00002000 08:11 12733662                   /lib64/libcom_err.so.2.1
7fca06a76000-7fca06a77000 rw-p 00003000 08:11 12733662                   /lib64/libcom_err.so.2.1
7fca06a77000-7fca06bd3000 r-xp 00000000 08:11 26315                      /lib64/libc-2.12.2.so
7fca06bd3000-7fca06dd3000 ---p 0015c000 08:11 26315                      /lib64/libc-2.12.2.so
7fca06dd3000-7fca06dd7000 r--p 0015c000 08:11 26315                      /lib64/libc-2.12.2.so
7fca06dd7000-7fca06dd8000 rw-p 00160000 08:11 26315                      /lib64/libc-2.12.2.so
7fca06dd8000-7fca06ddd000 rw-p 00000000 00:00 0
7fca06ddd000-7fca06dec000 r-xp 00000000 08:11 12983869                   /lib64/libbz2.so.1.0.6
7fca06dec000-7fca06fec000 ---p 0000f000 08:11 12983869                   /lib64/libbz2.so.1.0.6
7fca06fec000-7fca06fed000 r--p 0000f000 08:11 12983869                   /lib64/libbz2.so.1.0.6
7fca06fed000-7fca06fee000 rw-p 00010000 08:11 12983869                   /lib64/libbz2.so.1.0.6
7fca06fee000-7fca07004000 r-xp 00000000 08:11 12986302                   /lib64/libz.so.1.2.5
7fca07004000-7fca07204000 ---p 00016000 08:11 12986302                   /lib64/libz.so.1.2.5
7fca07204000-7fca07205000 r--p 00016000 08:11 12986302                   /lib64/libz.so.1.2.5
7fca07205000-7fca07206000 rw-p 00017000 08:11 12986302                   /lib64/libz.so.1.2.5
7fca07206000-7fca07242000 r-xp 00000000 08:11 12739005                   /lib64/libreadline.so.6.1
7fca07242000-7fca07441000 ---p 0003c000 08:11 12739005                   /lib64/libreadline.so.6.1
7fca07441000-7fca07443000 r--p 0003b000 08:11 12739005                   /lib64/libreadline.so.6.1
7fca07443000-7fca07449000 rw-p 0003d000 08:11 12739005                   /lib64/libreadline.so.6.1
7fca07449000-7fca0744b000 rw-p 00000000 00:00 0
7fca0744b000-7fca07451000 r-xp 00000000 08:11 12990595                   /lib64/libe2p.so.2.3
7fca07451000-7fca07650000 ---p 00006000 08:11 12990595                   /lib64/libe2p.so.2.3
7fca07650000-7fca07651000 r--p 00005000 08:11 12990595                   /lib64/libe2p.so.2.3
7fca07651000-7fca07652000 rw-p 00006000 08:11 12990595                   /lib64/libe2p.so.2.3
7fca07652000-7fca07680000 r-xp 00000000 08:11 12990599                   /lib64/libext2fs.so.2.4
7fca07680000-7fca0787f000 ---p 0002e000 08:11 12990599                   /lib64/libext2fs.so.2.4
7fca0787f000-7fca07880000 r--p 0002d000 08:11 12990599                   /lib64/libext2fs.so.2.4
7fca07880000-7fca07881000 rw-p 0002e000 08:11 12990599                   /lib64/libext2fs.so.2.4
7fca07881000-7fca0789f000 r-xp 00000000 08:11 26314                      /lib64/ld-2.12.2.so
7fca07a4f000-7fca07a55000 rw-p 00000000 00:00 0
7fca07a9b000-7fca07a9e000 rw-p 00000000 00:00 0
7fca07a9e000-7fca07a9f000 r--p 0001d000 08:11 26314                      /lib64/ld-2.12.2.so
7fca07a9f000-7fca07aa0000 rw-p 0001e000 08:11 26314                      /lib64/ld-2.12.2.so
7fca07aa0000-7fca07aa1000 rw-p 00000000 00:00 0
7fffff82e000-7fffff850000 rw-p 00000000 00:00 0                          [stack]
7fffff9c4000-7fffff9c5000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted


I was running app-arch/dump-0.4.41. Just in case, I unmask app-arch/dump-0.4.43, it does not work better.
I tried on a different machine, the result is similar.
I ran two new dumps on another machine (with 0.4.43), checked them with restore -C. There were thousands of errors, but they all look rather innocuous: flags changed, ENOENT on /dev (this should not have been dumped, by the way).

Any idea on what is happening and how I can salvage the data and avoid this horror in the future?

NB: the original file system was ext4. sys-fs/e2fsprogs & sys-libs/e2fsprogs-libs are at version 1.41.12
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum