• Register
1 vote
1.2k 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.

7.5k points

Please log in or register to answer this question.

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.

38.6k points

Related questions

0 votes
1 answer 1k views
1k 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
0 votes
1 answer 26 views
26 views
Problem: Please can anyone tell me the right procedure to do it?*** set a breakpoint in malloc_error_break to debug
asked Apr 19 Ifra 43.4k points
0 votes
1 answer 14 views
14 views
Problem: Give me an answer please :If dynamically allocated memory is not freed,
asked May 29 Chi Omega 168k points
0 votes
1 answer 9 views
9 views
Problem: Spotify stops playing after a few seconds?
asked Jul 16 Mezbah 130k points
0 votes
1 answer 19 views
19 views
Problem: What is wrong here : Expected member name or ';' after declaration specifiers?
asked Jun 24 Sawyer Parviz 167k points
0 votes
1 answer 35 views
35 views
Problem: I did a simple tweak with PreferenceBundle. The PrefBundle works nice on non-ARM64, but on ARM64 it says "there was an error loading preference bundle for nameTweak". Does someone know how to fix it?. Thanks
asked Mar 19 ummesalma 29.1k points
0 votes
1 answer 2 views
2 views
Problem: Property with retain must be of object type?
asked Jul 10 Nahil 128k points
0 votes
1 answer 14 views
14 views
Problem: What is wrong here : Json text did not start with array or object and option to allow fragments not set?
asked Jun 15 Chi Omega 168k points
0 votes
1 answer 8 views
8 views
Problem: Malloc was not declared in this scope.
asked Jul 27 akhi 125k points
0 votes
1 answer 3 views
3 views
Problem: Error malloc was not declared in this scope.
asked Jul 11 Rada Gracelynn 104k points