std::optional not showing stacktrace on linux

Skip to first unread message

Christian Dullweber

Feb 21, 2024, 6:06:10 AMFeb 21
to Chromium-dev

I just spent some time figuring out why a test is crashing without any error message or stacktrace on my machine or in the CQ and it looks like accessing an empty std::optional is not producing any useful output on Linux. 

Here is a CL to show a few examples: 
The OptionalDeref test just shows up as crashed without any more information.

std::variant seems to have the same issue, where it crashes on wrong usage without output.
absl::variant works well. On Windows and iOS, all of these tests produce useful output.

It would be great if this could be fixed but I'm not quite sure in which component to file the bug.

Peter Kasting

Feb 21, 2024, 9:23:29 AMFeb 21
to Christian Dullweber, Chromium-dev, David Benjamin, Peter Boström
+Cc davidben@ and pbos@ who are more aware of the details of libc++ hardening assertion failures.


Chromium Developers mailing list:
View archives, change email options, or unsubscribe:
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit


Feb 21, 2024, 10:30:50 AMFeb 21
to, Christian Dullweber, Chromium-dev, David Benjamin, Peter Boström
Reply all
Reply to author
0 new messages