Exited abnormally with signal 11: segmentation fault-Related Processing

Source: Internet
Author: User

I encountered a problem a while ago,ProgramAfter packaging, the interface always crashes. device log only prints exited abnormally with signal 11: segmentation fault


I found the relevant information on the Internet and found that this error is mostly related to memory operations. However, it is clear that this error is correct during debugging?


So I used the release certificate for debugging. The program crashed on that interface and checked the cause. The property of a member variable written by a colleague was written as assign, this attribute is a subview of the current view, so it is immediately released after it is generated (our project is under Arc), and assign is actually unsafe_unretain, that is, it becomes a wild pointer. When the current view is added with a word view, the program will inevitably crash. Later, I asked my colleagues why they wrote so well. My colleague said that he didn't know anything about it. Maybe he had to work too much overtime to get dizzy...


The Program for packaging the debug and release certificates is very likely to be different, because during compilation, their default compilation attributes in xcode are also different, therefore, you must use the release certificate for testing before release. The program of the debug version may not be so strict.

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.