[Nix#8737] Assertion error during make check #129

Closed
opened 2024-03-16 06:45:04 +00:00 by lix-bot · 2 comments
Member

Upstream-Issue: NixOS/nix#8737

Describe the bug

Hi! Package maintainer for Arch Linux here, the 2.17.0 release fails an assertion when compiling from source.

EDIT: Here are our sources/build scripts. The _commit variable will need to be updated to point at 2.17.0's commit.

Steps To Reproduce

  1. Compile from source in clean chroot on Arch Linux
  2. Run make check and watch it fail.
[----------] 13 tests from SearchPathElem
[ RUN      ] SearchPathElem.parse_justPath
[       OK ] SearchPathElem.parse_justPath (0 ms)
[ RUN      ] SearchPathElem.parse_emptyPrefix
[       OK ] SearchPathElem.parse_emptyPrefix (0 ms)
[ RUN      ] SearchPathElem.parse_oneEq
[       OK ] SearchPathElem.parse_oneEq (0 ms)
[ RUN      ] SearchPathElem.parse_twoEqs
[       OK ] SearchPathElem.parse_twoEqs (0 ms)
[ RUN      ] SearchPathElem.suffixIfPotentialMatch_justPath
[       OK ] SearchPathElem.suffixIfPotentialMatch_justPath (0 ms)
[ RUN      ] SearchPathElem.suffixIfPotentialMatch_misleadingPrefix1
[       OK ] SearchPathElem.suffixIfPotentialMatch_misleadingPrefix1 (0 ms)
[ RUN      ] SearchPathElem.suffixIfPotentialMatch_misleadingPrefix2
[       OK ] SearchPathElem.suffixIfPotentialMatch_misleadingPrefix2 (0 ms)
[ RUN      ] SearchPathElem.suffixIfPotentialMatch_partialPrefix
/usr/include/c++/13.1.1/string_view:258: constexpr const std::basic_string_view<_CharT, _Traits>::value_type& std::basic_string_view<_CharT, _Traits>::operator[](size_type) const [with _CharT = char; _Traits = std::char_traits<char>; const_reference = const char&; size_type = long unsigned int]: Assertion '__pos < this->_M_len' failed.
make: *** [mk/lib.mk:120: libexpr-tests_RUN] Aborted (core dumped)

Expected behavior

No failures.

Upstream-Issue: https://git.lix.systems/NixOS/nix/issues/8737 **Describe the bug** Hi! Package maintainer for Arch Linux here, the 2.17.0 release fails an assertion when compiling from source. *EDIT*: [Here](https://gitlab.archlinux.org/archlinux/packaging/packages/nix) are our sources/build scripts. The `_commit` variable will need to be updated to point at `2.17.0`'s commit. **Steps To Reproduce** 1. Compile from source in clean chroot on Arch Linux 2. Run `make check` and watch it fail. ``` [----------] 13 tests from SearchPathElem [ RUN ] SearchPathElem.parse_justPath [ OK ] SearchPathElem.parse_justPath (0 ms) [ RUN ] SearchPathElem.parse_emptyPrefix [ OK ] SearchPathElem.parse_emptyPrefix (0 ms) [ RUN ] SearchPathElem.parse_oneEq [ OK ] SearchPathElem.parse_oneEq (0 ms) [ RUN ] SearchPathElem.parse_twoEqs [ OK ] SearchPathElem.parse_twoEqs (0 ms) [ RUN ] SearchPathElem.suffixIfPotentialMatch_justPath [ OK ] SearchPathElem.suffixIfPotentialMatch_justPath (0 ms) [ RUN ] SearchPathElem.suffixIfPotentialMatch_misleadingPrefix1 [ OK ] SearchPathElem.suffixIfPotentialMatch_misleadingPrefix1 (0 ms) [ RUN ] SearchPathElem.suffixIfPotentialMatch_misleadingPrefix2 [ OK ] SearchPathElem.suffixIfPotentialMatch_misleadingPrefix2 (0 ms) [ RUN ] SearchPathElem.suffixIfPotentialMatch_partialPrefix /usr/include/c++/13.1.1/string_view:258: constexpr const std::basic_string_view<_CharT, _Traits>::value_type& std::basic_string_view<_CharT, _Traits>::operator[](size_type) const [with _CharT = char; _Traits = std::char_traits<char>; const_reference = const char&; size_type = long unsigned int]: Assertion '__pos < this->_M_len' failed. make: *** [mk/lib.mk:120: libexpr-tests_RUN] Aborted (core dumped) ``` **Expected behavior** No failures.
lix-bot added the
stability
bug
imported
labels 2024-03-16 06:45:04 +00:00
Owner

This was enabled by GLIBCXX assertions, which #4 is to enable.

This was enabled by GLIBCXX assertions, which https://git.lix.systems/lix-project/lix/issues/4 is to enable.
Owner

#4 is a thing now

#4 is a thing now
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#129
No description provided.