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

runtime error: invalid memory address or nil pointer #15

Open
mgdsxhy opened this issue Aug 27, 2021 · 2 comments
Open

runtime error: invalid memory address or nil pointer #15

mgdsxhy opened this issue Aug 27, 2021 · 2 comments

Comments

@mgdsxhy
Copy link

mgdsxhy commented Aug 27, 2021

env:
Red Hat Enterprise Linux Server release 6.10 (Santiago)
Linux version 2.6.32-754.el6.x86_64 (mockbuild@x86-033.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC) ) #1 SMP Thu May 24 18:18:25 EDT 2018

error:
failed to open stream: no SMBIOS entry point found in memorypanic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x9c5449]

goroutine 1 [running]:
github.com/yumaojun03/dmidecode.(*Decoder).System(0x0, 0xc00000e018, 0xc000575d70, 0x1, 0x1, 0x3c)
C:/Users/ss/go/pkg/mod/github.com/yumaojun03/dmidecode@v0.1.4/decoder.go:104 +0x29

Is it not supported by the system or for other reasons?

@mgdsxhy
Copy link
Author

mgdsxhy commented Aug 27, 2021

补充go版本:go1.16.4

@mmsoon
Copy link
Contributor

mmsoon commented Oct 9, 2021

可以检查一下这两个文件是否存在。

/sys/firmware/dmi/tables/DMI
/sys/firmware/dmi/tables/smbios_entry_point

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

2 participants