URL: <https://savannah.gnu.org/bugs/?67701>
Summary: Segment fault in let function
Group: make
Submitter: joergboe
Submitted: Sat 15 Nov 2025 01:59:26 PM CET
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: 4.4.1
Operating System: POSIX-Based
Fixed Release: None
Triage Status: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sat 15 Nov 2025 01:59:26 PM CET By: Anonymous
Hello,
when I use the following makefile fragment I get a Segmentation fault.
Makefile:
PAIR_LIST = m_greetings.cpp
check_pair = $(let src mod rest,$1, )
checked_list ::= $(call check_pair,$(PAIR_LIST))
$(info $(checked_list))
Note: there are 2 trailing spaces in PAIR_LIST
@make
Segmentation fault (core dumped) make
The failure stack:
PID: 19887 (make)
UID: 1000 (joergboe)
GID: 1000 (joergboe)
Signal: 11 (SEGV)
Timestamp: Sat 2025-11-15 13:54:18 CET (1min 26s ago)
Command Line: make
Executable: /usr/bin/make
Control Group:
/user.slice/user-1000.slice/[email protected]/app.slice/[email protected]
Unit: [email protected]
User Unit: [email protected]
Slice: user-1000.slice
Owner UID: 1000 (joergboe)
Boot ID: 19052dede125414f9cf855f986c87585
Machine ID: 5f95a952b47c4eefb4b47d1dce5ad921
Hostname: pluto
Storage:
/var/lib/systemd/coredump/core.make.1000.19052dede125414f9cf855f986c87585.19887.1763211258000000.zst
(present)
Size on Disk: 44.4K
Message: Process 19887 (make) of user 1000 dumped core.
Stack trace of thread 19887:
#0 0x0000560cb391d973 n/a (/usr/bin/make + 0x1a973)
#1 0x0000560cb391ae83 handle_function (/usr/bin/make +
0x17e83)
#2 0x0000560cb3919e57 variable_expand_string (/usr/bin/make +
0x16e57)
#3 0x0000560cb391b4bd recursively_expand_for_file
(/usr/bin/make + 0x184bd)
#4 0x0000560cb391a1f2 variable_expand_string (/usr/bin/make +
0x171f2)
#5 0x0000560cb391dcf0 n/a (/usr/bin/make + 0x1acf0)
#6 0x0000560cb391ae83 handle_function (/usr/bin/make +
0x17e83)
#7 0x0000560cb3919e57 variable_expand_string (/usr/bin/make +
0x16e57)
#8 0x0000560cb3937d2a do_variable_definition (/usr/bin/make +
0x34d2a)
#9 0x0000560cb3938853 try_variable_definition (/usr/bin/make
+ 0x35853)
#10 0x0000560cb392a2df n/a (/usr/bin/make + 0x272df)
#11 0x0000560cb392c1be n/a (/usr/bin/make + 0x291be)
#12 0x0000560cb392c62d read_all_makefiles (/usr/bin/make +
0x2962d)
#13 0x0000560cb390fba7 main (/usr/bin/make + 0xcba7)
#14 0x00007fad78e2b2fb __libc_start_call_main (libc.so.6 +
0x2b2fb)
#15 0x00007fad78e2b3cb __libc_start_main@@GLIBC_2.34
(libc.so.6 + 0x2b3cb)
#16 0x0000560cb3911145 _start (/usr/bin/make + 0xe145)
ELF object binary architecture: AMD x86-64
There is no fault if the PAIR_LIST has only one trailing space.
_______________________________________________________
File Attachments:
Name: Makefile Size: 142B
<https://file.savannah.gnu.org/file/Makefile?file_id=57805>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-ed84fe80348165e3d4f98c86300132395c6fd7e1.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67701>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
