• Register
0 votes
527 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: -[_UIHostedTextServiceSession dismissTextServiceAnimated:]".

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

in the com.apple.main-thread.

Also find below the error on my Xcode debugger with the connected device:

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 tried setting the 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.

6 5 3
7,540 points

1 Answer

0 votes

Solution :

As you are in the debugger mode then you can look at the memory location 0x208a7614 and observe what’s going on. Also the data in the memory will be helpful in figuring out what's going wrong for you.

What's going on is one of the following:

1.  You must be freeing an object twice,

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

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

Since your stack trace is coming up empty so you can add some debugging log statements to your code at the various places to see if you can narrow down where in the code the problem lies.

9 7 4
38,600 points

Related questions

1 vote
1 answer 276 views
276 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: - ... 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.
asked Dec 16, 2019 alecxe 7.5k points
1 vote
1 answer 80 views
80 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 8 views
8 views
Problem : What is the difference between malloc and calloc
asked Oct 8 sikandar 2.4k points
0 votes
2 answers 1.4K views
1.4K 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 99 views
99 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