Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2516

assert fails formatting handshake metadata with long platform string

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.10.0
    • Affects Version/s: 1.9.2
    • Component/s: libmongoc
    • None
    • Environment:
      Fedora 28

      Found in Fedora QA

      https://apps.fedoraproject.org/koschei/package/mongo-c-driver?collection=f28

      Test suite fails (have been temporarily disabled)
      + make check
      ...

      { "status": "PASS", "test_file": "/MongoDB/handshake/appname_in_uri", "seed": "3183281156", "start": 3563529.973239884, "end": 3563529.973289591, "elapsed": 0.000049707 }

      ,

      { "status": "PASS", "test_file": "/MongoDB/handshake/appname_frozen_single", "seed": "3611459046", "start": 3563529.973296380, "end": 3563529.973334671, "elapsed": 0.000038291 }

      ,

      { "status": "PASS", "test_file": "/MongoDB/handshake/appname_frozen_pooled", "seed": "1085007876", "start": 3563529.973341565, "end": 3563529.973360169, "elapsed": 0.000018604 }

      ,
      src/mongoc/mongoc-handshake.c:498 _append_and_truncate(): precondition failed: space_for_suffix >= 0
      make: *** [Makefile:5650: test] Aborted (core dumped)

      Also raise the same issue with PHP extension (when moving from 7.2.2 to 7.2.3RC1, it seems the RC1 suffix raise the 32 char limit)

      Is it possible to increase this size ?

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            remi Remi Collet
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: