[SERVER-59856] Hang analyzer gdb script raises gdb.error Created: 09/Sep/21 Updated: 22/May/23 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Richard Samuels (Inactive) | Assignee: | Backlog - Service Architecture |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | sa-remove-fv-backlog-22 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||
| Assigned Teams: |
Service Arch
|
||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Linked BF Score: | 0 | ||||||||||||||||||||
| Story Points: | 2 | ||||||||||||||||||||
| Description |
|
When the hang analyzer is run on master, it raises the following error when the gdb scripts are run:
To avoid this error, perhaps a comment could be added to the C++ code to reference its use in the gdb python scripts |
| Comments |
| Comment by Max Hirschhorn [ 08/Apr/22 ] |
|
The "gdb.error: No type named std::unique_ptr<mongo::transport::(anonymous namespace)::Handle>" error is caused by the change from ServiceContext::declareDecoration<Handle>() to ServiceContext::declareDecoration<std::unique_ptr<Handle>>() in e4df9de as part of Copying some notes I had put together elsewhere:
I believe schwerin may already have some plans to already address this GDB issue around decorations with default template arguments in SERVER-62074 (along with make some other nice enhancements). |
| Comment by Githook User [ 26/Oct/21 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: |
| Comment by Blake Oler [ 14/Sep/21 ] |
|
It looks like what’s going on is that gdb couldn’t find the type info for that type in the symbol table. gdb is trying to look up all the c++ decorations that exist on the ServiceContext, and when it attempts to look up the type info for Handle it fails. This type has existed for a while, but the way it’s declared decorable has changed recently. Will triage at our next team meeting. |