|
From: | MIAOW Miao |
Subject: | Segmentation Fault on Exported Resursively Expanded Variable |
Date: | Mon, 15 Jan 2024 11:21:12 +0000 |
Hi,
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:
Commands log:
The error can be reproduced on fedora 39 with the following 2 official builds of make by fedora project:
There is NO error with gnu make 4.3, tested
both
on Ubuntu 23.04 (make 4.3-4.1build1) and fedora39 (make-4.3-1.fc33):
I think it may be caused by the new feature "shell-export". As is the "NEWS" file of Version 4.4 (31 Oct 2022):
Best regards,
Yiren Guo
|
Makefile
Description: Makefile
[Prev in Thread] | Current Thread | [Next in Thread] |