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

前端 未结 8 958
攒了一身酷
攒了一身酷 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 04:51

    I received the same error when trying to connect to an Oracle DB using the pyodbc module:

    connection = pyodbc.connect()
    

    The error occurred on the following occasions:

    • The DB connection has been opened multiple times in the same python file
    • While in debug mode a breakpoint has been reached while the connection to the DB being open

    The error message could be avoided with the following approaches:

    • Open the DB only once and reuse the connection at all needed places
    • Properly close the DB connection after using it

    Hope, that will help anyone!

提交回复
热议问题