Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1149

[Python binding] Python float values +inf and -inf do not work correctly as 32-bit AMQP float values on RHEL7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • proton-0.13.0
    • proton-c-future
    • python-binding
    • None

    Description

      When run on RHEL 7, the 32-bit floating point values +inf (0x7f800000) and -inf (0xff800000) cause a failure in the swig interface:

      OverflowError: in method 'pn_data_put_float', argument 2 of type 'float'

      Interestingly, the test values +NaN (0x7fc00000) and -NaN(0xffc00000) which are also a part of the same test, work ok.

      This error does not occur on Fedora 22.

      System details:
      Red Hat Enterprise Linux Server release 7.2 (Maipo)
      kernel: 3.10.0-327.el7.x86_64
      Python: 2.7.5 (default, Oct 11, 2015 17:47:16)
      SWIG version 2.0.10

      Attachments

        Activity

          People

            Unassigned Unassigned
            kpvdr Kim van der Riet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: