Bug 2121167 - texlive: segfaults due to texlive-base-20210325-poppler-22.08.0.patch
Summary: texlive: segfaults due to texlive-base-20210325-poppler-22.08.0.patch
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: texlive-base
Version: rawhide
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2120809
TreeView+ depends on / blocked
 
Reported: 2022-08-24 17:05 UTC by Jerry James
Modified: 2022-09-12 17:39 UTC (History)
2 users (show)

Fixed In Version: texlive-base-20210325-52.fc37
Clone Of:
Environment:
Last Closed: 2022-09-12 17:39:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jerry James 2022-08-24 17:05:56 UTC
Description of problem:
As described in bug 2120809, texlive-base-20210325-poppler-22.08.0.patch does not handle a shared_ptr correctly.  In particular, GfxFont::makeFont can return a shared_ptr that has only a single reference.  The C pointer is extracted from the shared_ptr and saved, but the shared_ptr goes out of scope, resulting in deallocation of the font object.  The code later dereferences the saved C pointer, which by now can be pointing to anything.

Version-Release number of selected component (if applicable):
texlive-base-20210325-51.fc37

How reproducible:
Always.

Steps to Reproduce:
1. Try to build asymptote for Rawhide

Actual results:
pdflatex segfaults

Expected results:
pdflatex should not segfault

Additional info:

Comment 1 Tom "spot" Callaway 2022-08-24 22:27:11 UTC
Okay. I have a better version of that patch which seems more correct. In local testing, it resolves the pdftex segfault that an asymptote source build triggers.

https://koji.fedoraproject.org/koji/taskinfo?taskID=91220832

Comment 2 Fedora Update System 2022-08-25 02:56:26 UTC
FEDORA-2022-1383f5beb8 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-1383f5beb8

Comment 3 Mamoru TASAKA 2022-08-25 03:29:59 UTC
Looks good. asymptote now builds.
https://koji.fedoraproject.org/koji/buildinfo?buildID=2050712

Comment 4 Fedora Update System 2022-08-25 08:52:46 UTC
FEDORA-2022-1383f5beb8 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-1383f5beb8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-1383f5beb8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2022-09-12 17:39:09 UTC
FEDORA-2022-1383f5beb8 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.


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