https://cppcpp.org/117/c-exceptionとstack-overflow-原因と対策/