Bug 587526

Summary: ccs_sync SIGABRTs when called with non-existing cluster node
Product: Red Hat Enterprise Linux 6 Reporter: Ingvar Hagelund <ingvar>
Component: ricciAssignee: Chris Feist <cfeist>
Status: CLOSED CURRENTRELEASE QA Contact: Cluster QE <mspqa-list>
Severity: low Docs Contact:
Priority: low    
Version: 6.0CC: cluster-maint, djansa
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ricci-0.16.2-6.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-15 14:44:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to fix bz none

Description Ingvar Hagelund 2010-04-30 07:08:14 UTC
Description of problem:
If ccs_sync is called with wrong parameters, it dies screeming with SIGABRT and dumps core.

Version-Release number of selected component (if applicable):
0.16.2-2

How reproducible:
Allways

Steps to Reproduce:
1. run a bogus ccs_sync command, like "ccs_sync foo"
2. There is no cluster node "foo". See the process die screaming
  

Actual results:

Warning: foo is not listed as a node in /etc/cluster/cluster.conf
*** glibc detected *** ccs_sync: double free or corruption (top): 0x0000000001039710 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3c07274ab6]
ccs_sync[0x4020ea]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x3c0721eb1d]
ccs_sync[0x401ab9]
======= Memory map: ========
(...snip...)
Aborted (core dumped)

Expected results:

Should just echo the error message and die with no further noise.

Additional info:
have only tested on x86_64

Comment 2 RHEL Program Management 2010-04-30 08:45:24 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 3 Chris Feist 2010-05-18 22:01:08 UTC
Fixed segfault:

Test output:

[root@ask-03 ~]# ccs_sync blah
Error: blah is not listed as a node in /etc/cluster/cluster.conf
[root@ask-03 ~]#

Comment 4 Chris Feist 2010-05-18 22:01:40 UTC
Created attachment 414975 [details]
Patch to fix bz

Comment 8 releng-rhel@redhat.com 2010-11-15 14:44:13 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.