sigsegv

App crashes (sometimes) with Fatal signal 11 (SIGSEGV), code 1

江枫思渺然 提交于 2019-11-29 03:43:33
I am developing an app with the HERE SDK, and everything worked fine until now. I get errors like this one: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x750057 in tid 10206 (FinalizerDaemon) or this one: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x94789680 in tid 24605 (FinalizerDaemon) and they make my app crash. It's not always the same errors, but they always come all alone in my Logcat,with no other information. In all my app I am using HERE objects and services, and even by printing the stacktrace I don't get more information about the errors. I just noticed that these errors

A lot of SIGSEGV while strace'ing java process

廉价感情. 提交于 2019-11-29 03:42:33
Interesting stuff occurred while I debug one of the unit tests on CI server (maven build actually). I connect to java process with strace -ff -e trace=network -p [pid] to trace network activity of build process. And that's what I saw: Process 26324 attached Process 26325 attached (waiting for parent) Process 26325 resumed (parent 26312 ready) Process 26325 detached Process 26324 detached Process 26320 detached Process 26317 detached Process 26308 resumed [pid 26308] --- SIGCHLD (Child exited) @ 0 (0) --- Process 26307 resumed Process 26308 detached [pid 26310] --- SIGCHLD (Child exited) @ 0 (0

Coming back to life after Segmentation Violation

我的梦境 提交于 2019-11-28 18:53:39
Is it possible to restore the normal execution flow of a C program, after the Segmentation Fault error? struct A { int x; }; A* a = 0; a->x = 123; // this is where segmentation violation occurs // after handling the error I want to get back here: printf("normal execution"); // the rest of my source code.... I want a mechanism similar to NullPointerException that is present in Java, C# etc. Note : Please, don't tell me that there is an exception handling mechanism in C++ because I know that, dont' tell me I should check every pointer before assignment etc. What I really want to achieve is to

segfault only when NOT using debugger

梦想与她 提交于 2019-11-27 17:26:33
I have a multithreaded C program, which consistently generates a segmentation fault at a specific point in the program. When I run it with gdb, no fault is shown. Can you think of any reason why the fault might occur only when not using the debugger? It's pretty annoying not being able to use it to find the problem! Mehrdad Classic Heisenbug . From Wikipedia: Time can also be a factor in heisenbugs. Executing a program under control of a debugger can change the execution timing of the program as compared to normal execution. Time-sensitive bugs such as race conditions may not reproduce when

What is SEGV_MAPERR?

元气小坏坏 提交于 2019-11-27 17:22:49
What is SEGV_MAPERR , why does it always come up with SIGSEGV ? There are two common kinds of SEGV , which is an error that results from an invalid memory access: A page was accessed which had the wrong permissions. E.g., it was read-only but your code tried to write to it. This will be reported as SEGV_ACCERR . A page was accessed that is not even mapped into the address space of the application at all. This will often result from dereferencing a null pointer or a pointer that was corrupted with a small integer value. This is reported as SEGV_MAPERR . Documentation of a sort (indexed Linux

What causes a SIGSEGV

∥☆過路亽.° 提交于 2019-11-27 07:59:00
I need to know the root cause of the segmentation fault (SIGSEGV), and how to handle it. Wikipedia has the answer, along with a number of other sources. A segfault basically means you did something bad with pointers. This is probably a segfault: char *c = NULL; ... *c; // dereferencing a NULL pointer Or this: char *c = "Hello"; ... c[10] = 'z'; // out of bounds, or in this case, writing into read-only memory Or maybe this: char *c = new char[10]; ... delete [] c; ... c[2] = 'z'; // accessing freed memory Same basic principle in each case - you're doing something with memory that isn't yours.

SIGNAL 11 SIGSEGV crash Android

﹥>﹥吖頭↗ 提交于 2019-11-26 20:21:12
Today I faced an error due to which my Android application is getting by SIGNAL 11. This error usually occurs due to unauthorized memory area access by Android internal storage. Some of the possible scenarios are web access, network communication, server image downloading and such. Mine was the case of browser load url! http://bootloader.wikidot.com/linux:android:crashlog I need to launch the browser after a QR code scan. Application was keep on scanning and launching the browser fluently but the issue occurs after 15-20 attempts of same steps.. I researched a lot and found that its the MEMORY