The code: BRepAlgoAPI_Cut aCut(Shape1, Shape2) ran with an error

On Windows system, I use minGW64 to compile OCC source code. When running to the line of code: BRepAlgoAPI_Cut aCut(Shape1, Shape2), an error occurs:

Thread 1 received signal SIGSEGV, Segmentation fault.
0x0000000001000eb3 in libTKMath!_ZN7Bnd_Box3AddERK6gp_Pnt () from D:\OpenCASCADE-source\opencascade-7.5.0\build\win64\gcc\bin\libTKMath.dll

How can I solve this problem?