• Register
0 votes
664 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

Please log in or register to answer this question.

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 529 views
529 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
0 votes
1 answer 5 views
5 views
Problem: application tried to present modally an active controller.
asked Feb 22 Dan phillip 2.4k points
0 votes
1 answer 11 views
11 views
Problem: the file “info.plist” couldn’t be opened because there is no such file.
asked Feb 12 Dan phillip 2.4k points
1 vote
1 answer 102 views
102 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, 2020 Martin K 6.6k points
0 votes
1 answer 13 views
13 views
Problem: I'm doing some homework for an OOP class and I've been stuck for a good hour now. I'm getting this error once I've used keyboard input enough. I am not someone who gets frustrated at all, and here I am getting very frustrated with this.
asked Dec 13, 2020 Mashhoodch 10.5k points
0 votes
1 answer 11 views
11 views
Problem : What is the difference between malloc and calloc
asked Oct 8, 2020 sikandar 2.4k points
0 votes
1 answer 15 views
0 votes
2 answers 1.8K views
1.8K 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 447 views
447 views
Problem : I am getting bellow Minecraft Crash error java.lang.noclassdeffounderror: com/mia/craftstudio/ipackreadercallback
asked Oct 23, 2019 peterlaw 6.9k points
0 votes
1 answer 4 views
4 views
Problem: itunes was unable to load dataclass information from sync services.
asked Feb 13 Shovo210 3.9k points