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

Calling advance() on EOF cursor causes segfault in mmapv1

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.7
    • Affects Version/s: None
    • Component/s: Storage
    • Fully Compatible
    • ALL
    • Hide

      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( BSONObj(), minDiskLoc );
      cursor->advance();
      
      Show
      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( BSONObj(), minDiskLoc ); cursor->advance();

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

            Created:
            Updated:
            Resolved: