Bug 273000 - lang/gcc12: Assertion '!this->empty()' failed on arm64
Summary: lang/gcc12: Assertion '!this->empty()' failed on arm64
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm64 Any
: --- Affects Only Me
Assignee: Lorenzo Salvadore
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-07 15:11 UTC by Marcel Bischoff
Modified: 2023-08-13 14:30 UTC (History)
0 users

See Also:
salvadore: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel Bischoff 2023-08-07 15:11:03 UTC
While attempting to start the sysutils/btop port installed from a binary package, on a Raspberry Pi 3 running 13.2-RELEASE, the application immediately aborts with the following error:

/usr/local/lib/gcc12/include/c++/bits/stl_deque.h:1484: std::deque<_Tp, _Alloc>::const_reference std::deque<_Tp, _Alloc>::back() const [with _Tp = long long int; _Alloc = std::allocator<long long int>; const_reference = const long long int&]: Assertion '!this->empty()' failed.
Abort trap (core dumped)

The port requires GCC due to libstdc++. On amd64 it runs as expected. After checking back with the port maintainer, this appears to be a GCC bug.
Comment 1 Lorenzo Salvadore freebsd_committer freebsd_triage 2023-08-08 09:18:00 UTC
Thanks for you report, I will investigate into it as soon as possible.

Could you please share some details about how you and the sysutils/btop port maintainer understood that the bug is in lang/gcc12? Thanks.
Comment 2 Marcel Bischoff 2023-08-13 14:30:39 UTC
Been AFK for some time. Since I'm not competent enough to interpret the error message, I asked the maintainer of the btop port (pkubaj@anongoth.pl). His response:

"It kind of looks more like a GCC issue, you could try to create a FreeBSD PR on Bugzilla for GCC first."

Hence the bug report here.

The Raspberry Pi setup is an actively used machine of mine. If/when you need me to test something, let me know.