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

Throwing large objects kills MozJS thread without stack trace

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • None
    • None
    • None
    • Query Execution
    • Fully Compatible
    • ALL
    • QE 2023-02-06

    Description

      Throwing (and not catching) large errors in tests kills MozJS thread without printing the stack trace and the error message. This can happen when a JavaScript test assert fails and the message is over 64MB. The error message printed in the test log looks as follows:

      [js_test:change_stream_pit_pre_images] exception: BufBuilder attempted to grow() to 377558926 bytes, past the 64MB limit.
      [js_test:change_stream_pit_pre_images] exiting with code 1 
      

      A developer is then left to wonder which test line has caused this.

      Attachments

        Activity

          People

            romans.kasperovics@mongodb.com Romans Kasperovics
            romans.kasperovics@mongodb.com Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: