Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] Memory management issue

Hi guys,

we are currently in development pĥase and so, we use paho everyday. Since today pulls on master, we are expecting some crashs.
We are using an ARM board Debian based.
We think that this crash occur just after reconnection.
We send you few more traces and hope we can help you to fix the problem.
If you need, request more informations. 

Thank you.

Application traces on runtime (application launched with MQTT_C_CLIENT_TRACE=ON MQTT_C_CLIENT_TRACE_LEVEL=PROTOCOL) :

20140722 142111.300 7 client2 -> PUBLISH msgid: 78 qos: 1 retained: 1 (0) payload: 66
20140722 142111.302 7 client2 <- PUBACK msgid: 78
20140722 142112.300 9 client1 -> PUBLISH msgid: 7 qos: 1 retained: 1 (0) payload: 58
20140722 142112.303 9 client1 <- PUBACK msgid: 7
20140722 142126.364 7 client2 -> PINGREQ (0)
20140722 142126.365 9 client1 -> PINGREQ (0)
20140722 142126.369 7 client2 -> DISCONNECT (-1)
20140722 142126.369 Failed to remove heap item at file src/MQTTAsync.c line 843
20140722 142126.370 Failed to remove heap item at file src/MQTTAsync.c line 844
20140722 142126.370 Failed to remove heap item at file src/MQTTAsync.c line 845
20140722 142126.370 Failed to remove heap item at file src/MQTTAsync.c line 843
20140722 142126.370 Failed to remove heap item at file src/MQTTAsync.c line 844
20140722 142126.370 Failed to remove heap item at file src/MQTTAsync.c line 845
20140722 142126.370 Failed to remove heap item at file src/MQTTAsync.c line 843
20140722 142126.370 Failed to remove heap item at file src/MQTTAsync.c line 844
20140722 142126.370 Failed to remove heap item at file src/MQTTAsync.c line 845
20140722 142126.376 7 client2 -> CONNECT cleansession: 1 (0)
20140722 142126.379 9 client1 <- PINGRESP
20140722 142127.381 7 client2 -> CONNECT cleansession: 1 (0)
20140722 142127.383 7 client2 <- CONNACK rc: 0
20140722 142127.383 Failed to remove heap item at file src/MQTTAsync.c line 843
20140722 142127.383 Failed to remove heap item at file src/MQTTAsync.c line 844
20140722 142127.383 Failed to remove heap item at file src/MQTTAsync.c line 845
20140722 142127.383 Failed to remove heap item at file src/MQTTAsync.c line 843
20140722 142127.383 Failed to remove heap item at file src/MQTTAsync.c line 844
20140722 142127.383 Failed to remove heap item at file src/MQTTAsync.c line 845
20140722 142127.383 Failed to remove heap item at file src/MQTTAsync.c line 843
20140722 142127.383 Failed to remove heap item at file src/MQTTAsync.c line 844
20140722 142127.385 Failed to remove heap item at file src/MQTTAsync.c line 845
20140722 142127.385 Failed to remove heap item at file src/MQTTAsync.c line 843
20140722 142127.385 Failed to remove heap item at file src/MQTTAsync.c line 844
20140722 142127.385 Failed to remove heap item at file src/MQTTAsync.c line 845
20140722 142127.385 Failed to remove heap item at file src/MQTTAsync.c line 843
20140722 142127.385 Failed to remove heap item at file src/MQTTAsync.c line 844
20140722 142127.385 Failed to remove heap item at file src/MQTTAsync.c line 845
20140722 142127.385 Failed to remove heap item at file src/MQTTAsync.c line 843
20140722 142127.385 Failed to remove heap item at file src/MQTTAsync.c line 844
20140722 142127.385 Failed to remove heap item at file src/MQTTAsync.c line 845
20140722 142127.385 Failed to remove heap item at file src/MQTTAsync.c line 843
20140722 142127.385 Failed to remove heap item at file src/MQTTAsync.c line 844
20140722 142127.385 Failed to remove heap item at file src/MQTTAsync.c line 845
20140722 142127.393 7 client2 -> SUBSCRIBE msgid: 5 (0)
20140722 142127.395 7 client2 -> SUBSCRIBE msgid: 5 (0)
20140722 142127.396 7 client2 -> SUBSCRIBE msgid: 5 (0)
20140722 142127.396 7 client2 -> SUBSCRIBE msgid: 5 (0)
20140722 142127.401 7 client2 -> PUBLISH msgid: 5 qos: 1 retained: 1 (0) payload: true
20140722 142127.402 7 client2 <- SUBACK msgid: 5
20140722 142127.403 7 client2 <- PUBLISH msgid: 1 qos: 1 retained: 1 payload: 1
20140722 142127.404 7 client2 -> PUBACK msgid: 1 (0)
20140722 142127.405 7 client2 <- SUBACK msgid: 5
20140722 142127.406 7 client2 <- PUBLISH msgid: 2 qos: 1 retained: 1 payload: 60
20140722 142127.406 7 client2 -> PUBACK msgid: 2 (0)
20140722 142127.409 7 client2 <- SUBACK msgid: 5
20140722 142127.410 7 client2 <- PUBLISH msgid: 3 qos: 1 retained: 1 payload: 100
20140722 142127.410 7 client2 -> PUBACK msgid: 3 (0)
Segmentation fault (core dumped)

Backtrace GDB :

(gdb) bt
#0  0xb6f376a0 in isReady () from ./libpaho-mqtt3a.so.1
#1  0xb6f38112 in Socket_getReadySocket () from ./libpaho-mqtt3a.so.1
#2  0xb6f35c78 in MQTTAsync_cycle () from ./libpaho-mqtt3a.so.1
#3  0xb6f35fec in MQTTAsync_receiveThread () from ./libpaho-mqtt3a.so.1
#4  0xb6ab1ebc in start_thread (arg=0xb5e80450) at pthread_create.c:306
#5  0xb6920328 in ?? () at ../ports/sysdeps/unix/sysv/linux/arm/nptl/../clone.S:116 from /lib/arm-linux-gnueabihf/libc.so.6
#6  0xb6920328 in ?? () at ../ports/sysdeps/unix/sysv/linux/arm/nptl/../clone.S:116 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)


Back to the top