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

EMU crash with error: Assertion failed: pfd.revents & POLLIN (src/signaler.cpp:264) #20

Open
syaakov opened this issue Sep 11, 2022 · 0 comments

Comments

@syaakov
Copy link

syaakov commented Sep 11, 2022

trex-emu crashes sometimes when we run it with kernel-mode.

./trex-emu -k

Run ZMQ server on [RPC:4500, RX: IPC, TX:IPC]
Assertion failed: pfd.revents & POLLIN (src/signaler.cpp:264)
SIGABRT: abort
PC=0x7f94007ad00b m=8 sigcode=18446744073709551610
signal arrived during cgo execution

goroutine 19 [syscall]:
runtime.cgocall(0x8d10f0, 0xc000052688)
	/usr/local/go/src/runtime/cgocall.go:157 +0x5c fp=0xc000052660 sp=0xc000052628 pc=0x4072dc
github.com/pebbe/zmq4._C2func_zmq4_msg_recv(0xc0005adc80, 0x2c017b0, 0x0)
	_cgo_gotypes.go:401 +0x56 fp=0xc000052688 sp=0xc000052660 pc=0x7578d6
github.com/pebbe/zmq4.(*Socket).RecvBytes.func1(0xc0005adc80?, 0x0?, 0x0)
	/tmp/build_838_TRex_Emu_1d2de09906f0266741b2c59c2f9e2c6fa287b809/pkg/mod/github.com/pebbe/[email protected]/zmq4.go:1082 +0x57 fp=0xc0000526d8 sp=0xc000052688 pc=0x7609b7
github.com/pebbe/zmq4.(*Socket).RecvBytes(0xc00028d6e0, 0xc00017e370?)
	/tmp/build_838_TRex_Emu_1d2de09906f0266741b2c59c2f9e2c6fa287b809/pkg/mod/github.com/pebbe/[email protected]/zmq4.go:1082 +0x119 fp=0xc000052778 sp=0xc0000526d8 pc=0x760619
emu/core.(*CZmqJsonRPC2).rxThread(0xc00029d088)
	/tmp/build_838_TRex_Emu_1d2de09906f0266741b2c59c2f9e2c6fa287b809/src/emu/core/rpc.go:86 +0x45 fp=0xc0000527c8 sp=0xc000052778 pc=0x7b9585
emu/core.(*CZmqJsonRPC2).StartRxThread.func1()
	/tmp/build_838_TRex_Emu_1d2de09906f0266741b2c59c2f9e2c6fa287b809/src/emu/core/rpc.go:105 +0x26 fp=0xc0000527e0 sp=0xc0000527c8 pc=0x7b9706
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc0000527e8 sp=0xc0000527e0 pc=0x466fe1
created by emu/core.(*CZmqJsonRPC2).StartRxThread
	/tmp/build_838_TRex_Emu_1d2de09906f0266741b2c59c2f9e2c6fa287b809/src/emu/core/rpc.go:105 +0x56

goroutine 1 [running]:
	goroutine running on other thread; stack unavailable

goroutine 10 [IO wait]:
internal/poll.runtime_pollWait(0x7f93d8723ad8, 0x72)
	/usr/local/go/src/runtime/netpoll.go:302 +0x89
internal/poll.(*pollDesc).wait(0xc0004da600?, 0xc0005b3000?, 0x0)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:83 +0x32
internal/poll.(*pollDesc).waitRead(...)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:88
internal/poll.(*FD).Read(0xc0004da600, {0xc0005b3000, 0x1000, 0x1000})
	/usr/local/go/src/internal/poll/fd_unix.go:167 +0x25a
net.(*netFD).Read(0xc0004da600, {0xc0005b3000?, 0x0?, 0x4?})
	/usr/local/go/src/net/fd_posix.go:55 +0x29
net.(*conn).Read(0xc0001300b0, {0xc0005b3000?, 0x0?, 0x0?})
	/usr/local/go/src/net/net.go:183 +0x45
net/http.(*persistConn).Read(0xc00012c240, {0xc0005b3000?, 0x44a5c0?, 0xc000064ec8?})
	/usr/local/go/src/net/http/transport.go:1929 +0x4e
bufio.(*Reader).fill(0xc0005a06c0)
	/usr/local/go/src/bufio/bufio.go:106 +0x103
bufio.(*Reader).Peek(0xc0005a06c0, 0x1)
	/usr/local/go/src/bufio/bufio.go:144 +0x5d
net/http.(*persistConn).readLoop(0xc00012c240)
	/usr/local/go/src/net/http/transport.go:2093 +0x1ac
created by net/http.(*Transport).dialConn
	/usr/local/go/src/net/http/transport.go:1750 +0x173e

goroutine 11 [select]:
net/http.(*persistConn).writeLoop(0xc00012c240)
	/usr/local/go/src/net/http/transport.go:2392 +0xf5
created by net/http.(*Transport).dialConn
	/usr/local/go/src/net/http/transport.go:1751 +0x1791

goroutine 23 [chan receive]:
emu/core.(*NonBlockingChan).Read(0xc0000001e0?, 0x0?)
	/tmp/build_838_TRex_Emu_1d2de09906f0266741b2c59c2f9e2c6fa287b809/src/emu/core/non_blocking_chan.go:134 +0x2f
emu/plugins/ipfix.(*FileExporter).cmdThread(0xc0000001e0)
	/tmp/build_838_TRex_Emu_1d2de09906f0266741b2c59c2f9e2c6fa287b809/src/emu/plugins/ipfix/ipfix_file_exporter.go:479 +0x76
created by emu/plugins/ipfix.NewFileExporter
	/tmp/build_838_TRex_Emu_1d2de09906f0266741b2c59c2f9e2c6fa287b809/src/emu/plugins/ipfix/ipfix_file_exporter.go:205 +0x46b

goroutine 24 [select]:
emu/plugins/ipfix.(*HttpExporter).observerThread(0xc0002aa200)
	/tmp/build_838_TRex_Emu_1d2de09906f0266741b2c59c2f9e2c6fa287b809/src/emu/plugins/ipfix/ipfix_http_exporter.go:499 +0x29e
created by emu/plugins/ipfix.NewHttpExporter
	/tmp/build_838_TRex_Emu_1d2de09906f0266741b2c59c2f9e2c6fa287b809/src/emu/plugins/ipfix/ipfix_http_exporter.go:206 +0x52a

rax    0x0
rbx    0x7f93d0ff9700
rcx    0x7f94007ad00b
rdx    0x0
rdi    0x2
rsi    0x7f93d0ff8a40
rbp    0x1
rsp    0x7f93d0ff8a40
r8     0x0
r9     0x7f93d0ff8a40
r10    0x8
r11    0x246
r12    0xffffffff
r13    0x2c01e78
r14    0x7f93d0ff9678
r15    0x2c01c18
rip    0x7f94007ad00b
rflags 0x246
cs     0x33
fs     0x0
gs     0x0
@syaakov syaakov changed the title EMU crash EMU crash with error: Assertion failed: pfd.revents & POLLIN (src/signaler.cpp:264) Sep 11, 2022
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