[SERVER-82753] Hang analyzer in mongo shell attempts to load non-existent .gdbinit file Created: 03/Nov/23  Updated: 21/Nov/23

Status: Backlog
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Max Hirschhorn Assignee: Trevor Guidry
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Sprint: Build and Correctness OnDeck
Participants:

 Description   

GDB continues to run the other commands anyway so this doesn't impact the ability for GDB to collect core dumps. But realistically there is no advantage to have GDB attempting to source the .gdbinit file when it is only taking core dump because the gdb process isn't being used to print any data structures whatsoever.

[js_test:native_tenant_data_isolation_basic_dollar_tenant] sh298468| ['/opt/mongodbtoolchain/v4/bin/gdb', '--quiet', '--nx', '--readnever', '-ex', 'set interactive-mode off', '-ex', 'set print thread-events off', '-ex', "py sys.path.extend(['/data/mci/f243158d4d8981a4c61cbebd43a2199f/src/buildscripts', '/data/mci/f243158d4d8981a4c61cbebd43a2199f/venv/lib/python3.10/site-packages/git/ext/gitdb', '/data/mci/f243158d4d8981a4c61cbebd43a2199f/src', '/opt/mongodbtoolchain/revisions/69f4f0673ffcb290ce2307560a4883ecf2ad138c/stow/python3-v4.NWS/lib/python310.zip', '/opt/mongodbtoolchain/revisions/69f4f0673ffcb290ce2307560a4883ecf2ad138c/stow/python3-v4.NWS/lib/python3.10', '/opt/mongodbtoolchain/revisions/69f4f0673ffcb290ce2307560a4883ecf2ad138c/stow/python3-v4.NWS/lib/python3.10/lib-dynload', '/data/mci/f243158d4d8981a4c61cbebd43a2199f/venv/lib/python3.10/site-packages', '/data/mci/f243158d4d8981a4c61cbebd43a2199f/src', '/data/mci/f243158d4d8981a4c61cbebd43a2199f/src', '/data/mci/f243158d4d8981a4c61cbebd43a2199f/src'])", '-ex', 'source .gdbinit', '-ex', 'attach 201455', '-ex', 'handle SIGSTOP ignore noprint', '-ex', 'set scheduler-locking on', '-ex', 'gcore dump_mongod.201455.core', '-ex', 'detach', '-ex', 'attach 201457', '-ex', 'handle SIGSTOP ignore noprint', '-ex', 'set scheduler-locking on', '-ex', 'gcore dump_mongod.201457.core', '-ex', 'detach', '-ex', 'set confirm off', '-ex', 'quit']
[js_test:native_tenant_data_isolation_basic_dollar_tenant] sh298468| .gdbinit: No such file or directory.

https://parsley.mongodb.com/resmoke/63004f98bf0ff9f195370fcc64c89097/test/178fce76eb0ec74351fad7e3652d3de9?bookmarks=0,13345,13401&shareLine=13344


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