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

Do not fail hard if strerror_r fails.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • proton-0.10
    • proton-0.11.0
    • proton-c

    Description

      The return type from strerror_r differs depending on the compiler's feature set.

      if _GNU_SOURCE is defined, strerror_r returns a char *

      if _POSIX_C_SOURCE is defined to a certain set of values, strerror_r returns an int.

      proton expects int, and fails hard (aborts) when a string ptr is returned.

      Attachments

        Activity

          People

            kgiusti Ken Giusti
            kgiusti Ken Giusti
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: