jstests/geo_borders.js fails verify in debug builds

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.3.0
    • Affects Version/s: 2.3.0
    • Component/s: Geo
    • Environment:
      Debug builds, all platforms
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Debug builds consistently fail in mongo::Geo2dType::_convert() at line 371:

                  verify( in <= _max && in >= _min );
      

      when running jstests/geo_borders.js.

      jstests/geo_borders.js may be running the test at lines 132 to 137, based on comparing a "working" non-debug run. The reason why release builds "work" and debug builds fail is that the test at line 371 is using verify() on user-supplied data, and debug builds call abort() after a failed verify. But since this is our first test of user-supplied values, verify() is the wrong test to use. Moreover, this is the wrong place to test, because we have code to generate a friendly assertion downstream (i.e. later) that will never be reached because of this verify().

      Adding more verbose logging to the test shows additional problems. These will be detailed in a separate ticket.

              Assignee:
              Greg Studer (Inactive)
              Reporter:
              Tad Marshall
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: