openais segfaults when correct bindnetaddr is used

Bug #379107 reported by Ryan Steele
2
Affects Status Importance Assigned to Milestone
openais (Ubuntu)
Confirmed
Undecided
Fabio Massimo Di Nitto

Bug Description

Binary package hint: openais 0.82-3ubuntu2
Ubuntu Version: Hardy Server
Architecture: amd64

The documentation (http://www.openais.org/doku.php?id=faq:configure_openais) says that the bindnetaddr parameter in the totem section of openais.conf should be the result of the system's IP bitwise AND-ed against the netmask. So, for a system with IP 192.168.7.134 and netmask 255.255.255.0 (/24), we should get 192.168.7.0:

11000000 10101000 00000111 10000110 (192.168.7.134)
11111111 11111111 11111111 00000000 (255.255.255.0)
------------------------------------------------------
11000000 10101000 00000111 00000000 (192.168.7.0)

However, when we set that option in openais.conf, the daemon segfaults:

$ cat /etc/ais/openais.conf
# Please read the openais.conf.5 manual page

totem {
   version: 2
   secauth: off
   threads: 0
   rrp_mode: none
   vsftype: none
   interface {
      ringnumber: 0
      bindnetaddr: 192.168.7.0
      mcastaddr: 226.94.1.1
      mcastport: 5405
   }
}

logging {
   fileline: on
   to_stderr: no
   to_file: yes
   logfile: /var/log/openais/openais.log
   debug: on
   timestamp: on
   logger_subsys {
      subsys: AMF
      debug: on
      tags: enter|leave|trace1|trace2|trace3|trace4|trace6
   }
}

amf {
   mode: disabled
}

$ /usr/sbin/aisexec -f
[MAIN ] AIS Executive Service RELEASE 'trunk'
[MAIN ] Copyright (C) 2002-2006 MontaVista Software, Inc and contributors.
[MAIN ] Copyright (C) 2006-2007 Red Hat, Inc.
[MAIN ] AIS Executive Service: started and ready to provide service.
[MAIN ] Successfully read main configuration file '/etc/ais/openais.conf'.
[SERV ] openais component openais_cpg loaded.
[SERV ] Registering service handler 'openais cluster closed process group service v1.01'
[SERV ] openais component openais_cfg loaded.
[SERV ] Registering service handler 'openais configuration service'
[SERV ] openais component openais_msg loaded.
[SERV ] Registering service handler 'openais message service B.01.01'
[SERV ] openais component openais_lck loaded.
[SERV ] Registering service handler 'openais distributed locking service B.01.01'
[SERV ] openais component openais_evt loaded.
[SERV ] Registering service handler 'openais event service B.01.01'
[SERV ] openais component openais_ckpt loaded.
[SERV ] Registering service handler 'openais checkpoint service B.01.01'
[SERV ] openais component openais_amf loaded.
[SERV ] Registering service handler 'openais availability management framework B.01.01'
[SERV ] openais component openais_clm loaded.
[SERV ] Registering service handler 'openais cluster membership service B.01.01'
[SERV ] openais component openais_evs loaded.
[SERV ] Registering service handler 'openais extended virtual synchrony service'
Segmentation fault

description: updated
Revision history for this message
Ryan Steele (ryan-g-steele) wrote :

Fabio - can you please fix the binary arithmetic used here, or whatever it is that's causing the segfault? If we're not supposed to use the result of <IP> & <netmask>, can you please update the documentation accordingly? (Regardless, the daemon should never segfault)

Changed in openais (Ubuntu):
assignee: nobody → Fabio Massimo Di Nitto (fabbione)
Changed in openais (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.