Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Apr 2016 13:07:39 -0700
From:      "Simon J. Gerraty" <sjg@juniper.net>
To:        <marquis@roble.com>
Cc:        <freebsd-current@freebsd.org>, <sjg@juniper.net>
Subject:   Re: /usr/bin/make segmentation fault
Message-ID:  <32827.1459627659@kaos.jnpr.net>
In-Reply-To: <60ca824e-3e02-46b2-b440-900d4184c1fd@BL2FFO11FD055.protection.gbl>
References:  <60ca824e-3e02-46b2-b440-900d4184c1fd@BL2FFO11FD055.protection.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
Roger Marquis <marquis@roble.com> wrote:

> Don't know how to debug this and cannot post the Makefile in question but it

Can you provide something similar that triggers the issue?
It's rather hard to tell what's wrong without knowing what *should* be
happening.

> last worked in 8.4.  In 11-CURRENT Var_Value appears to return NULL at
> /usr/src/contrib/bmake/compat.c:621
> 
>   Var_Set(IMPSRC, Var_Value(TARGET, gn, &p1), pgn, 0);
> 
> which passes the NULL to Var_Set as the second argument (val) where,
> eventually, /usr/src/contrib/bmake/var.c:973

Which means TARGET hasn't been set, and there's probably something
rather interesting about your makefile ;-)
This should of course never happen.

Even if Var_Set checked the failure and returned harmlessly you have a
serious problem.

> Any and all pointers appreciated,

What is content of gn at

> #2  0x0000000000402040 in Compat_Make (gnp=0x800a1c340,
> #pgnp=0x800a1df00)
> at /usr/src/contrib/bmake/compat.c:621



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32827.1459627659>