Bug 19247

Summary: dump segfaults while dumping a partition
Product: Mageia Reporter: Giuseppe Ghibò <ghibomgx>
Component: RPM PackagesAssignee: All Packagers <pkg-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: thierry.vignaud
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: dump-0.4b45-1.mga6 CVE:
Status comment:

Description Giuseppe Ghibò 2016-08-25 16:53:10 CEST
When dump is used to dump an ext4 partition for instance, it segfaults:

e.g.

dump -0f file.dump /dev/sda2

produces a segfault after a few bytes written. Downgrading cauldron to mga5 dump and rmt packages (dump-0.4b44-7.mga5) would work.
Comment 1 David Walser 2016-08-25 17:16:42 CEST
Would help to get a stack trace with debuginfo installed and also to report this upstream.  Sorry for the regression :o(

We could also check Debian, Gentoo, and Fedora for patches, as they've all updated to this version.

Assignee: bugsquad => pkg-bugs

Comment 2 Giuseppe Ghibò 2016-08-29 13:28:05 CEST
Ok, the segfault with debug is this:

(gdb)   DUMP: SIGSEGV: ABORTING!
bt
#0  0x00007ffff6e072e0 in wait () from /lib64/libc.so.6
#1  0x00000000004080ba in startnewtape (top=top@entry=1) at tape.c:813
#2  0x0000000000404111 in main (argc=<optimized out>, argv=0x7fffffffdae8) at main.c:932
(gdb)
Comment 4 Giuseppe Ghibò 2016-08-29 13:33:53 CEST
I just submitted a package with merged patches.
Comment 5 Giuseppe Ghibò 2016-08-29 14:08:26 CEST
The fixed version no longer segfaults. E.g. you can try this test/benchmark (where in this case /dev/sda2 is an ext4 partition):

dump -0f - /dev/sda2 2>&1> /dev/null | grep "Average transfer"
Comment 6 Thierry Vignaud 2016-08-29 16:54:27 CEST
Closing then as the package has landed

Status: NEW => RESOLVED
CC: (none) => thierry.vignaud
Resolution: (none) => FIXED