[riot-notifications] [RIOT] no memory left in handle_packet_fragment - when there still is plenty of memory left (#299)

benpicco notifications at github.com
Mon Nov 4 18:57:42 CET 2013


```
2013-11-04 18:48:46,283 - INFO # ERROR: no memory left! (datagram_size = 93)
2013-11-04 18:48:46,291 - INFO # ERROR: no memory left! (datagram_size = 93)
2013-11-04 18:48:46,760 - INFO # ERROR: no memory left! (datagram_size = 98)
2013-11-04 18:48:47,128 - INFO # ERROR: no memory left! (datagram_size = 108)
2013-11-04 18:48:47,144 - INFO # ERROR: no memory left! (datagram_size = 108)
2013-11-04 18:48:47,492 - INFO # ERROR: no memory left! (datagram_size = 93)
2013-11-04 18:48:47,500 - INFO # ERROR: no memory left! (datagram_size = 93)
2013-11-04 18:48:47,507 - INFO # ERROR: no memory left! (datagram_size = 93)
2013-11-04 18:48:47,515 - INFO # ERROR: no memory left! (datagram_size = 93)
```

but it looks like the memory is really used up, I'm also getting 0 from calloc elsewhere in this condition, so heap doesn't show proper values.

The timeout for keeping IP fragments is set to 15s, so broken parts are kept for quite some time, using up all the memory it seems.
However, the node never recovers from that condition (one would think that at some point it would just discard the time-outed fragments (this happens a lot before this condition appears).

```
2013-11-04 18:55:22,549 - INFO # TIMEOUT!cur_time: 149703819, temp_buf: 134266770
2013-11-04 18:55:22,555 - INFO # TIMEOUT!cur_time: 149703819, temp_buf: 134291965
2013-11-04 18:55:27,582 - INFO # TIMEOUT!cur_time: 154361222, temp_buf: 138907842
2013-11-04 18:55:27,589 - INFO # TIMEOUT!cur_time: 154361222, temp_buf: 139250848
2013-11-04 18:55:28,574 - INFO # TIMEOUT!cur_time: 155278896, temp_buf: 139983226
```

In the "no memory left" case, the timeout info is never shown again.

There are also several other data aborts originating in lowpan.c functions, indicating that something™ is going wrong while processing fragmented packets. 

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/299#issuecomment-27707023
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20131104/15de7329/attachment.html>


More information about the notifications mailing list