[SERVER-27877] hang_analyzer.py should deduplicate stacks from different threads in GDB Created: 31/Jan/17  Updated: 07/Sep/17  Resolved: 10/Mar/17

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.4.5, 3.5.5

Type: Improvement Priority: Major - P3
Reporter: Jonathan Abrahams Assignee: Eddie Louie
Resolution: Done Votes: 0
Labels: bkp
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File gdb.out    
Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.4
Sprint: TIG 2017-03-06, TIG 2017-03-27
Participants:

 Description   

siyuan.zhou wrote a script for doing it with gdb.



 Comments   
Comment by Githook User [ 28/Apr/17 ]

Author:

{u'username': u'elouie99', u'name': u'Eddie Louie', u'email': u'eddie.louie@mongodb.com'}

Message: SERVER-27877 Write function to deduplicate stacks from different threads in GDB

(cherry picked from commit dbf7adc73da93308ec7e769bdfa1742c548e2f17)
Branch: v3.4
https://github.com/mongodb/mongo/commit/3959837880093b90fe3977dc6b21acddca55081c

Comment by Githook User [ 10/Mar/17 ]

Author:

{u'username': u'elouie99', u'name': u'Eddie Louie', u'email': u'eddie.louie@mongodb.com'}

Message: SERVER-27877 Write function to deduplicate stacks from different threads in GDB
Branch: master
https://github.com/mongodb/mongo/commit/dbf7adc73da93308ec7e769bdfa1742c548e2f17

Comment by Eddie Louie [ 03/Mar/17 ]

The function is invoked in gdb after sourcing the <mongo>/buildscripts/gdb/mongo.py file.
Currently there is one option, 'bt'.
It is invoked as: mongodb-uniqstack bt to get the unique stacks. Or if no option is specified, then by default the 'bt' option is chosen.

Attached is the outut from the new function I wrote to deduplicate stacks in GDB. First set of stacks are from thread apply all bt and second set are from mongodb-uniqstack bt

Generated at Thu Feb 08 04:16:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.