[SERVER-62044] ABT pretty printer crashes on backtrace Created: 14/Dec/21  Updated: 29/Oct/23  Resolved: 02/May/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Nicholas Zolnierz Assignee: Nicholas Zolnierz
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QO 2022-03-07, QO 2022-05-02, QO 2022-05-16
Participants:

 Description   

Break in a spot like this, then try to run a backtrace command and gdb (v8.3.1) will hit a GP fault.



 Comments   
Comment by Githook User [ 02/May/22 ]

Author:

{'name': 'Nicholas Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}

Message: SERVER-62044 Enable ABT gdb pretty printer under certain conditions
Branch: master
https://github.com/mongodb/mongo/commit/b5f986b43c70498375dc481aad349c7ceb400175

Comment by Nicholas Zolnierz [ 21/Apr/22 ]

With a more recent version of gdb, the backtrace results in a stack overflow when the pretty printer is enabled. Managed to find https://sourceware.org/bugzilla/show_bug.cgi?id=28856, which appears to be a pretty much exact match. Going to push a patch that enables the ABT printer under certain conditions to avoid the crash since I want to timebox this work.

Generated at Thu Feb 08 05:54:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.