-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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/link: missing debug_frame section if package plugin is imported #23733
Comments
.eh_frame is a red herring; I'm fairly certain that the external linker is adding that because .debug_frame is missing and it doesn't know where to put its own stuff. The real issue is that .debug_frame is missing entirely in 1.10. Bisects to 24e4a12, which I think may have been a little overzealous; we could have kept some of the DWARF. But it's not going to be a good debugging experience regardless. cc @crawshaw |
Got it, thanks for looking into it. I see now that it doesn't really have a debug_info section either. |
Change https://golang.org/cl/111237 mentions this issue: |
Change https://golang.org/cl/111236 mentions this issue: |
Is there any workaround for this? |
I encountered this problem . project really have a plugin package. Which version is good? |
There is no workaround other than to remove the plugin dependency, sorry. The Go 1.11 freeze was a week ago, so the CLs above will have to wait for 1.12. |
Thanks |
no fix for this problem? I also encountered such problem under ubuntu 16.4 |
any update for thsi bug? |
As I said above, there will be no updates until the 1.12 development cycle opens. That will be in August; see https://github.com/golang/go/wiki/Go-Release-Cycle. |
Please prioritize this as it blocks debugging applications with plugins. |
@vladbarosan We'll do our best but to be honest we have few resources to improve the plugin development experience. Go is an open source project, and this is an area where external contributions would be very valuable. |
…port. (NB: Should be compatible with dlv when run under go 1.9, however due to golang/go#23733 go 1.10 and 1.11 will cause dlv to produce an error)
Debugging Hydra in Go 1.10 and 1.11 (confirmed by one of its members), is not possible due to [this unresolved bug](golang/go#23733) which is related to the use of the plugin functionality. This change allows passing a build tag which will disable plugin implementation and therefore allow to debug in all the use-cases where plugin backend is not needed. Signed-of-by: Gorka Lerchundi Osa <[email protected]>
Debugging Hydra in Go 1.10 and 1.11 (confirmed by one of its members), is not possible due to [this unresolved bug](golang/go#23733) which is related to the use of the plugin functionality. This change allows passing a build tag which will disable plugin implementation and therefore allow to debug in all the use-cases where plugin backend is not needed. Signed-off-by: Gorka Lerchundi Osa <[email protected]>
Debugging Hydra in Go 1.10 and 1.11 (confirmed by one of its members), is not possible due to [this unresolved bug](golang/go#23733) which is related to the use of the plugin functionality. This change allows passing a build tag which will disable plugin implementation and therefore allow to debug in all the use-cases where plugin backend is not needed. Signed-off-by: Gorka Lerchundi Osa <[email protected]>
Debugging Hydra in Go 1.10 and 1.11 (confirmed by one of its members), is not possible due to [this unresolved bug](golang/go#23733) which is related to the use of the plugin functionality. This change allows passing a build tag which will disable plugin implementation and therefore allow to debug in all the use-cases where plugin backend is not needed. Signed-off-by: Gorka Lerchundi Osa <[email protected]>
Moves type name mangling after deadcode elimination. The motivation for doing this is to create a space between deadcode elimination and type name mangling where DWARF generation for types and variables can exist, to fix issue #23733. Change-Id: I9db8ecc0f4efe3df6c1e4025f02642fd452f9a39 Reviewed-on: https://go-review.googlesource.com/111236 Reviewed-by: Heschi Kreinick <[email protected]> Reviewed-by: Cherry Zhang <[email protected]> Run-TryBot: Heschi Kreinick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
@ianlancetaylor |
@juhwany This issue is reportedly closed on tip. Would you be able to try that out and see? |
OK let me try. But which Go version should I use for testing? |
Having the same problem after upgrading from golang10.0 to golang11.1 |
How about to solve this problem? |
I solved this problem by downgrading my GO version from 1.11 to 1.10.4. I'm on Ubuntu 16.4, and I fixed this problem by I deleting my |
Nothing about this bug was supposed to change, certainly not get worse, with the upgrade to 1.11. Importing the plugin package should have disabled debugging in both. If you have a program that uses plugins that is debuggable in 1.10 but not in 1.11, please give precise instructions to reproduce the problem here. If the program doesn't use plugin, it's not this issue, and it would help to file a new one, again with a reproducer. Thanks. |
Why is this issue closed? Seems like it is still a problem no? |
@GodloveD it should be fixed in 1.12 |
I just try 1.9 works fine 1.10 and 1.11 has this kind of problem |
@wenjun001 Please see my comments in #23733 (comment). Nobody can do anything to help without more detail. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?but this also happens with the latest release candidate for 1.10.
What operating system and processor architecture are you using (
go env
)?What did you do?
Compile anything that imports plugin:
The executable used to have .debug_frame in 1.9 but has eh_frame now.
Was this done intentionally?
(originally reported as https://github.com/derekparker/delve/issues/1118)
The text was updated successfully, but these errors were encountered: