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

Could not find abstract origin & use of closed network #2284

Closed
exapsy opened this issue Dec 30, 2020 · 1 comment
Closed

Could not find abstract origin & use of closed network #2284

exapsy opened this issue Dec 30, 2020 · 1 comment

Comments

@exapsy
Copy link

exapsy commented Dec 30, 2020

Please answer the following before submitting your issue:

Note: Please include any substantial examples (debug session output,
stacktraces, etc) as linked gists.


  1. What version of Delve are you using (dlv version)?

Docker container:

Delve Debugger
Version: 1.5.1
Build: $Id: bca418ea7ae2a4dcda985e623625da727d4525b5

Desktop:

Delve Debugger
Version: 1.5.0
Build: $Id: ca5318932770ca063fc9885b4764c30bfaf8a199

  1. What version of Go are you using? (go version)?

Docker container:

go version go1.15.6 linux/amd64

Desktop:

go version go1.15.5 linux/amd64

  1. What operating system and processor architecture are you using?

Docker container:

golang:1.15.6-alpine3.12

Desktop:

5.7.19-2-MANJARO

  1. What did you do?

I'm running this on a docker container to run a headless delve server on top of my Go web server

dlv exec /app/tmp/service --continue --accept-multiclient --listen=:40000 --headless=true --api-version=2 --log --build-flags='-mod=vendor'

And I'm connecting to it via this configuration in VSCode in launch.json

    {
      "name": "Golang delve docker",
      "type": "go",
      "request": "attach",
      "mode": "remote",
      "apiVersion": 2,
      "trace": "verbose",
      "port": 40000,
      "host": "localhost"
    },

  1. What did you expect to see?

No error


  1. What did you see instead?

When I restart the server

app_1            | 2020-12-30T12:43:42Z warning layer=debugger reading debug_info: could not find abstract origin (0x391128) of inlined call at 0x31a4e7
app_1            | 2020-12-30T12:43:42Z warning layer=debugger reading debug_info: could not find abstract origin (0x391128) of inlined call at 0x31a502
app_1            | 2020-12-30T12:43:42Z warning layer=debugger reading debug_info: could not find abstract origin (0x391128) of inlined call at 0x31a51d
app_1            | 2020-12-30T12:43:42Z warning layer=debugger reading debug_info: could not find abstract origin (0x391128) of inlined call at 0x31a538
app_1            | 2020-12-30T12:43:42Z warning layer=debugger reading debug_info: could not find abstract origin (0x391128) of inlined call at 0x31a96f
app_1            | 2020-12-30T12:43:42Z warning layer=debugger reading debug_info: could not find abstract origin (0x76d559) of inlined call at 0x57af2b
app_1            | 2020-12-30T12:43:42Z warning layer=debugger reading debug_info: could not find abstract origin (0x76d559) of inlined call at 0x57bb9d
app_1            | 2020-12-30T12:43:42Z warning layer=debugger reading debug_info: could not find abstract origin (0x61731a) of inlined call at 0x5cb2b4
app_1            | 2020-12-30T12:43:42Z warning layer=debugger reading debug_info: could not find abstract origin (0x61731a) of inlined call at 0x5cb4f3
app_1            | 2020-12-30T12:43:42Z warning layer=debugger reading debug_info: could not find abstract origin (0x617364) of inlined call at 0x5cbc59
app_1            | 2020-12-30T12:43:42Z warning layer=debugger reading debug_info: could not find abstract origin (0x6f415b) of inlined call at 0x6582b0
app_1            | 2020-12-30T12:43:42Z warning layer=debugger reading debug_info: could not find abstract origin (0x6ff35d) of inlined call at 0x6fed19

When I try to connect to it, pause it, and continue it

app_1            | 2020-12-30T12:43:42Z error layer=rpc writing response:write tcp 127.0.0.1:40000->127.0.0.1:49806: use of closed network connection
app_1            | 2020-12-30T12:43:53Z debug layer=debugger continuing
app_1            | 2020-12-30T12:44:00Z debug layer=debugger halting
app_1            | 2020-12-30T12:44:00Z error layer=rpc writing response:write tcp 172.21.0.8:40000->172.21.0.1:54052: use of closed network connection
@exapsy
Copy link
Author

exapsy commented Dec 30, 2020

Closing it, for the record, if you have this error, it's possible that your application is stuck on an infinite loop before initiating.

In my case, I had a function that run an infinite loop inside the main goroutine.

function() {
  for {
    // Necessary code here
  }
}()

Wrapping it in a goroutine fixed it ofc.

go function() {
  //
}()

Hoping this will help someone with a stupid mistake like this I've made.

@exapsy exapsy closed this as completed Dec 30, 2020
aarzilli added a commit to aarzilli/delve that referenced this issue Jan 9, 2021
The DWARF standard does not say that a DW_ATTR_abstract_origin can only
reference entries that appear before it, this change fixes BinaryInfo
to comply. See go-delve#2284 for an example of this happening.
aarzilli added a commit to aarzilli/delve that referenced this issue Jan 9, 2021
The DWARF standard does not say that a DW_ATTR_abstract_origin can only
reference entries that appear before it, this change fixes BinaryInfo
to comply. See go-delve#2284 for an example of this happening.
derekparker pushed a commit that referenced this issue Jan 27, 2021
The DWARF standard does not say that a DW_ATTR_abstract_origin can only
reference entries that appear before it, this change fixes BinaryInfo
to comply. See #2284 for an example of this happening.
abner-chenc pushed a commit to loongson/delve that referenced this issue Mar 1, 2024
The DWARF standard does not say that a DW_ATTR_abstract_origin can only
reference entries that appear before it, this change fixes BinaryInfo
to comply. See go-delve#2284 for an example of this happening.
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

No branches or pull requests

1 participant