Skip to content

libcontainer/stacktrace: fix inline func name#2355

Closed
zhsj wants to merge 1 commit intoopencontainers:masterfrom
zhsj:fix-gccgo
Closed

libcontainer/stacktrace: fix inline func name#2355
zhsj wants to merge 1 commit intoopencontainers:masterfrom
zhsj:fix-gccgo

Conversation

@zhsj
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

zhsj commented May 1, 2020

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

@thaJeztah
Copy link
Copy Markdown
Member

@kolyshkin @AkihiroSuda ptal

@AkihiroSuda
Copy link
Copy Markdown
Member

@cyphar PTAL?

kolyshkin
kolyshkin previously approved these changes Jun 16, 2020
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

zhsj commented Jan 24, 2021

ping?

rebased to pick up the new ci.

@zhsj
Copy link
Copy Markdown
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