bug-make
[Top][All Lists]
Advanced

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

[bug #41983] $(file) function crashes make


From: Timothy N Murphy
Subject: [bug #41983] $(file) function crashes make
Date: Thu, 27 Mar 2014 22:40:01 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0

Follow-up Comment #1, bug #41983 (project make):

A makefile containing only:

$(file >>4touch)

Crashes make for me.

my git tree is uptodate at:

commit 8411528fdd21e978076365df2f49e2b934becb84

Valgrind reports this:

==7794== Invalid read of size 1
==7794==    at 0x4A092F2: strlen (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==7794==    by 0x40E374: func_file (function.c:2159)
==7794==    by 0x410A88: handle_function (function.c:2422)
==7794==    by 0x40AF8A: variable_expand_string (expand.c:256)
==7794==    by 0x41C245: eval (read.c:1058)
==7794==    by 0x41CEF4: eval_makefile (read.c:444)
==7794==    by 0x41D1DD: read_all_makefiles (read.c:223)
==7794==    by 0x406DD4: main (main.c:1878)
==7794==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7794== 
==7794== 
==7794== Process terminating with default action of signal 11 (SIGSEGV)
==7794==  Access not within mapped region at address 0x0
==7794==    at 0x4A092F2: strlen (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==7794==    by 0x40E374: func_file (function.c:2159)
==7794==    by 0x410A88: handle_function (function.c:2422)
==7794==    by 0x40AF8A: variable_expand_string (expand.c:256)
==7794==    by 0x41C245: eval (read.c:1058)
==7794==    by 0x41CEF4: eval_makefile (read.c:444)
==7794==    by 0x41D1DD: read_all_makefiles (read.c:223)
==7794==    by 0x406DD4: main (main.c:1878)
==7794==  If you believe this happened as a result of a stack
==7794==  overflow in your program's main thread (unlikely but
==7794==  possible), you can try to increase the size of the
==7794==  main thread stack using the --main-stacksize= flag.
==7794==  The main thread stack size used in this run was
18446744073709551615.
==7794== 

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41983>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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