Remove the number of the lambda expression from the signature
Categories
(Socorro :: Signature, task, P2)
Tracking
(Not tracked)
People
(Reporter: mccr8, Assigned: willkg)
References
Details
Attachments
(1 file)
As seen in bug 1592336, the stack frames for C++ lambdas seems to include a more-or-less arbitrary integer, causing signatures to vary by build. It would be nice if these integers could be removed.
For example, presumably it would be better if these signatures were the same:
[@ mozilla::dom::indexedDB::(anonymous namespace)::QuotaClient::ShutdownWorkThreads::$_33::__invoke ]
[@ mozilla::dom::indexedDB::(anonymous namespace)::QuotaClient::ShutdownWorkThreads::$_36::__invoke ]
[@ mozilla::dom::indexedDB::(anonymous namespace)::QuotaClient::ShutdownWorkThreads::$_3::__invoke ]
Assignee | ||
Comment 1•4 years ago
|
||
Hrm... I'm not sure how to do this offhand. I'll have to look into it.
Does "It would be nice" imply that it's a nice-to-have (implement it in the next month) and not an urgent must-have (implement it this week)?
Reporter | ||
Comment 2•4 years ago
|
||
Is there any kind of rewriting that happens on signatures? It feels like you could replace "::$_\d+::" with "::$::" or something.
Yeah, I don't think it is urgent. Bug 1592336 is the first place I remember seeing it, and it seems like it is at most a minor hassle there.
Assignee | ||
Comment 3•4 years ago
|
||
Assignee | ||
Comment 4•4 years ago
|
||
willkg merged PR #5660: "bug #1688249: remove lambda number from signature" in 5b7b9e8.
Andrew: That regex helped a lot--you were right on! Thank you!
Reporter | ||
Comment 5•4 years ago
|
||
Great! Thanks for working on this.
Assignee | ||
Comment 6•4 years ago
|
||
This was deployed just now in bug #1690378. Marking as FIXED.
Assignee | ||
Comment 7•4 years ago
|
||
Andrew: Do you want me to reprocess these crash reports?
Reporter | ||
Comment 8•4 years ago
|
||
The volume looks pretty low, but maybe Jens would be interested in it.
Assignee | ||
Comment 9•4 years ago
|
||
I misread comment #8 and went ahead and reprocessed 20,000 crash reports over the last 6 months that had __invoke
in the signature. It was a pretty lazy search, so it picked up a bunch of other crash reports that aren't relevant which is probably fine.
Comment 10•4 years ago
|
||
Thanks!
Description
•