Closed Bug 1688249 Opened 3 years ago Closed 3 years ago

Remove the number of the lambda expression from the signature

Categories

(Socorro :: Signature, task, P2)

Tracking

(Not tracked)

RESOLVED FIXED

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 ]

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)?

Assignee: nobody → willkg
Status: NEW → ASSIGNED
Priority: -- → P2

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.

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!

Great! Thanks for working on this.

This was deployed just now in bug #1690378. Marking as FIXED.

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

Andrew: Do you want me to reprocess these crash reports?

Flags: needinfo?(continuation)

The volume looks pretty low, but maybe Jens would be interested in it.

Flags: needinfo?(continuation) → needinfo?(jstutte)

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.

Flags: needinfo?(jstutte)

Thanks!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: