Files
mongo/jstests/libunwind/stacktrace_signal.js
Patrick Freed 4978118816 SERVER-84103 Support configuring TLS options through resmoke
This also updates the gRPC buildvariant to run with TLS enabled.

GitOrigin-RevId: 56576634eb5a47f559e1f8645ec538048d472e4e
2024-01-12 00:15:54 +00:00

18 lines
616 B
JavaScript

/**
* Hit mongod with a SIGUSR2 and observe multithread stack trace.
* Should only work on Linux, and when mongod is built with libunwind.
*
* @tags: [
* requires_libunwind
* ]
*/
clearRawMongoProgramOutput();
const conn = MongoRunner.runMongod();
// convert the float to a string to make sure it's correctly represented.
runNonMongoProgram('/bin/kill', '-s', 'SIGUSR2', conn.pid.valueOf().toString());
MongoRunner.stopMongod(conn);
const output = rawMongoProgramOutput();
assert(output.search(/"processInfo":/) >= 0, output);
// Will be several of these
assert(output.search(/"backtrace":/) >= 0, output);