You may need this commit, which was after 4.1, if I read git history correctly:

commit 292da6f6867b75a5af7ddbb639a1feae022f438f
Author: Paul Smith <psm...@gnu.org>
Date:   Mon Oct 20 01:54:56 2014 -0400

    * main.c (main): [SV 43434] Handle NULL returns from ttyname().

Try getting the latest from git; see
http://savannah.gnu.org/git/?group=make

- Dan


On Fri, Oct 16, 2015 at 6:26 PM, Mark Galeck <mark_gal...@pacbell.net> wrote:
> OK, the reason when I recompile Make 4.1 (without any changes) and then it 
> immediately segfaults on my system is this:
> in the file main.c on line 1404:
> define_variable_cname ("MAKE_TERMOUT", TTYNAME (fileno (stdout)),             
>                   o_default, 0)->export = v_export;
> this is a macro that expands to :
> define_variable_in_set(("MAKE_TERMOUT"),(sizeof ("MAKE_TERMOUT") - 
> 1),(ttyname (fileno (stdout))),(o_default),(0), 
> current_variable_set_list->set,((gmk_floc *)0))                               
>              ->export = v_export;
>
> and here, the argument
> (ttyname (fileno (stdout))) has value 0
> then this is expected to be a string that later that gets passed to xstrdup 
> and that segfaults.
>       From: Tim Murphy <tnmur...@gmail.com>
>  To: Paul D. Smith <psm...@gnu.org>
> Cc: Mark Galeck <mark_gal...@pacbell.net>; "help-make@gnu.org" 
> <help-make@gnu.org>
>  Sent: Tuesday, October 13, 2015 11:04 AM
>  Subject: Re: ./configure Make sources runs, but compiled make segfaults - is 
> this a bug?
>
> Mark,
>
> I guess that maybe in your chroot you don't have gdb or strace or
> valgrind or whatever?
>
> Does your build of make crash when run outside the chroot?  If it
> does then you might be able to get it into a more normal situation.
> Dan's idea about using ldd and checking the help are good too as they
> might indicate where things are going wrong without needing any
> special tools.
>
> Regards,
>
> Tim
>
>
>
> On 13 October 2015 at 20:54, Paul Smith <psm...@gnu.org> wrote:
>> On Tue, 2015-10-13 at 17:16 +0000, Mark Galeck wrote:
>>> No any make invocation of recompiled 4.1 (without any of my changes)
>>> immediately segfaults, including make check.
>>
>> OK, well that's pretty clearly an issue with your local environment
>> then.  You'll have to debug it (Tim's suggestion of using GDB is your
>> best bet) to determine what's wrong.
>>
>>
>> _______________________________________________
>> Help-make mailing list
>> Help-make@gnu.org
>> https://lists.gnu.org/mailman/listinfo/help-make
>
>
>
> --
> You could help some brave and decent people to have access to
> uncensored news by making a donation at:
>
> http://www.thezimbabwean.co.uk/friends/
>
>
>
> _______________________________________________
> Help-make mailing list
> Help-make@gnu.org
> https://lists.gnu.org/mailman/listinfo/help-make

_______________________________________________
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to