Running the Python model under Linux reports Segmentation fault (core dumped) a possible solution

Problem Description

Running the model on the server, the inexplicable interruption in the middle reports this error, and sometimes this error occurs even when Anaconda is updated.

Segmentation fault (core dumped)

Solution

ulimit -a
Use the above command to check whether the core function of the system is enabled:
insert image description here
it can be seen that the core file size resource limit value is 0.
Use the following command to enable the core dump function

ulimit -c unlimited

This command is only valid for the current terminal, and it will automatically return to the original setting after opening another terminal or logging in again
insert image description here
Finally, the problem is solved, the model can run normally, and Anaconda can also be updated normally without interruption.
insert image description here


For more information, please refer to: blog garden blog post and Sina blog post

Guess you like

Origin blog.csdn.net/TommyXu8023/article/details/108901876