Details
-
Question
-
Resolution: Done
-
Trivial - P5
-
None
-
None
-
None
Description
I want to generate corefile when mongod received SIGSEGV to help debuging, but even I comment the signal binding code and recompile, mongod cannot dump corefile when SIGSEGV received, can you guys tell me why? Thanks a lot.
diff src/mongo/util/signal_handlers_synchronous.cpp
- invariant(sigaction(SIGSEGV, &addrSignals, nullptr) == 0);
|
- invariant(sigaction(SIGBUS, &addrSignals, nullptr) == 0);
|
+ //invariant(sigaction(SIGSEGV, &addrSignals, nullptr) == 0);
|
+ //invariant(sigaction(SIGBUS, &addrSignals, nullptr) == 0);
|
PS: Another program compiler by the same gcc on the same host can generate corefile when SIGSEGV received.
|
|
$ulimit -c
|
unlimited
|
|
|
|
Attachments
Issue Links
- duplicates
-
SERVER-21635 No coredump on Linux when starting with --fork
-
- Backlog
-