Description of problem: When print-backtrace.sh tried with older cpio version, we failed to get proper call trace as cpio 2.11 or older version seems to be not having -D or --directory option. Version-Release number of selected component (if applicable): # cpio --version How reproducible: Frequently Steps to Reproduce: 1. Get print-backtrace.sh script 2. Use RHEL 6/7 having cpio version 2.11 or less 3. Run # sh print-backtrace.sh /root/01966985/glusterfs-debuginfo-3.8.4-18.el7.x86_64.rpm bt.log Actual results: cpio command failing with unrecognised error Expected results: print-backtrace.sh should work with all cpio version Additional info: # sh print-backtrace.sh /root/01966985/glusterfs-debuginfo-3.8.4-18.el7.x86_64.rpm bt.log cpio: unrecognized option '--directory=glusterfs-debuginfo-3.8.4-18.el7.x86_64' Try `cpio --help' or `cpio --usage' for more information. eu-addr2line: /root/01966985/glusterfs-debuginfo-3.8.4-18.el7.x86_64/usr/lib/debug/usr/lib64/glusterfs/3.8.4/xlator/features/locks.so.debug: No such file or directory /usr/lib64/glusterfs/3.8.4/xlator/features/locks.so(+0x18905)[0x7f9ec991b905] eu-addr2line: /root/01966985/glusterfs-debuginfo-3.8.4-18.el7.x86_64/usr/lib/debug/usr/lib64/glusterfs/3.8.4/xlator/features/locks.so.debug: No such file or directory /usr/lib64/glusterfs/3.8.4/xlator/features/locks.so(+0x15722)[0x7f9ec9918722] eu-addr2line: /root/01966985/glusterfs-debuginfo-3.8.4-18.el7.x86_64/usr/lib/debug/usr/lib64/glusterfs/3.8.4/xlator/protocol/server.so.debug: No such file or directory /usr/lib64/glusterfs/3.8.4/xlator/protocol/server.so(+0xfc28)[0x7f9ec3dc7c28] eu-addr2line: /root/01966985/glusterfs-debuginfo-3.8.4-18.el7.x86_64/usr/lib/debug/usr/lib64/glusterfs/3.8.4/xlator/protocol/server.so.debug: No such file or directory /usr/lib64/glusterfs/3.8.4/xlator/protocol/server.so(+0x7d70)[0x7f9ec3dbfd70] eu-addr2line: /root/01966985/glusterfs-debuginfo-3.8.4-18.el7.x86_64/usr/lib/debug/usr/lib64/glusterfs/3.8.4/rpc-transport/socket.so.debug: No such file or directory /usr/lib64/glusterfs/3.8.4/rpc-transport/socket.so(+0x9754)[0x7f9ecd57d754] eu-addr2line: /root/01966985/glusterfs-debuginfo-3.8.4-18.el7.x86_64/usr/lib/debug/lib64/libglusterfs.so.0.debug: No such file or directory /lib64/libglusterfs.so.0(+0x83770)[0x7f9ed8d1d770]
Patch submitted : https://review.gluster.org/#/c/18696/
looks fine. Just that the bug id is given from RHGS, instead of community project GlusterFS.
COMMIT: https://review.gluster.org/18696 committed in master by with a commit message- extras/devel-tools: Fix print-backtrace script Problem: If cpio version is less 2.11 then cpio command failing with unrecognised option --directory. Solution: Check the cpio version and run rpm2cpio/cpio with or without -D or --directory option. Fixes : #359 Change-Id: Ibd440207231807dab1b58291ab661857094f1a4a BUG: 1510874 Signed-off-by: Prashant D <pdhange>
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-4.0.0, please open a new bug report. glusterfs-4.0.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://lists.gluster.org/pipermail/announce/2018-March/000092.html [2] https://www.gluster.org/pipermail/gluster-users/