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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -