Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6918

jstests/geo_borders.js fails verify in debug builds

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

      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_10gen Greg Studer
            Reporter:
            tad Tad Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: