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

Failing Cling tests with multiple interpreters #12455

Closed
hahnjo opened this issue Mar 8, 2023 · 2 comments · Fixed by #12900
Closed

Failing Cling tests with multiple interpreters #12455

hahnjo opened this issue Mar 8, 2023 · 2 comments · Fixed by #12900

Comments

@hahnjo
Copy link
Member

hahnjo commented Mar 8, 2023

Since the upgrade to LLVM 13, at least two tests are failing because of broken interactions with multiple interpreters:

  • CodeUnloading/AtExit.C does not find the symbol gChild.
  • MultipleInterpreters/MultipleInterpreters.C cannot find the symbol _ZN5cling7runtime6gClingE / cling::runtime::gCling during ChildInterp.echo() (the first usage to construct cling::Interpreter ChildInterp(*gCling, 1, argV); seems fine).

Based on this, one might theorize that the child interpreter doesn't have access to symbols declared in its parent (not sure how this worked before).

@jalopezg-git jalopezg-git self-assigned this May 27, 2023
jalopezg-git added a commit to jalopezg-git/root that referenced this issue May 30, 2023
Prior to the upgrade to LLVM13, child interpreters used to also lookup symbols
in their parent.
This commit introduces a `DefinitionGenerator` that allows for symbol lookup
across different `IncrementalJIT` instances, which restores the old behavior.

This change fixes the following tests:
- CodeUnloading/AtExit.C
- MultipleInterpreters/MultipleInterpreters.C

Fixes root-project#12455.
jalopezg-git added a commit to jalopezg-git/root that referenced this issue May 30, 2023
Prior to the upgrade to LLVM13, child interpreters used to also lookup symbols
in their parent.
This commit introduces a `DefinitionGenerator` that allows for symbol lookup
across different `IncrementalJIT` instances, which restores the old behavior.

This change fixes the following tests:
- CodeUnloading/AtExit.C
- MultipleInterpreters/MultipleInterpreters.C

Fixes root-project#12455.
jalopezg-git added a commit that referenced this issue May 31, 2023
Prior to the upgrade to LLVM13, child interpreters used to also lookup symbols
in their parent.
This commit introduces a `DefinitionGenerator` that allows for symbol lookup
across different `IncrementalJIT` instances, which restores the old behavior.

This change fixes the following tests:
- CodeUnloading/AtExit.C
- MultipleInterpreters/MultipleInterpreters.C

Fixes #12455.
jalopezg-git added a commit that referenced this issue May 31, 2023
Prior to the upgrade to LLVM13, child interpreters used to also lookup symbols
in their parent.
This commit introduces a `DefinitionGenerator` that allows for symbol lookup
across different `IncrementalJIT` instances, which restores the old behavior.

This change fixes the following tests:
- CodeUnloading/AtExit.C
- MultipleInterpreters/MultipleInterpreters.C

Fixes #12455.
@github-actions
Copy link

github-actions bot commented Jun 1, 2023

Hi @jalopezg-git, @Axel-Naumann, @vgvassilev,

It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise.

Sincerely,
🤖

@github-actions
Copy link

github-actions bot commented Jun 2, 2023

Hi @jalopezg-git, @Axel-Naumann, @vgvassilev,

It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise.

Sincerely,
🤖

maksgraczyk pushed a commit to maksgraczyk/root that referenced this issue Jun 28, 2023
Prior to the upgrade to LLVM13, child interpreters used to also lookup symbols
in their parent.
This commit introduces a `DefinitionGenerator` that allows for symbol lookup
across different `IncrementalJIT` instances, which restores the old behavior.

This change fixes the following tests:
- CodeUnloading/AtExit.C
- MultipleInterpreters/MultipleInterpreters.C

Fixes root-project#12455.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants