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

interrupting --eval while(true){ ; } loops using killOp

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Ubuntu 10.10, 6-core system, 16GB RAM.
    • ALL

    Description

      On my fast system (and infrequently on some buildbots), it takes a long time (potentially forever) to kill while(true){} spinlocks sent to the mongod server. This seems to especially occur when using v8, seems as if the kill operation just is not able to progress. Adding a sleep(1) statement to the while() loop fixes the problem.

      While currently the problem only shows up in tests, potentially an accidentally buggy $where query may be unable to be terminated on a user's system while hogging the cpu.

      Attachments

        Activity

          People

            Unassigned Unassigned
            greg_10gen Greg Studer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: