Bug 1253034

Summary: 'thin_delta -m' fails
Product: Red Hat Enterprise Linux 7 Reporter: Corey Marthaler <cmarthal>
Component: lvm2Assignee: Joe Thornber <thornber>
lvm2 sub component: Thin Provisioning QA Contact: cluster-qe <cluster-qe>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: high    
Priority: high CC: agk, heinzm, jbrassow, msnitzer, ovasik, prajnoha, prockai, thornber, zkabelac
Version: 7.2Keywords: Triaged
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-29 15:28:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1385242    

Description Corey Marthaler 2015-08-12 19:10:37 UTC
Description of problem:
[root@host-111 ~]# thin_delta -m
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct null not valid
Aborted (core dumped)


Core was generated by `thin_delta -m /dev/snapper_thinp/POOL_tmeta'.
Program terminated with signal 6, Aborted.
#0  0x00007fb60cf985d7 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install device-mapper-persistent-data-0.5.4-1.el7.x86_64
(gdb) bt
#0  0x00007fb60cf985d7 in raise () from /lib64/libc.so.6
#1  0x00007fb60cf99cc8 in abort () from /lib64/libc.so.6
#2  0x00007fb60dcc99d5 in __gnu_cxx::__verbose_terminate_handler() () from /lib64/libstdc++.so.6
#3  0x00007fb60dcc7946 in ?? () from /lib64/libstdc++.so.6
#4  0x00007fb60dcc7973 in std::terminate() () from /lib64/libstdc++.so.6
#5  0x00007fb60dcc7b93 in __cxa_throw () from /lib64/libstdc++.so.6
#6  0x00007fb60dd1c757 in std::__throw_logic_error(char const*) () from /lib64/libstdc++.so.6
#7  0x00007fb60dd285a1 in char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) ()
   from /lib64/libstdc++.so.6
#8  0x00007fb60dd28958 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) ()
   from /lib64/libstdc++.so.6
#9  0x00000000004bb7db in thin_delta_main(int, char**) ()
#10 0x00000000004075ef in base::application::run(int, char**) ()
#11 0x00000000004067d5 in main ()



Version-Release number of selected component (if applicable):
3.10.0-302.el7.x86_64

lvm2-2.02.127-1.el7    BUILT: Mon Aug 10 03:22:35 CDT 2015
lvm2-libs-2.02.127-1.el7    BUILT: Mon Aug 10 03:22:35 CDT 2015
lvm2-cluster-2.02.127-1.el7    BUILT: Mon Aug 10 03:22:35 CDT 2015
device-mapper-1.02.104-1.el7    BUILT: Mon Aug 10 03:22:35 CDT 2015
device-mapper-libs-1.02.104-1.el7    BUILT: Mon Aug 10 03:22:35 CDT 2015
device-mapper-event-1.02.104-1.el7    BUILT: Mon Aug 10 03:22:35 CDT 2015
device-mapper-event-libs-1.02.104-1.el7    BUILT: Mon Aug 10 03:22:35 CDT 2015
device-mapper-persistent-data-0.5.4-1.el7    BUILT: Fri Jul 17 08:56:22 CDT 2015
cmirror-2.02.127-1.el7    BUILT: Mon Aug 10 03:22:35 CDT 2015
sanlock-3.2.4-1.el7    BUILT: Fri Jun 19 12:48:49 CDT 2015
sanlock-lib-3.2.4-1.el7    BUILT: Fri Jun 19 12:48:49 CDT 2015
lvm2-lockd-2.02.127-1.el7    BUILT: Mon Aug 10 03:22:35 CDT 2015

Comment 1 Corey Marthaler 2017-03-29 15:28:34 UTC
This works now. Closing...

[root@host-073 ~]# thin_delta -m
No input device provided.
Usage: thin_delta [options] <device or file>
Options:
  {--thin1, --snap1}
  {--thin2, --snap2}
  {-m, --metadata-snap} [block#]
  {--verbose}
  {-h|--help}
  {-V|--version}


3.10.0-629.el7.x86_64
lvm2-2.02.169-1.el7    BUILT: Tue Mar 28 10:42:01 CDT 2017
lvm2-libs-2.02.169-1.el7    BUILT: Tue Mar 28 10:42:01 CDT 2017
lvm2-cluster-2.02.169-1.el7    BUILT: Tue Mar 28 10:42:01 CDT 2017
device-mapper-1.02.138-1.el7    BUILT: Tue Mar 28 10:42:01 CDT 2017
device-mapper-libs-1.02.138-1.el7    BUILT: Tue Mar 28 10:42:01 CDT 2017
device-mapper-event-1.02.138-1.el7    BUILT: Tue Mar 28 10:42:01 CDT 2017
device-mapper-event-libs-1.02.138-1.el7    BUILT: Tue Mar 28 10:42:01 CDT 2017
device-mapper-persistent-data-0.7.0-0.1.rc6.el7    BUILT: Mon Mar 27 10:15:46 CDT 2017