Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-490

Interpolate printf-style logging input to logging function using vsnprintf

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • 2.4.0-beta2
    • None
    • None
    • None
    • 1

    Description

      On some older Python 2.7 systems on Linux, the PyUnicode_FromFormatV function was mishandling some printf interpolation arguments, in this case "%.*s", a string with a given length.

      PyUnicode_FromFormatV should actually just dump the remainder of the format string but in some cases it segfaults instead when it encounters something it doesn't understand.

      In addition, we want to be able to log output from these more unusual interpolation strings, so it seems better to use a C function to write to a buffer before sending it to CPython for logging.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Ellis.Breen Ellis Breen
            Ellis.Breen Ellis Breen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty