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

libcontainer/stacktrace: fix inline func name #2355

Closed
wants to merge 1 commit into from

Conversation

zhsj
Copy link
Contributor

@zhsj zhsj commented Apr 27, 2020

The TestCaptureTestFunc fails on gccgo, because captureFunc is inlined
there. Instead of using FuncForPC directly, using CallersFrames from
runtime package, which is available since go1.7

This commit has an API break for the stacktrace package, which removes
NewFrame func. But I think it's safe as the stacktrace is somehow an
internal package of libcontainer.

Signed-off-by: Shengjing Zhu zhsj@debian.org

@zhsj
Copy link
Contributor Author

zhsj commented May 1, 2020

@opencontainers/runc-maintainers could you take a look?

@thaJeztah
Copy link
Member

@kolyshkin @AkihiroSuda ptal

@AkihiroSuda
Copy link
Member

@cyphar PTAL?

kolyshkin
kolyshkin previously approved these changes Jun 16, 2020
Copy link
Contributor

@kolyshkin kolyshkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The TestCaptureTestFunc fails on gccgo, because captureFunc is inlined
there. Instead of using FuncForPC directly, using CallersFrames from
runtime package, which is available since go1.7

This commit has an API break for the stacktrace package, which removes
NewFrame func. But I think it's safe as the stacktrace is somehow an
internal package of libcontainer.

Signed-off-by: Shengjing Zhu <zhsj@debian.org>
@zhsj
Copy link
Contributor Author

zhsj commented Jan 24, 2021

ping?

rebased to pick up the new ci.

@zhsj
Copy link
Contributor Author

zhsj commented Jul 1, 2021

closing, as libcontainer/stacktrace is removed now. #3033

@zhsj zhsj closed this Jul 1, 2021
@zhsj zhsj deleted the fix-gccgo branch July 1, 2021 04:58
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.

4 participants