Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix osoparse & osolex from two independent liboslexec.so #1255

Merged

Conversation

marsupial
Copy link
Contributor

Description

When two OSL distributions are loaded, they will both use the same osoparse and osolexfunctions.

Problematic because the OSOReader::parse_XXX function from liboslexec_A.so will set the static variable osoreader = this, but then call osoparse in liboslexec_B.so, where the osoreader static is still NULL.

https://github.com/marsupial/OpenShadingLanguage/blob/62797a9032a73162a62e19d03261d7d8bd3a8ded/src/liboslexec/osolex.l#L263
https://github.com/marsupial/OpenShadingLanguage/blob/62797a9032a73162a62e19d03261d7d8bd3a8ded/src/liboslexec/osolex.l#L287

@lgritz
Copy link
Collaborator

lgritz commented Sep 24, 2020

I'll merge as soon as CI is finished.

@lgritz lgritz merged commit 4288d57 into AcademySoftwareFoundation:master Sep 24, 2020
@marsupial marsupial deleted the PR/felx-bison-mangle branch October 1, 2020 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants