How to solve the segfault error in Python

Source: Internet
Author: User
This article mainly introduces how to solve the segfault error in Python, and analyzes the causes and Corresponding Solutions of the segfault error in system logs, for more information about how to solve the segfault error in Python, see this article. We will share this with you for your reference. The details are as follows:

Recently, python may occasionally cause system segfault errors during the running process and may occur from time to time in different code segments. Therefore, one-step debugging cannot determine which line of code is the problem.

This is a strange phenomenon. In the system log, the message indicates the python library. libmysqlclient and cjson library are prompted in the background.

If there is a problem with the python or mysql database in a specific hardware environment, it cannot be said. If it is caused by cjson, after all, cjson is not a standard library, and the probability of a problem is higher.

[Cjson error]

The Code is as follows:

Kernel: [1207747.915932] python [29797]: segfault at 7f3fc280e036 ip Route 7f3fc0a35722 sp route 7fff52b6bcd0 error 4 in cjson. so [7f3fc0a32000 + 5000]

Therefore, cjson is replaced with json, and there is no segment error after the python program. Isn't that a bit difficult.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.