Bug 1452198

Summary: [gluster-block]:Segmentation fault when cancelling the executed gluster-block command
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: surabhi <sbhaloth>
Component: tcmu-runnerAssignee: Prasanna Kumar Kalever <prasanna.kalever>
Status: CLOSED ERRATA QA Contact: surabhi <sbhaloth>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: rhgs-3.3CC: amukherj, rhs-bugs
Target Milestone: ---   
Target Release: RHGS 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tcmu-runner-1.2.0-3.el7rhgs Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-21 04:19:33 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: 1417151    

Description surabhi 2017-05-18 14:12:22 UTC
Description of problem:
*************************

If the gluster-block cli hangs for a while and I do ctrl-C , there is segmentation fault and core dumped.

May 17 16:42:28 dhcp46-60 kernel: tcmu-runner[24765]: segfault at 800088 ip 00007f7342ea611c sp 00007ffdf01aa5d0 error 4 in libtcmu.so.1[7f7342e96000+16000]
May 17 16:42:28 dhcp46-60 abrt-hook-ccpp: Process 24765 (tcmu-runner) of user 0 killed by SIGSEGV - dumping core


Version-Release number of selected component (if applicable):
gluster-block-0.2-1.x86_64
tcmu-runner-1.2.0-2.el7rhgs.x86_64

How reproducible:
Always

Steps to Reproduce:
1.Execute a gluster-block create command
2.if it takes time to succeed , execute ctrl-C


Actual results:
***********************
There is segmentation fault and core dump when cancelling the executed command.


Expected results:

there should not be any fault or core dump when cancelling the command.


Additional info:

Comment 2 Prasanna Kumar Kalever 2017-05-21 10:27:26 UTC
related patch:
https://github.com/open-iscsi/tcmu-runner/pull/158

Comment 6 surabhi 2017-06-13 07:09:23 UTC
Following the steps below, not seeing any issues w.r.t segmentation fault.

1.Execute a gluster-block create command
2.if it takes time to succeed , execute ctrl-C

Marking the BZ to verified.

Build version :
gluster-block-0.2.1-1.el7rhgs.x86_64
tcmu-runner-1.2.0-4.el7rhgs.x86_64

Comment 9 errata-xmlrpc 2017-09-21 04:19:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:2773