[SERVER-82659] GDB crashes during debug. Created: 01/Nov/23 Updated: 10/Jan/24 Resolved: 02/Jan/24 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Peter Volk | Assignee: | William Qian |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Assigned Teams: |
Query Optimization
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Steps To Reproduce: | Repeatable with the following githash: 7f29a2c9da5 1) Build mongod with the following config
2) run mongod with the following config:
3) Attach gdb to the process 4) set a breakpoint at path_utils.cpp:86 then have gdb continue the process (c) 5) connect to the local mongod instance via mongo and submit the following command
|
||||||||||||||||
| Sprint: | QO 2023-12-25, QO 2024-01-08 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
When I build the server as a static binary and then debug with the statement:
and set a breakpoint at
gdb crashes with the following error:
The generated coredump is linked as a google drive link (size is ~1gb) |
| Comments |
| Comment by William Qian [ 02/Jan/24 ] |
|
Recommendation is to use an upgraded version of gdb. |
| Comment by William Qian [ 12/Dec/23 ] |
|
Upon investigation, this is highly likely a stack overflow within gdb. Comparing the values of the $sp registers at the lowest and highest frames, the difference is around 8MiB, which is the default stack size for Linux. The issue seems to be caused by infinite recursion when unwinding, which is an unusual problem. |