dhcpcd-discuss

Re: malloc() error; coredump

Neal P. Murphy

Thu May 26 23:10:36 2016

On Thu, 26 May 2016 22:45:33 +0100
Roy Marples <roy@xxxxxxxxxxxx> wrote:

> On 2016-05-26 21:12, Neal P. Murphy wrote:
> > (Had to figure out how to make the build system use '-g'....) This is
> > dhcpcd.trunk (even though it looks like 6.11.0).
> > 
> > OK. Built with -g. Have gdb on the target. Run with and still get the
> > memory corruption; even gdb is hung up. So run it without gdb, then
> > attach gdb to dhcpcd once it's hung, and use 'gcore' to generate a
> > coredump. Looks like something is thoroughly stomping on the stack.
> > This is all I get:
> 
> I'm not entirely sure what to make of that really.
> Can you run dhcpcd using valgrind to try and track the memory error as 
> that's the best tool for this I find.
> 
> Roy

See attached logs (dhcpcd and valgrind).

Running under valgrind, the memory error hang doesn't happen. But the leases don't happen either. (Trying to get a /128 for the internet IF, and a /60 to split among the three internal interfaces.)

N
May 26 19:00:55 dhcpcd-6.11.0 starting
May 26 19:00:56 dev: loaded udev
May 26 19:00:57 eth0: if_disable_autolinklocal: Operation not supported
May 26 19:00:58 eth2: if_disable_autolinklocal: Operation not supported
May 26 19:00:58 eth3: if_disable_autolinklocal: Operation not supported
May 26 19:00:58 eth0: executing `/etc/rc.d/rc.update6red' PREINIT
May 26 19:00:58 eth0: executing `/etc/rc.d/rc.update6red' CARRIER
May 26 19:00:58 eth2: executing `/etc/rc.d/rc.update6red' PREINIT
May 26 19:00:58 eth2: executing `/etc/rc.d/rc.update6red' CARRIER
May 26 19:00:58 eth3: executing `/etc/rc.d/rc.update6red' PREINIT
May 26 19:00:59 eth3: executing `/etc/rc.d/rc.update6red' CARRIER
May 26 19:00:59 DUID 00:01:00:01:1b:ff:1d:50:00:90:0b:17:f2:7d
May 26 19:00:59 eth0: IAID 0b:17:f2:7a
May 26 19:00:59 eth2: IAID 0b:17:f2:7c
May 26 19:00:59 eth3: IAID 0b:17:f2:7d
May 26 19:00:59 eth3: delaying IPv6 router solicitation for 0.3 seconds
May 26 19:00:59 eth3: reading lease `/var/db/dhcpcd-eth3.lease6'
May 26 19:00:59 eth3: soliciting a DHCPv6 lease
May 26 19:00:59 eth3: delaying SOLICIT6 (xid 0xfa1640), next in 0.5 seconds
May 26 19:00:59 eth3: soliciting an IPv6 router
May 26 19:01:00 eth3: sending Router Solicitation
May 26 19:01:00 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:01:00 eth3: adding default route via fe80::201:5cff:fe33:1841
May 26 19:01:00 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:01:00 eth3: broadcasting SOLICIT6 (xid 0xfa1640), next in 1.0 seconds
May 26 19:01:00 eth3: IAID 0b:17:f2:7d: option type mismatch
May 26 19:01:00 eth3: ADV 2001:558:6036:1b:c59b:fc43:9b88:4ad6/128 from fe80::201:5cff:fe33:1841
May 26 19:01:00 eth3: broadcasting REQUEST6 (xid 0xbd7281), next in 0.9 seconds
May 26 19:01:00 eth3: wrong xid 0xfa1640 (expecting 0xbd7281) from fe80::201:5cff:fe33:1841
May 26 19:01:01 eth3: broadcasting REQUEST6 (xid 0xbd7281), next in 1.9 seconds
May 26 19:01:03 eth3: broadcasting REQUEST6 (xid 0xbd7281), next in 3.9 seconds
May 26 19:01:03 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:01:03 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:01:07 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:01:07 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:01:07 eth3: broadcasting REQUEST6 (xid 0xbd7281), next in 7.7 seconds
May 26 19:01:25 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:01:25 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:01:26 eth3: broadcasting REQUEST6 (xid 0xbd7281), next in 15.8 seconds
May 26 19:01:26 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:01:26 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:01:26 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:01:26 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:01:26 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:01:26 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:01:26 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:01:26 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:01:27 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:01:27 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:01:29 timed out
May 26 19:01:29 forking to background
May 26 19:01:29 forked to background, child pid 6326
May 26 19:01:30 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:01:30 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:01:33 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:01:33 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:01:37 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:01:37 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:01:40 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:01:40 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:01:41 eth3: broadcasting REQUEST6 (xid 0xbd7281), next in 32.7 seconds
May 26 19:01:44 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:01:44 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:01:47 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:01:47 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:01:51 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:01:51 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:01:54 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:01:54 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:01:58 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:01:58 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:02:02 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:02:02 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:02:05 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:02:05 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:02:08 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:02:08 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:02:12 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:02:12 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:02:14 eth3: broadcasting REQUEST6 (xid 0xbd7281), next in 32.7 seconds
May 26 19:02:15 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:02:15 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:02:19 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:02:19 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:02:23 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:02:23 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:02:26 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:02:26 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:02:30 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:02:30 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:02:33 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:02:33 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:02:36 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:02:36 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:02:40 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:02:40 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:02:43 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:02:43 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:02:47 eth3: broadcasting REQUEST6 (xid 0xbd7281), next in 32.5 seconds
May 26 19:02:47 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:02:47 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:02:51 eth3: Router Advertisement from fe80::201:5cff:fe33:1841
May 26 19:02:51 eth3: executing `/etc/rc.d/rc.update6red' ROUTERADVERT
May 26 19:02:53 received SIGTERM, stopping
May 26 19:02:53 eth2: removing interface
May 26 19:02:53 eth2: executing `/etc/rc.d/rc.update6red' STOPPED
May 26 19:02:53 eth0: removing interface
May 26 19:02:53 eth0: executing `/etc/rc.d/rc.update6red' STOPPED
May 26 19:02:54 eth3: removing interface
May 26 19:02:54 eth3: executing `/etc/rc.d/rc.update6red' STOPPED
May 26 19:02:54 dev: unloaded udev
May 26 19:02:55 dhcpcd exited
==5999== Memcheck, a memory error detector
==5999== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==5999== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==5999== Command: dhcpcd -6 -f /root/dhcpcd6.conf
==5999== Parent PID: 1275
==5999== 
==5999== Invalid write of size 4
==5999==    at 0x807A24E: dhcp6_makemessage (dhcp6.c:798)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999==  Address 0x4255355 is 0 bytes after a block of size 181 alloc'd
==5999==    at 0x40290DF: malloc (vg_replace_malloc.c:299)
==5999==    by 0x8079BE2: dhcp6_makemessage (dhcp6.c:693)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999== 
==5999== Invalid write of size 4
==5999==    at 0x807A262: dhcp6_makemessage (dhcp6.c:799)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999==  Address 0x4255359 is 4 bytes after a block of size 181 alloc'd
==5999==    at 0x40290DF: malloc (vg_replace_malloc.c:299)
==5999==    by 0x8079BE2: dhcp6_makemessage (dhcp6.c:693)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999== 
==5999== Invalid write of size 2
==5999==    at 0x807A3D6: dhcp6_makemessage (dhcp6.c:834)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999==  Address 0x425535d is 8 bytes after a block of size 181 alloc'd
==5999==    at 0x40290DF: malloc (vg_replace_malloc.c:299)
==5999==    by 0x8079BE2: dhcp6_makemessage (dhcp6.c:693)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999== 
==5999== Invalid write of size 2
==5999==    at 0x807A3DC: dhcp6_makemessage (dhcp6.c:835)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999==  Address 0x425535f is 10 bytes after a block of size 181 alloc'd
==5999==    at 0x40290DF: malloc (vg_replace_malloc.c:299)
==5999==    by 0x8079BE2: dhcp6_makemessage (dhcp6.c:693)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999== 
==5999== Invalid read of size 2
==5999==    at 0x807A3F0: dhcp6_makemessage (dhcp6.c:839)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999==  Address 0x425535f is 10 bytes after a block of size 181 alloc'd
==5999==    at 0x40290DF: malloc (vg_replace_malloc.c:299)
==5999==    by 0x8079BE2: dhcp6_makemessage (dhcp6.c:693)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999== 
==5999== Invalid write of size 2
==5999==    at 0x807A417: dhcp6_makemessage (dhcp6.c:840)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999==  Address 0x4255361 is 12 bytes after a block of size 181 alloc'd
==5999==    at 0x40290DF: malloc (vg_replace_malloc.c:299)
==5999==    by 0x8079BE2: dhcp6_makemessage (dhcp6.c:693)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999== 
==5999== Invalid write of size 2
==5999==    at 0x807A41D: dhcp6_makemessage (dhcp6.c:841)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999==  Address 0x4255363 is 14 bytes after a block of size 181 alloc'd
==5999==    at 0x40290DF: malloc (vg_replace_malloc.c:299)
==5999==    by 0x8079BE2: dhcp6_makemessage (dhcp6.c:693)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999== 
==5999== Invalid write of size 2
==5999==    at 0x807A4FB: dhcp6_makemessage (dhcp6.c:862)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999==  Address 0x4255365 is 16 bytes after a block of size 181 alloc'd
==5999==    at 0x40290DF: malloc (vg_replace_malloc.c:299)
==5999==    by 0x8079BE2: dhcp6_makemessage (dhcp6.c:693)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999== 
==5999== Invalid read of size 2
==5999==    at 0x807A505: dhcp6_makemessage (dhcp6.c:864)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999==  Address 0x4255363 is 14 bytes after a block of size 181 alloc'd
==5999==    at 0x40290DF: malloc (vg_replace_malloc.c:299)
==5999==    by 0x8079BE2: dhcp6_makemessage (dhcp6.c:693)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999== 
==5999== Invalid write of size 2
==5999==    at 0x807A50F: dhcp6_makemessage (dhcp6.c:864)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999==  Address 0x4255363 is 14 bytes after a block of size 181 alloc'd
==5999==    at 0x40290DF: malloc (vg_replace_malloc.c:299)
==5999==    by 0x8079BE2: dhcp6_makemessage (dhcp6.c:693)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999== 
==5999== Invalid read of size 2
==5999==    at 0x807A628: dhcp6_makemessage (dhcp6.c:887)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999==  Address 0x4255363 is 14 bytes after a block of size 181 alloc'd
==5999==    at 0x40290DF: malloc (vg_replace_malloc.c:299)
==5999==    by 0x8079BE2: dhcp6_makemessage (dhcp6.c:693)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999== 
==5999== Invalid write of size 2
==5999==    at 0x807A63A: dhcp6_makemessage (dhcp6.c:887)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999==  Address 0x4255363 is 14 bytes after a block of size 181 alloc'd
==5999==    at 0x40290DF: malloc (vg_replace_malloc.c:299)
==5999==    by 0x8079BE2: dhcp6_makemessage (dhcp6.c:693)
==5999==    by 0x807BDCD: dhcp6_startrequest (dhcp6.c:1503)
==5999==    by 0x807F93B: dhcp6_handledata (dhcp6.c:2961)
==5999==    by 0x8052B34: eloop_start (eloop.c:950)
==5999==    by 0x8051490: main (dhcpcd.c:1926)
==5999== 
==5999== 
==5999== HEAP SUMMARY:
==5999==     in use at exit: 2,077 bytes in 10 blocks
==5999==   total heap usage: 2,373 allocs, 2,363 frees, 553,296 bytes allocated
==5999== 
==5999== LEAK SUMMARY:
==5999==    definitely lost: 0 bytes in 0 blocks
==5999==    indirectly lost: 0 bytes in 0 blocks
==5999==      possibly lost: 0 bytes in 0 blocks
==5999==    still reachable: 2,077 bytes in 10 blocks
==5999==         suppressed: 0 bytes in 0 blocks
==5999== Rerun with --leak-check=full to see details of leaked memory
==5999== 
==5999== For counts of detected and suppressed errors, rerun with: -v
==5999== ERROR SUMMARY: 27 errors from 12 contexts (suppressed: 0 from 0)
==6326== 
==6326== HEAP SUMMARY:
==6326==     in use at exit: 2,077 bytes in 10 blocks
==6326==   total heap usage: 4,667 allocs, 4,657 frees, 789,091 bytes allocated
==6326== 
==6326== LEAK SUMMARY:
==6326==    definitely lost: 0 bytes in 0 blocks
==6326==    indirectly lost: 0 bytes in 0 blocks
==6326==      possibly lost: 0 bytes in 0 blocks
==6326==    still reachable: 2,077 bytes in 10 blocks
==6326==         suppressed: 0 bytes in 0 blocks
==6326== Rerun with --leak-check=full to see details of leaked memory
==6326== 
==6326== For counts of detected and suppressed errors, rerun with: -v
==6326== ERROR SUMMARY: 27 errors from 12 contexts (suppressed: 0 from 0)

References:
malloc() error; coredumpNeal P. Murphy
Re: malloc() error; coredumpRoy Marples
Re: malloc() error; coredumpNeal P. Murphy
Re: malloc() error; coredumpRoy Marples
Archive administrator: postmaster@marples.name