std::optional not showing stacktrace on linux

122 views
Skip to first unread message

Christian Dullweber

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

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

unread,
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.

PK

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
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 chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAKAfQi0gNGJJAr_CrK60aT1vt2m01g%2BbHwYNCDY2C_%3DzukehRw%40mail.gmail.com.

danakj

unread,
Feb 21, 2024, 10:30:50 AMFeb 21
to pkas...@chromium.org, Christian Dullweber, Chromium-dev, David Benjamin, Peter Boström
Reply all
Reply to author
Forward
0 new messages