Bug 2042542 - pdflatex fails C++ library assertion
Summary: pdflatex fails C++ library assertion
Keywords:
Status: CLOSED DUPLICATE of bug 2042421
Alias: None
Product: Fedora
Classification: Fedora
Component: texlive-base
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-19 16:54 UTC by Jerry James
Modified: 2022-01-19 20:13 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-01-19 20:13:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jerry James 2022-01-19 16:54:38 UTC
Description of problem:
Koschei tells me that builds of the why3 package just started failing in Rawhide, due to a pdflatex failure.  The build log shows this:

/usr/include/c++/12/bits/stl_vector.h:1141: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](size_type) const [with _Tp = std::pair<std::__cxx11::basic_string<char>, Object>; _Alloc = std::allocator<std::pair<std::__cxx11::basic_string<char>, Object> >; const_reference = const std::pair<std::__cxx11::basic_string<char>, Object>&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.

I can reproduce this by building why3 in mock, waiting for the failure, launching a mock shell, changing to the doc/latex directory, and running "pdflatex manual.tex".

Version-Release number of selected component (if applicable):
texlive-latex-20210325-46.fc36.noarch

How reproducible:
Always

Steps to Reproduce:
1. Build the why3 package in Rawhide
2.
3.

Actual results:
pdflatex fails an assertion

Expected results:
Successful completion

Additional info:

Comment 1 Tom "spot" Callaway 2022-01-19 20:00:03 UTC
Jerry, I'm closing this as a dupe of 2042421, but if you have any time to spare and help figuring out what's failing here and how to fix it, it would be appreciated. I am buried in my day job right now.

It could be:

1. Something new in GCC
2. I stopped passing -std=c++11 everywhere, instead only passing -std=c++17 in the pdflatex bits that need the new poppler (thanks poppler)
3. Something broken in the patch I did to get pdflatex to build with the new poppler.

If not, no worries, I will get to it as soon as I can.

Comment 2 Tom "spot" Callaway 2022-01-19 20:13:28 UTC

*** This bug has been marked as a duplicate of bug 2042421 ***


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