Bug 601878 - clvmd -R segfaults when clvmd is not running
Summary: clvmd -R segfaults when clvmd is not running
Status: CLOSED DUPLICATE of bug 574595
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: lvm2
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: LVM and device-mapper development team
QA Contact: Corey Marthaler
Depends On:
TreeView+ depends on / blocked
Reported: 2010-06-08 19:47 UTC by Nate Straz
Modified: 2010-06-09 04:09 UTC (History)
7 users (show)

Clone Of:
Last Closed: 2010-06-09 04:09:36 UTC

Attachments (Terms of Use)

Description Nate Straz 2010-06-08 19:47:50 UTC
Description of problem:
[root@morph-01 ~]# ps -C clvmd
  PID TTY          TIME CMD
[root@morph-01 ~]# clvmd -R
connect() failed on local socket: Connection refused
Segmentation fault (core dumped)
[root@morph-01 ~]# gdb /usr/sbin/clvmd core
Core was generated by `clvmd -R'.
Program terminated with signal 11, Segmentation fault.
#0  0x00183c65 in __libc_free (mem=0x1d16ab) at malloc.c:3724
3724      ar_ptr = arena_for_chunk(p);
(gdb) bt
#0  0x00183c65 in __libc_free (mem=0x1d16ab) at malloc.c:3724
#1  0x08059aaa in _cluster_free_request (response=0x1d16ab, num=0)
    at refresh_clvmd.c:287
#2  0x0805a5fd in refresh_clvmd (all_nodes=1) at refresh_clvmd.c:322
#3  0x0805675c in main (argc=2, argv=0xbfe52f94) at clvmd.c:319

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

How reproducible:

Steps to Reproduce:
1. service clvmd stop
2. clvmd -R
Actual results:
core dump

Expected results:
Print error about clvmd not running and return non-zero.

Additional info:

Comment 2 RHEL Product and Program Management 2010-06-08 20:13:19 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

Comment 3 Milan Broz 2010-06-09 04:09:36 UTC

*** This bug has been marked as a duplicate of bug 574595 ***

Note You need to log in before you can comment on or make changes to this bug.