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

cmd/compile: Compiler regression in Go 1.16 - internal compiler error: child dcl collision on symbol [1.16 backport] #44433

gopherbot opened this issue Feb 19, 2021 · 3 comments
CherryPickApproved FrozenDueToAge


Copy link

@gopherbot gopherbot commented Feb 19, 2021

@thanm requested issue #44378 to be considered for backport to the next 1.16 minor release.

@gopherbot please consider this for backport to 1.16

@gopherbot gopherbot added the CherryPickCandidate label Feb 19, 2021
@gopherbot gopherbot added this to the Go1.16.1 milestone Feb 19, 2021
@thanm thanm self-assigned this Feb 19, 2021
Copy link

@gopherbot gopherbot commented Feb 22, 2021

Change mentions this issue: [release-branch.go1.16] cmd/compile: fix panic in DWARF-gen handling obfuscated code

Copy link

@cagedmantis cagedmantis commented Feb 25, 2021

Approved. This is a serious issue.

@cagedmantis cagedmantis added the CherryPickApproved label Feb 25, 2021
@gopherbot gopherbot removed the CherryPickCandidate label Feb 25, 2021
Copy link

@gopherbot gopherbot commented Mar 1, 2021

Closed by merging 18e5d75 to release-branch.go1.16.

gopherbot pushed a commit that referenced this issue Mar 1, 2021
…obfuscated code

DWARF generation uses variable source positions (file/line/col) as a
way to uniquely identify locals and parameters, as part of the process
of matching up post-optimization variables with the corresponding
pre-optimization versions (since the DWARF needs to be in terms of the
original source constructs).

This strategy can run into problems when compiling obfuscated or
machine-generated code, where you can in some circumstances wind up
with two local variables that appear to have the same name, file,
line, and column. This patch changes DWARF generation to skip over
such duplicates as opposed to issuing a fatal error (if an
obfuscation tool is in use, it is unlikely that a human being will be
able to make much sense of DWARF info in any case).

Fixes #44433.

Change-Id: I198022d184701aa9ec3dce42c005d29b72d2e321
TryBot-Result: Go Bot <>
Reviewed-by: David Chase <>
Reviewed-by: Jeremy Faller <>
Reviewed-by: Cherry Zhang <>
Trust: Than McIntosh <>
Run-TryBot: Than McIntosh <>
(cherry picked from commit e78e04c)
@toothrot toothrot removed this from the Go1.16.1 milestone Mar 10, 2021
@toothrot toothrot added this to the Go1.16.2 milestone Mar 10, 2021
@golang golang locked and limited conversation to collaborators Mar 10, 2022
@rsc rsc unassigned thanm Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
CherryPickApproved FrozenDueToAge
None yet

No branches or pull requests

4 participants