Bug 2121167

Summary: texlive: segfaults due to texlive-base-20210325-poppler-22.08.0.patch
Product: [Fedora] Fedora Reporter: Jerry James <loganjerry>
Component: texlive-baseAssignee: Tom "spot" Callaway <spotrh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: mtasaka, spotrh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: texlive-base-20210325-52.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-12 17:39:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2120809    

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.