segmentation fault - Program not crashing when run from Makefile -
i have particular executable (let's call bin
) crashes segfault when run ./bin
, if create makefile:
all: ./bin
and make
, executable runs without error , terminates correctly. how possible?
you don't version of make you're using, older versions of gnu make had bug make set own stack size "unlimited" didn't set default value when running programs. newer versions of gnu make fix bug programs run default stack size.
see https://savannah.gnu.org/bugs/?func=detailitem&item_id=22010
Comments
Post a Comment