dhcpcd-discuss

malloc() error; coredump

Neal P. Murphy

Wed May 25 22:32:18 2016

I'm playing with getting Smoothwall Express to use IPv6. And not getting anywhere very quickly. But that's partly due to my newness to IPv6.

Something is weird.

With 6.10.3 and 6.11.0, any of these lines in the .conf:
----
ia_pd 0b:17:f2:7d/::/60 eth0/1 eth2/3
ia_pd 0b:17:f2:7d/::0/60 eth0/1 eth2/3
ia_pd 0b:17:f2:7d//60 eth0/1 eth2/3
----

causes
----
...
DUID 00:01:00:01:1b:ff:1d:50:00:90:0b:17:f2:7d
eth0: IAID 0b:17:f2:7a
eth2: IAID 0b:17:f2:7c
eth3: IAID 0b:17:f2:7d
eth3: delaying IPv6 router solicitation for 0.8 seconds
eth3: reading lease `/var/db/dhcpcd-eth3.lease6'
eth3: soliciting a DHCPv6 lease
eth3: delaying SOLICIT6 (xid 0x32dd0d), next in 0.9 seconds
eth3: soliciting an IPv6 router
*** Error in `dhcpcd': malloc(): memory corruption: 0x09c8fb50 ***
----

And dhcpcd must be killed via 'kill -9 PID'.

Since others seem to use the syntax without trouble, is it possible--or probable--that I'm building dhcpcd wrong?

As to the coredump I mentioned in the subject, *now* I can't reproduce it. I can send the coredump and unstripped binary (for 6.10.3), if desired.

Some details:
  - linux 3.4.110
  - gcc 4.7.3
  - binutils 2.22
  - glibc 2.18
  - iproute2 3.9.0
  - iptables 1.4.21
  - ISP: Comcrash
  - dhcpcd built with no special runtime options, but targetting i586

The .conf handles IPv6 only; there is a separate dhcpcd instance that handles IPv4.

N

Follow-Ups:
Re: malloc() error; coredumpRoy Marples
Re: malloc() error; coredumpRoy Marples
Archive administrator: postmaster@marples.name