https://meoru-tech.tistory.com/25
Process finished with exit code -1073741571 (0xC00000FD)
Process finished with exit code 139 (interrupted by signal 11:SIGSEGV)
Std::bad_alloc
terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc
출처:
추가 내용은 아래 출처로..
CMakeLists.txt
에서도 설정 가능)ulimit -s
명령어로 stack size 확인 가능)CMakeList.txt
에 다음 링커 플래그를 추가
MATH(EXPR stack_size "16 * 1024 * 1024") # 16 Mb
set(CMAKE_EXE_LINKER_FLAGS "-Wl,--stack,${stack_size}")
출처 :
https://stackoverflow.com/questions/43326924/increasing-stack-size-for-c-program-in-clion