[riot-users] corrupt memory / pktbuf when queue size is changed

Robert Hartung hartung at ibr.cs.tu-bs.de
Thu Oct 27 09:56:32 CEST 2016


Hello everyone,

I am trying to send IEEE 802.15.4 frames between two telosb nodes. The
code is attached. It works well if I send a single packet, but not if I
send 10 packets. The output I get is:

2016-10-27 09:33:50,232 - INFO # Packet(0x1cbe) #0: hallo?
2016-10-27 09:33:50,263 - INFO # Packet(0x1db6) #7: hallo?
2016-10-27 09:33:50,293 - INFO # Packet(0x1e02) #8: hallo?
2016-10-27 09:33:50,320 - INFO # Packet(0x1db6) #62: 

You can see, that the 4th packet is corrupt. When I change the
RCV_QUEUE_SIZE to 5 the output changes to:

2016-10-27 09:35:33,096 - INFO # Packet(0x1c96) #0: hallo?
2016-10-27 09:35:33,127 - INFO # Packet(0x1d2e) #4: hallo?
2016-10-27 09:35:33,155 - INFO # Packet(0x1d2e) #132: 

When I change the RCV_QUEUE_SIZE to 8, I magically receive the packets.
And this bug does not occur!

Can anyone tell me why this happens? Do I need to change some size,
stack size, whatsoever?

Best Regards,
Robert

-- 
Robert Hartung, M.Sc.

Technische Universität Braunschweig
Institut für Betriebssysteme und Rechnerverbund
Mühlenpfordtstr. 23, Raum 115
38106 Braunschweig

Fon: +49 (531) 391 - 3264
Fax: +49 (531) 391 - 5936
E-Mail: hartung at ibr.cs.tu-bs.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: code.tar.gz
Type: application/gzip
Size: 2425 bytes
Desc: not available
URL: <http://lists.riot-os.org/pipermail/users/attachments/20161027/66963ec8/attachment.gz>


More information about the users mailing list