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

Calling advance() on EOF cursor causes segfault in mmapv1

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.7.7
    • 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();

    Attachments

      Issue Links

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: