dhcpcd-discuss

Re: 7.1.0 kernel crash on FreeBSD r12.0

Roy Marples

Wed Jan 23 19:26:23 2019

On 23/01/2019 18:45, Athan Papadimitriou wrote:
On Wed, Jan 23, 2019 at 3:49 PM Roy Marples <roy@xxxxxxxxxxxx <mailto:roy@xxxxxxxxxxxx>> wrote:
    Can you try this patch please?
    diff --git a/src/if-bsd.c b/src/if-bsd.c
    index a5338624..820ecc9c 100644
    --- a/src/if-bsd.c
    +++ b/src/if-bsd.c
    @@ -501,7 +501,7 @@ if_route(unsigned char cmd, const struct rt *rt)
                          !sa_is_loopback(&rt->rt_gateway))
                      {
                              rtm->rtm_index = (unsigned
    short)rt->rt_ifp->index;
    -#ifdef __OpenBSD__
    +#if defined(__OpenBSD__) || defined(__FreeBSD__)
                              if (!gateway_unspec ||
    rt->rt_dest.sa_family!=AF_INET6)
       #endif
                              rtm->rtm_addrs |= RTA_IFP;

    Roy


It works! Well done Roy!

I will have it running for awhile and keep you informed if another issue arise...

Could you please post a full debug log so we can see if it's a dhcpcd or FreeBSD error please? I suspect FreeBSD.
Add this to /etc/dhcpcd.conf

debug
logfile /var/log/dhcpcd.log

Restart dhcpcd, wait for it to finish and then post the logfile here.

Roy

Follow-Ups:
Re: 7.1.0 kernel crash on FreeBSD r12.0Athan Papadimitriou
References:
7.1.0 kernel crash on FreeBSD r12.0Athan Papadimitriou
Re: 7.1.0 kernel crash on FreeBSD r12.0Roy Marples
Re: 7.1.0 kernel crash on FreeBSD r12.0Athan Papadimitriou
Re: 7.1.0 kernel crash on FreeBSD r12.0Roy Marples
Re: 7.1.0 kernel crash on FreeBSD r12.0Athan Papadimitriou
Archive administrator: postmaster@marples.name