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

Calling advanceTo() on EOF cursor causes segfault in mmapv1

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.7.6
    • Component/s: Storage

      Relevant snippet of test case extracted below.

      scoped_ptr<HarnessHelper> harnessHelper( newHarnessHelper() );
      scoped_ptr<SortedDataInterface> sorted( harnessHelper->newSortedDataInterface() );
      
      scoped_ptr<OperationContext> opCtx( harnessHelper->newOperationContext() );
      scoped_ptr<SortedDataInterface::Cursor> cursor( sorted->newCursor( opCtx.get(), 1 ) );
      
      cursor->locate( minKey, minDiskLoc );
      
      vector<const BSONElement*> keyEnd( 1 );
      vector<bool> keyEndInclusive( 1 );
      
      cursor->advanceTo( key1, 1, true, keyEnd, keyEndInclusive );
      

            Assignee:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: