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

An error happened when dial too fast. #731

Open
wanghaEMQ opened this issue Nov 10, 2023 · 0 comments
Open

An error happened when dial too fast. #731

wanghaEMQ opened this issue Nov 10, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@wanghaEMQ
Copy link
Member

Describe the bug

An error happened when dial too fast. Maybe lock is needed somewhere.

2023-11-10 04:05:54 [175999] INFO  /home/wangha/Documents/nanomq/nng/src/supplemental/quic/msquic_dial.c:1089  msquic_open: Msquic is enabled
2023-11-10 04:05:54 [175999] WARN  /home/wangha/Documents/nanomq/nng/src/supplemental/quic/msquic_dial.c:1122  msquic_load_config: No quic TLS/SSL credentials (cacert and key) was specified.
2023-11-10 04:05:54 [175999] INFO  /home/wangha/Documents/nanomq/nng/src/supplemental/quic/msquic_dial.c:1200  msquic_conn_open: Quic connecting... jp.432121.xyz:14567
[New Thread 0x7fffc0d516c0 (LWP 176043)]
2023-11-10 04:05:54 [175999] INFO  /home/wangha/Documents/nanomq/nanomq/web_server.c:511  start_rest_server: http://0.0.0.0:8081/api/v4
NanoMQ Broker is started successfully!
2023-11-10 04:05:56 [176038] INFO  /home/wangha/Documents/nanomq/nng/src/supplemental/quic/msquic_dial.c:857  msquic_connection_cb: QUIC_CONNECTION_EVENT_DATAGRAM_STATE_CHANGED
2023-11-10 04:05:56 [176038] INFO  /home/wangha/Documents/nanomq/nng/src/supplemental/quic/msquic_dial.c:764  msquic_connection_cb: [conn][0x620000001080] is Connected. Resumed Session 0
2023-11-10 04:05:56 [176038] INFO  /home/wangha/Documents/nanomq/nng/src/supplemental/quic/msquic_dial.c:860  msquic_connection_cb: QUIC_CONNECTION_EVENT_STREAMS_AVAILABLE
2023-11-10 04:05:56 [176038] INFO  /home/wangha/Documents/nanomq/nng/src/supplemental/quic/msquic_dial.c:860  msquic_connection_cb: QUIC_CONNECTION_EVENT_STREAMS_AVAILABLE
2023-11-10 04:05:56 [176038] INFO  /home/wangha/Documents/nanomq/nng/src/supplemental/quic/msquic_dial.c:1014  msquic_strm_cb: QUIC_STREAM_EVENT_START_COMPLETE [0x618000040080] ID: 0 Status: 0
2023-11-10 04:05:56 [176013] INFO  /home/wangha/Documents/nanomq/nng/src/mqtt/transport/quic/mqtt_quic.c:1444  mqtt_quictran_dial_cb: main pipe 0x610000000240
2023-11-10 04:05:57 [176038] WARN  /home/wangha/Documents/nanomq/nng/src/supplemental/quic/msquic_dial.c:824  msquic_connection_cb: [conn][0x620000001080] Resumption ticket received (1764 bytes):

2023-11-10 04:05:57 [176018] INFO  /home/wangha/Documents/nanomq/nanomq/bridge.c:739  bridge_quic_connect_cb: Bridge client connected! RC [0]
2023-11-10 04:05:57 [176020] INFO  /home/wangha/Documents/nanomq/nanomq/apps/broker.c:278  server_cb: bridge client is connected!
2023-11-10 04:05:57 [176018] INFO  /home/wangha/Documents/nanomq/nanomq/bridge.c:740  bridge_quic_connect_cb: Local ip4 address [0.0.0.0] port [0]
2023-11-10 04:05:57 [176018] INFO  /home/wangha/Documents/nanomq/nanomq/bridge.c:752  bridge_quic_connect_cb: Quic bridge client subscribe to topic (QoS 1)cmd/#.
2023-11-10 04:06:00 [176018] INFO  /home/wangha/Documents/nanomq/nng/src/supplemental/quic/msquic_dial.c:269  nni_quic_dial: begin dialing!
2023-11-10 04:06:00 [176018] INFO  /home/wangha/Documents/nanomq/nanomq/bridge.c:752  bridge_quic_connect_cb: Quic bridge client subscribe to topic (QoS 2)cmd2/#.
2023-11-10 04:06:00 [176014] INFO  /home/wangha/Documents/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_quic_client.c:1797  mqtt_quic_ctx_send: topic_lmq sz here 2
2023-11-10 04:06:00 [176038] INFO  /home/wangha/Documents/nanomq/nng/src/supplemental/quic/msquic_dial.c:1014  msquic_strm_cb: QUIC_STREAM_EVENT_START_COMPLETE [0x618000050080] ID: 4 Status: 0
2023-11-10 04:06:05 [176014] INFO  /home/wangha/Documents/nanomq/nng/src/mqtt/transport/quic/mqtt_quic.c:1444  mqtt_quictran_dial_cb: sub pipe 0x610000018040
2023-11-10 04:06:05 [176015] INFO  /home/wangha/Documents/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_quic_client.c:1797  mqtt_quic_ctx_send: topic_lmq sz here 3
panic: appending node already on a list or not inited
This message is indicative of a BUG.
Report this at https://github.com/emqx/nanomq
2023-11-10 04:06:05 [176005] INFO  /home/wangha/Documents/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_quic_client.c:1797  mqtt_quic_ctx_send: topic_lmq sz here 4
2023-11-10 04:06:05 [176010] INFO  /home/wangha/Documents/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_quic_client.c:1797  mqtt_quic_ctx_send: topic_lmq sz here 5
2023-11-10 04:06:05 [176012] INFO  /home/wangha/Documents/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_quic_client.c:1797  mqtt_quic_ctx_send: topic_lmq sz here 6
2023-11-10 04:06:05 [176013] INFO  /home/wangha/Documents/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_quic_client.c:1797  mqtt_quic_ctx_send: topic_lmq sz here 7
2023-11-10 04:06:05 [176008] INFO  /home/wangha/Documents/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_quic_client.c:1797  mqtt_quic_ctx_send: topic_lmq sz here 8
2023-11-10 04:06:05 [176007] INFO  /home/wangha/Documents/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_quic_client.c:1797  mqtt_quic_ctx_send: topic_lmq sz here 9
/home/wangha/Documents/nanomq/build/nanomq/nanomq(nni_show_backtrace+0x9f) [0x481833]
/home/wangha/Documents/nanomq/build/nanomq/nanomq(nni_panic+0x1a8) [0x481ae3]
/home/wangha/Documents/nanomq/build/nanomq/nanomq(nni_list_append+0xb6) [0x479bce]
/home/wangha/Documents/nanomq/build/nanomq/nanomq(nni_task_dispatch+0x155) [0x48e690]
/home/wangha/Documents/nanomq/build/nanomq/nanomq() [0x4729eb]
/home/wangha/Documents/nanomq/build/nanomq/nanomq(nni_aio_finish+0x31) [0x472a1f]
/home/wangha/Documents/nanomq/build/nanomq/nanomq() [0x581e33]
/home/wangha/Documents/nanomq/build/nanomq/nanomq() [0x586d6e]2023-11-10 04:06:05 [176016] INFO  /home/wangha/Documents/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_quic_client.c:1797  mqtt_quic_ctx_send: topic_lmq sz here 10

/home/wangha/Documents/nanomq/build/nanomq/nanomq() [0x5881e8]
/home/wangha/Documents/nanomq/build/nanomq/nanomq() [0x48dcd0]
/home/wangha/Documents/nanomq/build/nanomq/nanomq() [0x48efe9]
/home/wangha/Documents/nanomq/build/nanomq/nanomq() [0x49775c]
/lib64/libc.so.6(+0x8c947) [0x7ffff72ae947]
/lib64/libc.so.6(+0x112860) [0x7ffff7334860]
2023-11-10 04:06:05 [176006] INFO  /home/wangha/Documents/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_quic_client.c:1797  mqtt_quic_ctx_send: topic_lmq sz here 11
2023-11-10 04:06:05 [176019] INFO  /home/wangha/Documents/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_quic_client.c:1797  mqtt_quic_ctx_send: topic_lmq sz here 12
2023-11-10 04:06:05 [176011] INFO  /home/wangha/Documents/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_quic_client.c:1797  mqtt_quic_ctx_send: topic_lmq sz here 13
2023-11-10 04:06:05 [176009] INFO  /home/wangha/Documents/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_quic_client.c:1797  mqtt_quic_ctx_send: topic_lmq sz here 14
2023-11-10 04:06:05 [176017] INFO  /home/wangha/Documents/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_quic_client.c:1797  mqtt_quic_ctx_send: topic_lmq sz here 15
2023-11-10 04:06:05 [176020] INFO  /home/wangha/Documents/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_quic_client.c:1797  mqtt_quic_ctx_send: topic_lmq sz here 16
2023-11-10 04:06:05 [176018] INFO  /home/wangha/Documents/nanomq/nng/src/mqtt/protocol/mqtt/mqtt_quic_client.c:1797  mqtt_quic_ctx_send: topic_lmq sz here 16

Thread 16 "nng:task" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffe4b856c0 (LWP 176014)]
0x00007ffff72b0884 in __pthread_kill_implementation () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff72b0884 in __pthread_kill_implementation () from /lib64/libc.so.6
#1  0x00007ffff725fafe in raise () from /lib64/libc.so.6
#2  0x00007ffff724887f in abort () from /lib64/libc.so.6
#3  0x00000000004952a1 in nni_plat_abort () at /home/wangha/Documents/nanomq/nng/src/platform/posix/posix_debug.c:23
#4  0x0000000000481ae8 in nni_panic (fmt=0x5f6d20 "appending node already on a list or not inited") at /home/wangha/Documents/nanomq/nng/src/core/panic.c:66
#5  0x0000000000479bce in nni_list_append (list=0x610000000140, item=0x61d000001f70) at /home/wangha/Documents/nanomq/nng/src/core/list.c:59
#6  0x000000000048e690 in nni_task_dispatch (task=0x61d000001f70) at /home/wangha/Documents/nanomq/nng/src/core/taskq.c:175
#7  0x00000000004729eb in nni_aio_finish_impl (aio=0x61d000001f50, rv=0, count=0, msg=0x0, sync=false) at /home/wangha/Documents/nanomq/nng/src/core/aio.c:456
#8  0x0000000000472a1f in nni_aio_finish (aio=0x61d000001f50, result=0, count=0) at /home/wangha/Documents/nanomq/nng/src/core/aio.c:463
#9  0x0000000000581e33 in mqtt_quictran_ep_match (ep=0x614000000040) at /home/wangha/Documents/nanomq/nng/src/mqtt/transport/quic/mqtt_quic.c:317
#10 0x0000000000586d6e in mqtt_quictran_data_pipe_start (p=0x61700002ff00, conn=0x610000018040, ep=0x614000000040) at /home/wangha/Documents/nanomq/nng/src/mqtt/transport/quic/mqtt_quic.c:1158
#11 0x00000000005881e8 in mqtt_quictran_dial_cb (arg=0x614000000040) at /home/wangha/Documents/nanomq/nng/src/mqtt/transport/quic/mqtt_quic.c:1462
#12 0x000000000048dcd0 in nni_taskq_thread (self=0x61e000000620) at /home/wangha/Documents/nanomq/nng/src/core/taskq.c:50
#13 0x000000000048efe9 in nni_thr_wrap (arg=0x61e000000628) at /home/wangha/Documents/nanomq/nng/src/core/thread.c:94
#14 0x000000000049775c in nni_plat_thr_main (arg=0x61e000000628) at /home/wangha/Documents/nanomq/nng/src/platform/posix/posix_thread.c:266
#15 0x00007ffff72ae947 in start_thread () from /lib64/libc.so.6
#16 0x00007ffff7334860 in clone3 () from /lib64/libc.so.6
@JaylinYu JaylinYu added the bug Something isn't working label Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants