URL: <http://savannah.gnu.org/bugs/?54549>
Summary: Segfault caused by makefile in make version 4.2.1 Project: make Submitted by: None Submitted on: Tue 21 Aug 2018 10:19:50 PM UTC Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 4.2.1 Operating System: None Fixed Release: None Triage Status: None _______________________________________________________ Details: The following makefile causes a segfault in version 4.2.1 it doesnt seem reproducible in 4.1, havent tried for any other versions. foo: -lcat # Removing second expansion prevents segfault .SECONDEXPANSION: foo: $$@.o; # Having an empty command here prevents segfault unless, # the environment is empty. `env -i make foo` # MFLAGS=-w or MAKEFLAGS=-w `env MFLAGS=-w make foo` # libcat.a target calls an extra command, `@true \n @touch $@` # odd. %.o: @true # Having an empty command prevents segfault. -l%: lib%.a @true # Not creating libcat.a here prevents segfault, libcat.a: @touch $@ _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?54549> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make