On Mon, 2024-01-15 at 11:21 +0000, MIAOW Miao wrote: > I found name of exported resursively expanded variable with $(shell > ...) cannot be too long in gnu make version >= 4.4, otherwise a > segmentation fault is triggled. I'm not sure if variable-name-too- > long is a bug. However, make is > supposed to tell me what's going wrong. > > Here is a Makefile that can reproduce the segmentation fault: > > THIS_LONG_VARIABLE_NAME_PREDUCE_THE_ERROR= $(shell echo hello) > > exportTHIS_LONG_VARIABLE_NAME_PREDUCE_THE_ERROR > > > > all: ; echo "abc"
I was not able to reproduce this problem, either with my own build of GNU Make 4.4.1 or with a binary extracted from the RPM from the link you provided. I tried running under valgrind and with a binary compiled with ASAN, with and withoug debugging enabled, ran the test 1000 times. I also tried GNU Make 4.4. If you can generate a coredump please examine it with GDB and send along at least the backtrace. -- Paul D. Smith <psm...@gnu.org> Find some GNU make tips at: https://www.gnu.org http://make.mad-scientist.net "Please remain calm...I may be mad, but I am a professional." --Mad Scientist