2020年3月13日星期五

Some reasons for error "Segmentation fault (core dumped)"

Sometimes we encounter "Segmentation fault (core dumped)", meaning that memory is used incorrectly, which may be caused by the following reasons.

1. Caused by breakpoints in the program

It may be caused by breakpoints in the program for debugging, such as pdb.set_trace (), etc.

In most cases, the pdb debugging tool that comes with Python will not cause problems, but individual cases do occur. The specific reason is not clear, but you can just remove pdb.set_trace () to solve it.

2. Mismatch between number of objects and number of categories

This is easy to appear in the debugging process of specific segmentation detection tasks such as yolo. You can change the number of filter files, or the number of categories to solve. The specific solution should be determined according to the specific situation.



没有评论:

发表评论