[SERVER-38838] Early failure in JS file load triggers invariant !stack.empty() in jsexception.h Created: 04/Jan/19  Updated: 29/Oct/23  Resolved: 09/Jan/19

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 4.1.7

Type: Bug Priority: Minor - P4
Reporter: A. Jesse Jiryu Davis Assignee: Max Hirschhorn
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
is caused by SERVER-35154 Exceptions that escape a ScopedThread... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: STM 2019-01-14
Participants:
Linked BF Score: 10

 Description   

Seen in some Evergreen patch builds, particularly in the last 24 hours, perhaps due to some other issue loading a JS file (the file wasn't fully written to disk before loading it?):

Invariant failure !stack.empty() src/mongo/scripting/jsexception.h 57



 Comments   
Comment by Githook User [ 09/Jan/19 ]

Author:

{'username': 'visemet', 'email': 'max.hirschhorn@mongodb.com', 'name': 'Max Hirschhorn'}

Message: SERVER-38838 Ensure JavaScript stack string isn't empty.
Branch: master
https://github.com/mongodb/mongo/commit/39f585b27ba3c872c869f36f3a3fc71e9966724e

Generated at Thu Feb 08 04:50:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.