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

SIGSEGV: segmentation violation #1173

Open
Autumn-27 opened this issue May 28, 2024 · 0 comments
Open

SIGSEGV: segmentation violation #1173

Autumn-27 opened this issue May 28, 2024 · 0 comments

Comments

@Autumn-27
Copy link

Hello, I have a problem

err = handle.WritePacketData(buf.Bytes())
Report an error:

SIGSEGV: segmentation violation
PC=0x24106a7 m=68 sigcode=1
signal arrived during cgo execution

goroutine 1530934 [syscall]:
runtime.cgocall(0x240dd20, 0xc029b06b78)
/go/pkg/mod/golang.org/[email protected]/src/runtime/cgocall.go:157 +0x4b fp=0xc029b06b50 sp=0xc029b06b18 pc=0x40836b
github.com/google/gopacket/pcap._Cfunc_pcap_sendpacket(0x0, 0xc077327e66, 0x5a)
_cgo_gotypes.go:640 +0x4b fp=0xc029b06b78 sp=0xc029b06b50 pc=0xf167eb
github.com/google/gopacket/pcap.(*Handle).pcapSendpacket.func1(0xc029b06bd8?, {0xc077327e66, 0x5a, 0x0?})
/go/pkg/mod/github.com/google/[email protected]/pcap/pcap_unix.go:521 +0x68 fp=0xc029b06bb0 sp=0xc029b06b78 pc=0xf196c8
github.com/google/gopacket/pcap.(*Handle).pcapSendpacket(0x3845be8?, {0xc077327e66?, 0xc077271c20?, 0xc029b06d28?})
/go/pkg/mod/github.com/google/[email protected]/pcap/pcap_unix.go:521 +0x1d fp=0xc029b06be8 sp=0xc029b06bb0 pc=0xf195fd
github.com/google/gopacket/pcap.(*Handle).WritePacketData(...)
/go/pkg/mod/github.com/google/[email protected]/pcap/pcap.go:696

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