• Register
1 vote

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

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.

9 7 4
38,600 points

Related questions

0 votes
1 answer 722 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 8 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 24.5k points
0 votes
1 answer 1 view
1 view
Problem: I need someone’s help to fix it .. what is the use of bluetooth in iphone
asked 6 days ago Ifra 24.4k points
0 votes
1 answer 16 views
Problem: application tried to present modally an active controller.
asked Feb 22 Dan phillip 4.7k points
0 votes
1 answer 26 views
Problem: the file “info.plist” couldn’t be opened because there is no such file.
asked Feb 12 Dan phillip 4.7k points
1 vote
1 answer 116 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 23 views
Problem: It says that there is an error: Uninitialized value was created by a heap allocation What am I doing wrong? I guess the way I use dictionary globally is wrong, so can anybody suggest some other way of keeping it global and avoid this error?
asked Mar 16 ummesalma 24.5k points
0 votes
1 answer 37 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 13k points
1 vote
1 answer 1 view
1 view
Problem : Valgrind reporting invalid free error is not because of leaked memory, I've tried to free() it but I suppose that it's not done properly. Invalid free() / delete / delete[] / realloc() at 0x4C27D4E: free (vg_replace_malloc.c:427) by 0x400C00: main (main.c:149) ... ) by 0x40084F: strdup (main.c:19) by 0x4009C4: permute (main.c:83) by 0x400B9C: main (main.c:138) Any ideas? Thank You.
asked 5 days ago Shovo210 13.3k points
0 votes
1 answer 4 views
Problem: I am getting an invalid memory error FINE 5 FINE 6 LENGTH IS: 2 * glibc detected * ./auto: realloc(): invalid next size: 0x08cd72e0 *** ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6(+0x6b591)[0x6dd591] The point to note here is Fine 7 is never printed. and invalid next size error on every run is at the same location.
asked Mar 30 ummesalma 24.5k points