[SERVER-76543] The mongod-dump-sessions gdb pretty printer does not work Created: 26/Apr/23 Updated: 29/Oct/23 Resolved: 28/Apr/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Testing Infrastructure |
| Affects Version/s: | None |
| Fix Version/s: | 7.1.0-rc0, 7.0.0-rc1, 6.3.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Louis Williams | Assignee: | Max Hirschhorn |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Assigned Teams: |
Server Development Platform
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Backport Requested: |
v7.0, v6.3
|
||||||||||||||||||||
| Sprint: | Sharding NYC 2023-05-01 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Linked BF Score: | 105 | ||||||||||||||||||||
| Description |
|
When I try to open a core dump for this failure, I get these errors when dumping the session catalog:
This specific failure was on the 6.3 branch. I have no idea if the same problem exists on newer branches, but this is preventing me from easily investigating a possible deadlock. |
| Comments |
| Comment by Githook User [ 28/Apr/23 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}Message: Adds a new get_unique_ptr_bytes() function to retain the specialization (cherry picked from commit e77c5df954dfa8f0aaed5fc6e340180b41d11254) | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Githook User [ 28/Apr/23 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}Message: Adds a new get_unique_ptr_bytes() function to retain the specialization (cherry picked from commit e77c5df954dfa8f0aaed5fc6e340180b41d11254) | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Githook User [ 27/Apr/23 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}Message: Adds a new get_unique_ptr_bytes() function to retain the specialization | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Moody [ 27/Apr/23 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
Thanks for looking into it max.hirschhorn@mongodb.com , the changes seem reasonable to me. We should implement them along with a pretty printer test for mongo-dump-sessions which uses or replicates the stack in the core dump. | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Max Hirschhorn [ 27/Apr/23 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
I looked into this issue and don't believe the problem would be specific to mongod-dump-sessions. The changes from fb23430 as part of
The following changes enable the mongod-dump-sessions command to work for me. I found the current definition of get_unique_ptr() is still needed by get_decoration() and get_decorations() to avoid GDB errors about the type being incomplete at the time of the cast.
| |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Wenbin Zhu [ 26/Apr/23 ] | |||||||||||||||||||||||||||||||||||||||||||||
Confirming that this also happens on 7.0 (BF-28535). |