[Debian-ha-maintainers] Bug#561755: Segfault in rgmanager

Albert Sellarès whats at wekk.net
Sun Dec 20 04:01:01 UTC 2009


Package: rgmanager
Version: 2.20081102-1

I got a segmentation fault with some cluster.conf files. My system is a
Debian Lenny with all latest updates. The problem is got with rgmanager
service and can be checked with rg_Test command.

I've attached a minimal cluster.conf to reproduce the problem.

root at debian:~/whats# rg_test test cluster.conf 
Running in test mode.
Loading resource rule from /usr/share/cluster/ocf-shellfuncs
Loading resource rule from /usr/share/cluster/lvm_by_lv.sh
Loading resource rule from /usr/share/cluster/service.sh
Loading resource rule from /usr/share/cluster/SAPInstance
Loading resource rule from /usr/share/cluster/openldap.sh
Loading resource rule from /usr/share/cluster/smb.sh
Loading resource rule from /usr/share/cluster/samba.sh
Loading resource rule from /usr/share/cluster/script.sh
Loading resource rule from /usr/share/cluster/lvm_by_vg.sh
Loading resource rule from /usr/share/cluster/SAPDatabase
Loading resource rule from /usr/share/cluster/nfsclient.sh
Loading resource rule from /usr/share/cluster/nfsexport.sh
Loading resource rule from /usr/share/cluster/vm.sh
Loading resource rule from /usr/share/cluster/apache.sh
Loading resource rule from /usr/share/cluster/ip.sh
Loading resource rule from /usr/share/cluster/fs.sh
Loading resource rule from /usr/share/cluster/named.sh
Loading resource rule from /usr/share/cluster/clusterfs.sh
Loading resource rule from /usr/share/cluster/svclib_nfslock
Loading resource rule from /usr/share/cluster/mysql.sh
Loading resource rule from /usr/share/cluster/postgres-8.sh
Loading resource rule from /usr/share/cluster/oracledb.sh
Loading resource rule from /usr/share/cluster/ASEHAagent.sh
Loading resource rule from /usr/share/cluster/netfs.sh
Loading resource rule from /usr/share/cluster/tomcat-5.sh
Loading resource rule from /usr/share/cluster/lvm.sh
Loaded 22 resource rules
=== Resources List ===
Resource type: service [INLINE]
Instances: 1/1
Agent: service.sh
Attributes:
  name = REDMINES [ primary unique required ]
  domain = Services [ reconfig ]
  autostart = 1 [ reconfig ]
  hardrecovery = 0 [ reconfig ]
  exclusive = 0 [ reconfig ]
  nfslock = 0
  nfs_client_cache = 0
  recovery = relocate [ reconfig ]
  depend_mode = hard
  max_restarts = 3
  restart_expire_time = 5

=== Resource Tree ===
service {
  name = "REDMINES";
  domain = "Services";
  autostart = "1";
  hardrecovery = "0";
  exclusive = "0";
  nfslock = "0";
  nfs_client_cache = "0";
  recovery = "relocate";
  depend_mode = "hard";
  max_restarts = "3";
  restart_expire_time = "5";
}
=== Failover Domains ===
Failover domain: Services
Flags: Ordered No Failback
=== Event Triggers ===
Event Priority Level 100:
  Name: Default
    (Any event)
    File: /usr/share/cluster/default_event_script.sl
Segmentation fault (core dumped)


root at debian:~/whats# gdb -c core /usr/sbin/rg_test 
warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib/libcman.so.2...done.
Loaded symbols for /usr/lib/libcman.so.2
Reading symbols from /lib/i686/cmov/libpthread.so.0...done.
Loaded symbols for /lib/i686/cmov/libpthread.so.0
Reading symbols from /usr/lib/libxml2.so.2...done.
Loaded symbols for /usr/lib/libxml2.so.2
Reading symbols from /lib/i686/cmov/libc.so.6...done.
Loaded symbols for /lib/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/i686/cmov/libdl.so.2...done.
Loaded symbols for /lib/i686/cmov/libdl.so.2
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/i686/cmov/libm.so.6...done.
Loaded symbols for /lib/i686/cmov/libm.so.6
Core was generated by `rg_test test cluster.conf'.
Program terminated with signal 11, Segmentation fault.
[New process 18871]
#0  0x0805a77d in restart_clear (arg=0xb74f4d88)

at /root/redhat-cluster-2.20081102/rgmanager/src/daemons/restart_counter.c:128
128			list_remove(&restarts->restart_nodes, i);
(gdb) bt
#0  0x0805a77d in restart_clear (arg=0xb74f4d88)

at /root/redhat-cluster-2.20081102/rgmanager/src/daemons/restart_counter.c:128
#1  0x0805a8d2 in restart_cleanup (arg=0xb74f4d88)

at /root/redhat-cluster-2.20081102/rgmanager/src/daemons/restart_counter.c:165
#2  0x0805608d in destroy_resource_tree (tree=0xbffffab4)

at /root/redhat-cluster-2.20081102/rgmanager/src/daemons/restree.c:885
#3  0x08059b52 in test_func (argc=1, argv=0xbffffc1c)
    at /root/redhat-cluster-2.20081102/rgmanager/src/daemons/test.c:281
#4  0x0805a208 in main (argc=2, argv=0xbffffc18)
    at /root/redhat-cluster-2.20081102/rgmanager/src/daemons/test.c:447

-- 
  Albert Sellarès        GPG id: 0x13053FFE
  http://www.wekk.net    whats at jabber.org 
  Linux User: 324456                
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cluster.conf
Type: application/xml
Size: 364 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-ha-maintainers/attachments/20091220/e9fc3824/attachment.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Aix? ?s una part d'un missatge signada digitalment
URL: <http://lists.alioth.debian.org/pipermail/debian-ha-maintainers/attachments/20091220/e9fc3824/attachment.pgp>


More information about the Debian-ha-maintainers mailing list