• Register
1 vote
198 views

Problem :

I have the big trouble with the iOS App: it just crashes sometimes without detailed debug error. The stack trace is also empty. Below are the only two lines in the stack trace:

1. Crash start in UIApplicationMain at "symbol stub for: -[_UIHostedTextServiceSession dismissTextServiceAnimated:]".

2. And report "libsystem_c.dylib`malloc_error_break".

in com.apple.main-thread.

Also the error on Xcode debugger with the connected devices is as below :

malloc: *** error for object 0x208a7614: incorrect checksum for freed object - object was probably modified after being freed.

*** set a breakpoint in malloc_error_break to debug

I have already set the breakpoint in malloc_error_break with the libsystem_c.dylib without any feedback from the debugger. I have no idea regarding how to solve this issue.

6 5 3
7,540 points

1 Answer

0 votes

Solution :

As you are in the debugger then you must look at the memory location 0x208a7614 and also check what is there. The data in the memory may be helpful in figuring out what's going wrong.

What is happening is because one of the below causes :

1. You must be freeing an object twice,

2. You must be freeing a pointer that was never allocated

3. You must be writing through an invalid pointer which previously pointed to an object which was already released.

Hope the above approach helps you.

9 7 4
38,600 points

Related questions

0 votes
1 answer 473 views
473 views
Problem : I have a serious issue with my iOS App: it crashes manytimes without detailed debug error. My stack trace is empty. Below are the only two lines in my stack trace: a. Crash start in UIApplicationMain at "symbol stub for: -[ ... breakpoint in malloc_error_break with the libsystem_c.dylib but without any feedback from debugger. I have no idea how can I solve this issue.
asked Dec 7, 2019 alecxe 7.5k points
1 vote
1 answer 67 views
67 views
Problem: I have very recently started with the iOS development and I am currently learning the use of NSData using the Obj-C. Currently I am trying to use the URLSession:dataTask:didReceiveData method to get the NSData by using the HTTP POST request. My server should ... (@"json error: %@", [error localizedDescription]); } } Please guide me if anyone knows the potential reason behind this problem?
asked Jun 1 Martin K 6.6k points
0 votes
1 answer 7 views
7 views
Problem : What is the difference between malloc and calloc
asked Oct 8 sikandar 2.4k points
0 votes
2 answers 1.2K views
1.2K views
Problem : I am facing the following error : malloc: *** error for object 0xa68aca0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug I have already set the Symbolic Breakpoint, Still Nothing happens on the console, Not getting any hint from the console. I am having xcode 4.6 Does anybody have any clue about the error?
asked Nov 28, 2019 alecxe 7.5k points
0 votes
1 answer 87 views
87 views
Problem : I have very simple program HelloWorld is running on iOS. The same program has been running fine for a long time. But recently I noticed that I get the below listed BoringSSL error when my program runs on my ... boringssl_session_errorlog: line 2871 [boringssl_session_read] SSL_ERROR_ZERO_RETURN(6): operation failed because the connection was cleanly shut down with a close_notify alert
asked Dec 4, 2019 alecxe 7.5k points