segmentation-fault

Tkinter causes SIGSEGV and system crash - how to fix?

十年热恋 提交于 2019-12-22 18:09:24
问题 I'm developing a Tkinter GUI for a python project. Everything was fine yesterday, but today my mac immediately crashes (back to log-in screen) when I run the mainloop() command. I've tried to isolate the issue by cutting back GUI features, but nothing helped. The problem even occurs with the simplest of GUIs. I'm using this demo code: from tkinter import Tk, Label, Button class MyFirstGUI: def __init__(self, master): self.master = master master.title("A simple GUI") root = Tk() my_gui =

Fatal Signal 11

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-22 14:56:11
问题 I developed and tested an application on my emulator that had an API of 4.1 (Jelly Bean). When I debug my application on my actual device, which is a Samsung Galaxy Nexus, it gives me in the logcat- Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 4395. Can you help? Java XML: package ID; import java.io.IOException; import java.io.InputStream; import android.app.Activity; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Bundle; import android

Fatal Signal 11

寵の児 提交于 2019-12-22 14:55:38
问题 I developed and tested an application on my emulator that had an API of 4.1 (Jelly Bean). When I debug my application on my actual device, which is a Samsung Galaxy Nexus, it gives me in the logcat- Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 4395. Can you help? Java XML: package ID; import java.io.IOException; import java.io.InputStream; import android.app.Activity; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Bundle; import android

Ad Hoc iPhone SIGSEGV crash while Debug on device & simulator works

这一生的挚爱 提交于 2019-12-22 14:51:46
问题 App crashes immediately after I attempt to login so it can’t a be a watchdog memory issue Reason: _mh_execute_header App crashes upon attempting to make a network request using ASIHTTPRequest. Request never touches server. ASIHTTPRequest: I use -fno-objc-arc to omit ASIHTTPRequest from ARC. I believe that the following call is causing my problems since my call never even touches the server when I make a request. Any help would be greatly appreciated! Call: NSDictionary *response = [

Ad Hoc iPhone SIGSEGV crash while Debug on device & simulator works

拥有回忆 提交于 2019-12-22 14:51:03
问题 App crashes immediately after I attempt to login so it can’t a be a watchdog memory issue Reason: _mh_execute_header App crashes upon attempting to make a network request using ASIHTTPRequest. Request never touches server. ASIHTTPRequest: I use -fno-objc-arc to omit ASIHTTPRequest from ARC. I believe that the following call is causing my problems since my call never even touches the server when I make a request. Any help would be greatly appreciated! Call: NSDictionary *response = [

segmentation fault in overloading operator =

隐身守侯 提交于 2019-12-22 12:27:19
问题 I just got a seg fault in overloading the assignment operator for a class FeatureRandomCounts, which has _rects as its pointer member pointing to an array of FeatureCount and size rhs._dim, and whose other date members are non-pointers: FeatureRandomCounts & FeatureRandomCounts::operator=(const FeatureRandomCounts &rhs) { if (_rects) delete [] _rects; *this = rhs; // segment fault _rects = new FeatureCount [rhs._dim]; for (int i = 0; i < rhs._dim; i++) { _rects[i]=rhs._rects[i]; } return

POSIX Threads and SIGSEGV

自作多情 提交于 2019-12-22 10:53:07
问题 I have a system with 10+ threads. I have a signal handler to catch SIGSEGV. if one thread generates SIGSEGV, does that signal go to all threads, or just to the thread that generated the signal? 回答1: SIGSEGV is a synchronous signal. It'll be delivered to the thread that caused the invalid memory access. From signal(7): A signal may be generated (and thus pending) for a process as a whole (e.g., when sent using kill(2) ) or for a specific thread (e.g., certain signals, such as SIGSEGV and

QGraphicsScene::~QGraphicsScene() segmentation fault

倖福魔咒の 提交于 2019-12-22 09:39:34
问题 Good day! With Qt 4.7.3 an example below crashes at QGraphicsScene::~QGraphicsScene() call: #include <QCoreApplication> #include <QGraphicsScene> int main( int argc, char* argv[] ) { // replace this with QObject app; and no problems QCoreApplication app( argc, argv ); new QGraphicsScene( &app ); return 0; } Any ideas? UPDATE: Bug report created. 回答1: When a QGraphicsScene instance is constructed it appends itself in a list stored in a private member of the single QApplication instance, and

Application segmentation fault, only when compiling on Windows with MinGW

核能气质少年 提交于 2019-12-22 08:16:40
问题 I'm trying to compile one of my games on Windows, but unfortunately, no matter what, I'm getting this segmentation fault every time I run the program. Compilation is successful, and without any warning. Program received signal SIGSEGV, Segmentation fault. __chkstk_ms () at ../../../../../src/gcc-4.8.1/libgcc/config/i386/cygwin.S:172 172 ../../../../../src/gcc-4.8.1/libgcc/config/i386/cygwin.S: No such file or directory. I've tried: Compiling on a Windows x86 machine Compiling on a Windows x64

C++ std::vector of pointers deletion and segmentation faults

心不动则不痛 提交于 2019-12-22 06:59:12
问题 I have a vector of pointers to a class. I need to call their destructors and free their memory. Since they are vector of pointers vector.clear() does not do the job.So I went on to do it manually like so : void Population::clearPool(std::vector<Chromosome*> a,int size) { Chromosome* c; for(int j = 0 ;j < size-1;j++) { c = a.back(); a.pop_back(); delete c; printf(" %d \n\r",j); c = NULL; } } The printf in there is since I have a talking destructor to see in which Chromosome the segmentation