bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #54549] Segfault caused by makefile in make version 4.2.1


From: anonymous
Subject: [bug #54549] Segfault caused by makefile in make version 4.2.1
Date: Tue, 21 Aug 2018 18:19:51 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.9) Gecko/20100101 Goanna/4.1 Firefox/52.9 PaleMoon/28.0.0

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: address@hidden;

# 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, address@hidden \n @touch 
address@hidden
# 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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]