Public bug reported:

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

** Affects: openais (Ubuntu)
     Importance: Undecided
     Assignee: Fabio Massimo Di Nitto (fabbione)
         Status: New

** Description changed:

- Binary package hint: openais
+ 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

-- 
openais segfaults when correct bindnetaddr is used
https://bugs.launchpad.net/bugs/379107
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to