nabovarme / MeterLogger

Wireless MeterLogger for Kamstrup heat energy meters and pulse based meters
MIT License
22 stars 8 forks source link

heap memory leak #27

Closed st0ff3r closed 9 years ago

st0ff3r commented 9 years ago

MacBook:tmp stoffer$ perl -ne 'if (/\/sample\/v1\/\d+\/(.?)\s+(heap=)(\d+)(.)/) {if ($3 ne $last) {print localtime($1) . "\t$3\n"} $last = $3}' < c.txt
Wed Apr 1 23:06:20 2015 13088 Thu Apr 2 00:02:30 2015 13096 Thu Apr 2 00:07:31 2015 12816 Thu Apr 2 01:08:31 2015 12568 Thu Apr 2 02:10:31 2015 12320 Thu Apr 2 03:03:31 2015 12264 Thu Apr 2 03:11:31 2015 12016 Thu Apr 2 04:12:31 2015 11768 Thu Apr 2 05:13:31 2015 11520 Thu Apr 2 06:14:31 2015 11272 Thu Apr 2 07:15:31 2015 11024 Thu Apr 2 08:16:32 2015 10776 Thu Apr 2 09:09:32 2015 10720 Thu Apr 2 09:17:32 2015 10472 Thu Apr 2 10:18:32 2015 10224 Thu Apr 2 11:19:32 2015 9976 Thu Apr 2 12:21:32 2015 9728 Thu Apr 2 13:22:32 2015 9480 Thu Apr 2 14:23:33 2015 9232 Thu Apr 2 15:24:33 2015 8984 Thu Apr 2 16:25:33 2015 8736 Thu Apr 2 17:12:33 2015 8680 Thu Apr 2 17:26:33 2015 8432 Thu Apr 2 18:27:33 2015 8184 Thu Apr 2 19:29:33 2015 7936 Thu Apr 2 20:19:33 2015 7880 Thu Apr 2 20:29:34 2015 7632 Thu Apr 2 21:30:34 2015 7384 Thu Apr 2 22:32:34 2015 7136 Thu Apr 2 23:33:34 2015 6888 Fri Apr 3 00:34:34 2015 6640 Fri Apr 3 01:35:34 2015 6392

st0ff3r commented 9 years ago

23:06:17.811480 IP 10.0.2.12.40042 > 77.66.37.130.123: NTPv4, Client, length 48 23:06:17.815018 IP 77.66.37.130.123 > 10.0.2.12.40042: NTPv4, Server, length 48 00:07:24.059045 IP 10.0.2.12.40450 > 194.239.123.230.123: NTPv4, Client, length 48 00:07:24.079022 IP 194.239.123.230.123 > 10.0.2.12.40450: NTPv4, Server, length 48 01:08:30.099314 IP 10.0.2.12.23154 > 193.200.91.90.123: NTPv4, Client, length 48 01:08:30.106810 IP 193.200.91.90.123 > 10.0.2.12.23154: NTPv4, Server, length 48 02:09:36.401765 IP 10.0.2.12.5858 > 78.156.100.202.123: NTPv4, Client, length 48 02:09:36.408960 IP 78.156.100.202.123 > 10.0.2.12.5858: NTPv4, Server, length 48 03:10:42.359402 IP 10.0.2.12.38562 > 193.162.159.97.123: NTPv4, Client, length 48 03:10:42.372548 IP 193.162.159.97.123 > 10.0.2.12.38562: NTPv4, Server, length 48 04:11:48.551150 IP 10.0.2.12.21266 > 77.66.33.146.123: NTPv4, Client, length 48 04:11:48.558934 IP 77.66.33.146.123 > 10.0.2.12.21266: NTPv4, Server, length 48 05:12:54.840879 IP 10.0.2.12.3968 > 193.200.91.90.123: NTPv4, Client, length 48 05:12:54.848234 IP 193.200.91.90.123 > 10.0.2.12.3968: NTPv4, Server, length 48 06:14:00.844162 IP 10.0.2.12.3970 > 195.234.155.123.123: NTPv4, Client, length 48 06:14:00.847698 IP 195.234.155.123.123 > 10.0.2.12.3970: NTPv4, Server, length 48 07:15:06.974040 IP 10.0.2.12.36674 > 83.151.158.44.123: NTPv4, Client, length 48 07:15:06.978181 IP 83.151.158.44.123 > 10.0.2.12.36674: NTPv4, Server, length 48 08:16:13.121782 IP 10.0.2.12.19380 > 217.198.219.102.123: NTPv4, Client, length 48 08:16:13.129010 IP 217.198.219.102.123 > 10.0.2.12.19380: NTPv4, Server, length 48 09:17:19.270573 IP 10.0.2.12.2082 > 194.239.123.230.123: NTPv4, Client, length 48 09:17:19.276067 IP 194.239.123.230.123 > 10.0.2.12.2082: NTPv4, Server, length 48 10:18:25.563167 IP 10.0.2.12.34788 > 77.66.33.146.123: NTPv4, Client, length 48 10:18:25.568473 IP 77.66.33.146.123 > 10.0.2.12.34788: NTPv4, Server, length 48 11:19:31.706883 IP 10.0.2.12.17490 > 194.239.123.230.123: NTPv4, Client, length 48 11:19:31.712765 IP 194.239.123.230.123 > 10.0.2.12.17490: NTPv4, Server, length 48 12:20:37.712968 IP 10.0.2.12.1218 > 193.200.91.90.123: NTPv4, Client, length 48 12:20:37.722065 IP 193.200.91.90.123 > 10.0.2.12.1218: NTPv4, Server, length 48 13:21:43.860274 IP 10.0.2.12.1045 > 194.239.123.230.123: NTPv4, Client, length 48 13:21:43.867488 IP 194.239.123.230.123 > 10.0.2.12.1045: NTPv4, Server, length 48 14:22:50.002649 IP 10.0.2.12.32958 > 78.157.115.4.123: NTPv4, Client, length 48 14:22:50.010116 IP 78.157.115.4.123 > 10.0.2.12.32958: NTPv4, Server, length 48 15:23:56.149507 IP 10.0.2.12.15602 > 217.198.219.102.123: NTPv4, Client, length 48 15:23:56.158273 IP 217.198.219.102.123 > 10.0.2.12.15602: NTPv4, Server, length 48 16:25:02.849015 IP 10.0.2.12.48306 > 193.200.91.90.123: NTPv4, Client, length 48 16:25:02.860762 IP 193.200.91.90.123 > 10.0.2.12.48306: NTPv4, Server, length 48 17:26:08.443431 IP 10.0.2.12.31010 > 77.66.33.146.123: NTPv4, Client, length 48 17:26:08.446900 IP 77.66.33.146.123 > 10.0.2.12.31010: NTPv4, Server, length 48 18:27:14.592875 IP 10.0.2.12.13712 > 77.243.43.213.123: NTPv4, Client, length 48 18:27:14.596861 IP 77.243.43.213.123 > 10.0.2.12.13712: NTPv4, Server, length 48 19:28:20.741586 IP 10.0.2.12.46418 > 217.116.227.3.123: NTPv4, Client, length 48 19:28:20.744376 IP 217.116.227.3.123 > 10.0.2.12.46418: NTPv4, Server, length 48 20:29:27.225451 IP 10.0.2.12.46416 > 193.200.91.90.123: NTPv4, Client, length 48 20:29:27.243273 IP 193.200.91.90.123 > 10.0.2.12.46416: NTPv4, Server, length 48 21:30:33.018355 IP 10.0.2.12.29122 > 193.200.91.90.123: NTPv4, Client, length 48 21:30:33.025531 IP 193.200.91.90.123 > 10.0.2.12.29122: NTPv4, Server, length 48 22:31:39.182791 IP 10.0.2.12.11824 > 77.66.37.130.123: NTPv4, Client, length 48 22:31:39.186380 IP 77.66.37.130.123 > 10.0.2.12.11824: NTPv4, Server, length 48 23:32:45.303848 IP 10.0.2.12.44530 > 83.151.158.44.123: NTPv4, Client, length 48 23:32:45.309380 IP 83.151.158.44.123 > 10.0.2.12.44530: NTPv4, Server, length 48 00:33:51.472876 IP 10.0.2.12.27236 > 193.200.91.90.123: NTPv4, Client, length 48 00:33:51.483154 IP 193.200.91.90.123 > 10.0.2.12.27236: NTPv4, Server, length 48 01:34:57.598854 IP 10.0.2.12.9938 > 193.200.91.90.123: NTPv4, Client, length 48 01:34:57.609345 IP 193.200.91.90.123 > 10.0.2.12.9938: NTPv4, Server, length 48

ntp is leaking!

st0ff3r commented 9 years ago

in ntp.c:

void ICACHE_FLASH_ATTR ntp_udpclient_sent_cb(void *arg) { //Causing Crash. To be fixed //espconn_delete(pCon); //os_free(pCon->proto.udp); //os_free(pCon); }