Skip to main content

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

Hi Ian,

first tests are good concerning this issue.

----- Mail original -----
De: "Ian Craggs" <icraggs@xxxxxxxxxxxxxxxxxxxxxxx>
À: paho-dev@xxxxxxxxxxx
Envoyé: Mardi 22 Juillet 2014 17:29:09
Objet: Re: [paho-dev] Memory management issue

Hi Nicolas,

that is fixed now.  I was making some changes for bug #433871 (Outgoing 
messages should be able to be tracked while they are queued up).  
Initially I was intending to submit the changes to gerrit, and I thought 
the updates would be quite small so I would be finished quickly.  
However a) the changes went straight in without getting a review and b) 
not so small.

The master branch should be settled down now.  I'll make further updates 
in develop until they're good.

Ian


On 07/22/2014 03:41 PM, Nicolas GAUTHIER wrote:
> 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?)
> _______________________________________________
> paho-dev mailing list
> paho-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/paho-dev

-- 
Ian Craggs
icraggs@xxxxxxxxxx                 IBM United Kingdom
Committer on Paho, Mosquitto

_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev


Back to the top