Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

前端 未结 8 956
攒了一身酷
攒了一身酷 2020-12-03 04:45

I\'m trying to execute a Python script, but I am getting the following error:

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
         


        
8条回答
  •  半阙折子戏
    2020-12-03 05:07

    This can also be the case if your C-program (e.g. using cpython is trying to access a variable out-of-bound

    
    ctypedef struct ReturnRows:
        double[10] your_value
    
    cdef ReturnRows s_ReturnRows # Allocate memory for the struct
    s_ReturnRows.your_value = [0] * 12
    

    will fail with

    Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
    

提交回复
热议问题