[SRU] crm_simulate segfaults
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pacemaker (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
Low to Medium impact. crm_simulate is used to simulate changes that will be introduced to the cluster. Not being able to use means one can't check if upcoming changes will break anything.
[Test Case]
$ sudo apt-get install pacemaker
$ sudo crm_simulate -L
With current precise packages, this will cause segfault.
[Regression potential]
This is an upstream commit that's part of the package in Raring and Saucy. By looking at the code, this shouldn't introduce any regression at all.
Original report:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
pacemaker:
Installed: 1.1.6-2ubuntu3
Candidate: 1.1.6-2ubuntu3
Version table:
*** 1.1.6-2ubuntu3 0
500 http://
100 /var/lib/
Using crm_simulate -SL would, according to the manpage, simulate the transition's execution and display the resulting cluster status.
Instead, I get the following:
# crm_simulate -SL
Segmentation fault (core dumped)
Related branches
Changed in pacemaker (Ubuntu Precise): | |
assignee: | nobody → Ante Karamatić (ivoks) |
summary: |
- crm_simulate segfaults + [SRU] crm_simulate segfaults |
Changed in pacemaker (Ubuntu): | |
status: | Invalid → Fix Released |
Changed in pacemaker (Ubuntu Precise): | |
assignee: | Ante Karamatić (ivoks) → nobody |
status: | Confirmed → In Progress |
This is a known bug in Pacemaker version 1.1.6
I understand that with the LTS release there may be no hope of getting the package upgraded to 1.1.7 but we should at least be able to get this bug fixed I would hope.
Patch to fix this is here: /github. com/beekhof/ pacemaker/ commit/ 2bdb230
https:/
Output of $crm_simulate -L:
*** glibc detected *** crm_simulate: double free or corruption (out): 0x0000000001585e00 *** 64-linux- gnu/libc. so.6(+0x7e626) [0x7fef66e82626 ] libcib. so.1(+0xc259) [0x7fef6775f259 ] 64-linux- gnu/libglib- 2.0.so. 0(+0x373d3) [0x7fef66b463d3 ] 64-linux- gnu/libglib- 2.0.so. 0(g_hash_ table_remove_ all+0x1d) [0x7fef66b4724d ] 64-linux- gnu/libglib- 2.0.so. 0(g_hash_ table_destroy+ 0xe)[0x7fef66b4 72de] libcib. so.1(cib_ new_variant+ 0x155)[ 0x7fef6775f9fb] libcib. so.1(cib_ file_new+ 0x28)[0x7fef677 65aad] libcib. so.1(cib_ new+0x62) [0x7fef6775f70c ] 0x40614f] 64-linux- gnu/libc. so.6(__ libc_start_ main+0xed) [0x7fef66e2576d ] 0x402279] crm_simulate crm_simulate crm_simulate 7fef639af000 r-xp 00000000 fb:05 393311 /lib/x86_ 64-linux- gnu/libgcc_ s.so.1 7fef63bae000 ---p 00015000 fb:05 393311 /lib/x86_ 64-linux- gnu/libgcc_ s.so.1 7fef63baf000 r--p 00014000 fb:05 393311 /lib/x86_ 64-linux- gnu/libgcc_ s.so.1 7fef63bb0000 rw-p 00015000 fb:05 393311 /lib/x86_ 64-linux- gnu/libgcc_ s.so.1 7fef63bb3000 r-xp 00000000 fb:05 393398 /lib/x86_ 64-linux- gnu/libgpg- error.so. 0.8.0 7fef63db2000 ---p 00003000 fb:05 393398 /lib/x86_ 64-linux- gnu/libgpg- error.so. 0.8.0 7fef63db3000 r--p 00002000 fb:05 393398 /lib/x86_ 64-linux- gnu/libgpg- error.so. 0.8.0 7fef63db4000 rw-p 00003000 fb:05 393398 /lib/x86_ 64-linux- gnu/libgpg- error.so. 0.8.0 7fef63dbc000 r-xp 00000000 fb:05 525256 /usr/lib/ x86_64- linux-gnu/ libltdl. so.7.3. 0 7fef63fbc000 ---p 00008000 fb:05 525256 /usr/lib/ x86_64- linux-gnu/ libltdl. so.7.3. 0 7fef63fbd000 r--p 00008000 fb:05 525256 /usr/lib/ x86_64- linux-gnu/ libltdl. so.7.3. 0 7fef63fbe000 rw-p 00009000 fb:05 525256 /usr/lib/ x86_64- linux-gnu/ libltdl. so.7.3. 0 7fef63fcf000 r-xp 00000000 fb:05 525504 /usr/lib/ x86_64- linux-gnu/ libp11- kit.so. 0.0.0 7fef641ce000 ---p 00011000 fb:05 525504 /usr/lib/ x86_64- linux-gnu/ libp11- kit.so. 0.0.0 7fef641cf000 r--p 00010000 fb:05 525504 /usr/lib/ x86_64- linux-gnu/ libp11- kit.so. 0.0.0
======= Backtrace: =========
/lib/x86_
/usr/lib/
/lib/x86_
/lib/x86_
/lib/x86_
/usr/lib/
/usr/lib/
/usr/lib/
crm_simulate[
/lib/x86_
crm_simulate[
======= Memory map: ========
00400000-00409000 r-xp 00000000 fb:05 541771 /usr/sbin/
00608000-00609000 r--p 00008000 fb:05 541771 /usr/sbin/
00609000-0060a000 rw-p 00009000 fb:05 541771 /usr/sbin/
0157e000-0181c000 rw-p 00000000 00:00 0 [heap]
7fef6399a000-
7fef639af000-
7fef63bae000-
7fef63baf000-
7fef63bb0000-
7fef63bb3000-
7fef63db2000-
7fef63db3000-
7fef63db4000-
7fef63dbc000-
7fef63fbc000-
7fef63fbd000-
7fef63fbe000-
7fef63fcf000-
7fef641ce000-
7fef641cf0...