Skip to content

E08 during memory read for packet #3548

Closed
@dhoizner

Description

Please answer the following before submitting your issue:

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

If this is about source listing not showing up (or breakpoints not being
accepted) while running in a container please read our
FAQ
first.

  1. What version of Delve are you using (dlv version)?
❯ dlv version
Delve Debugger
Version: 1.21.2
Build: $Id: 98f8ab2662d926245917ade2f2bb38277315c7fc $
  1. What version of Go are you using? (go version)?
❯ go version
go version go1.21.1 darwin/amd64
  1. What operating system and processor architecture are you using?
macOS Sonoma 14.1 amd64
  1. What did you do?
    When trying to debug a test that contains a struct with a non-pointer object that has a function with a pointer receiver defined, interacting with that object causes all locals to return unreadable could not read string pointer protocol error E08 during memory read for packet.

Steps:

b TestHi:13
c
p c
  1. What did you expect to see?
    I expected to able to print values for locals.
  2. What did you see instead?
    I see all values being returned as error E08.

Log file and files to reproduce error are here.

Changing Thing to be *Thing on line 11 resolves the error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions