Bug 1894566 - oslc terminates after throwing a std::bad_alloc
Summary: oslc terminates after throwing a std::bad_alloc
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openshadinglanguage
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Luya Tshimbalanga
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-04 14:08 UTC by James Legg
Modified: 2020-12-14 01:15 UTC (History)
2 users (show)

Fixed In Version: openshadinglanguage-1.11.10.0-2.fc33 openshadinglanguage-1.11.10.0-2.fc32
Clone Of:
Environment:
Last Closed: 2020-12-14 00:58:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Backtrace from GDB (8.52 KB, text/plain)
2020-11-04 14:08 UTC, James Legg
no flags Details

Description James Legg 2020-11-04 14:08:41 UTC
Created attachment 1726564 [details]
Backtrace from GDB

Description of problem:
oslc crashes when trying to compile an input file.

Version-Release number of selected component (if applicable):
openshadinglanguage-1.11.7.3-2.fc33

How reproducible:
100%

Steps to Reproduce:
Enter "oslc -E <(echo)" in a bash shell.

Actual results:
terminate called after throwing an instance of 'std::bad_alloc'

Expected results:
Empty line is preprocessed without error.

Additional info:
I found this when trying to build blender, but the shader source does not seem to matter as it reproduces with an empty input. The error happens when copying a corrupt clang::TargetOptions (it apparently has 0xfffffd56dd465b4b elements). Valgrind's memcheck didn't find any cause for the corruption.

Comment 1 Fedora Update System 2020-12-05 17:56:50 UTC
FEDORA-2020-02f6ddfcfd has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-02f6ddfcfd

Comment 2 Fedora Update System 2020-12-05 17:56:54 UTC
FEDORA-2020-24762163d8 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-24762163d8

Comment 3 Fedora Update System 2020-12-06 06:47:05 UTC
FEDORA-2020-02f6ddfcfd has been pushed to the Fedora 32 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-02f6ddfcfd`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-02f6ddfcfd

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

Comment 4 Fedora Update System 2020-12-06 07:16:53 UTC
FEDORA-2020-24762163d8 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-24762163d8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-24762163d8

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

Comment 5 Fedora Update System 2020-12-14 00:58:36 UTC
FEDORA-2020-24762163d8 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2020-12-14 01:15:59 UTC
FEDORA-2020-02f6ddfcfd has been pushed to the Fedora 32 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.