You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Connect to broker, then publish message with qos 1, then call nng_mqtt_disconnect immediately, Segmentation fault happened.
If sleep 0.5s before nng_mqtt_disconnect, process shutdown normally.
#0 ___pthread_mutex_lock (mutex=0xd) at ./nptl/pthread_mutex_lock.c:80
#1 0x00007f6c004162ad in nni_plat_mtx_lock () from /testdir/cpp/quic/NanoSDK-0.10.1/build/libnng.so.1
#2 0x00007f6c003fd7c6 in nni_aio_finish_error () from /testdir/cpp/quic/NanoSDK-0.10.1/build/libnng.so.1
#3 0x00007f6c0045c29b in mqtt_close_unack_msg_cb () from /testdir/cpp/quic/NanoSDK-0.10.1/build/libnng.so.1
#4 0x00007f6c003fffc4 in nni_id_map_foreach () from /testdir/cpp/quic/NanoSDK-0.10.1/build/libnng.so.1
#5 0x00007f6c0041cb13 in quic_mqtt_stream_close () from /testdir/cpp/quic/NanoSDK-0.10.1/build/libnng.so.1
#6 0x00007f6c0045caeb in quic_connection_cb () from /testdir/cpp/quic/NanoSDK-0.10.1/build/libnng.so.1
#7 0x00007f6c000c3b23 in QuicConnOnShutdownComplete () from /testdir/cpp/quic/NanoSDK-0.10.1/extern/msquic/build/bin/Release/libmsquic.so.2
#8 0x00007f6c000cbb78 in QuicConnDrainOperations () from /testdir/cpp/quic/NanoSDK-0.10.1/extern/msquic/build/bin/Release/libmsquic.so.2
#9 0x00007f6c000bb453 in QuicWorkerProcessConnection () from /testdir/cpp/quic/NanoSDK-0.10.1/extern/msquic/build/bin/Release/libmsquic.so.2
#10 0x00007f6c000bb850 in QuicWorkerLoop () from /testdir/cpp/quic/NanoSDK-0.10.1/extern/msquic/build/bin/Release/libmsquic.so.2
#11 0x00007f6c000e9a13 in CxPlatRunExecutionContexts () from /testdir/cpp/quic/NanoSDK-0.10.1/extern/msquic/build/bin/Release/libmsquic.so.2
#12 0x00007f6c000e9c10 in CxPlatWorkerThread () from /testdir/cpp/quic/NanoSDK-0.10.1/extern/msquic/build/bin/Release/libmsquic.so.2
#13 0x00007f6bffc81ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#14 0x00007f6bffd13850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
The text was updated successfully, but these errors were encountered:
Describe the bug
Connect to broker, then publish message with qos 1, then call nng_mqtt_disconnect immediately, Segmentation fault happened.
If sleep 0.5s before nng_mqtt_disconnect, process shutdown normally.
Environment Details
Additional context
code
core file stack
The text was updated successfully, but these errors were encountered: