segmentation-fault

How to handle or prevent the fatal error “Fatal signal 11 (SIGSEGV)”

泪湿孤枕 提交于 2019-12-25 02:19:24
问题 Perhapse I am lucky on the fatal error on different signals. For today that was the following: 02-05 20:57:21.827: D/MY_TEST_MESSAGE(4349): Engine.onVisibilityChanged() 02-05 20:57:21.827: D/MY_TEST_MESSAGE(4349): DrawTask #3 is created! 02-05 20:57:21.827: D/MY_TEST_MESSAGE(4349): DrawTas #3 is working! 02-05 20:57:21.837: I/brcm-gr(4349): [gralloc_lock]: new usage 0x903 02-05 20:57:21.837: I/brcm-gr(4349): [gralloc_lock]: new usage 0x930 02-05 20:57:21.877: I/brcm-gr(4349): [gralloc_lock]:

client get segmentation fault when attach to shared memory

十年热恋 提交于 2019-12-25 01:39:43
问题 Hi i want to implement a client-server program that communicates with each other via shared memory. in the server side i have two threads. a writer thread and a reader thread. the writer thread puts some data into the queue and the reader thread reads from it and passes the data to the client side via shared memory.each client that has shmid can attach itself to it and read data from it... right now i get segmentation fault at client side when it comes to attach to shared memory. here is my

Segmentation Fault Fail?

拜拜、爱过 提交于 2019-12-25 00:41:04
问题 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -177935456 (LWP 5483)] 0xf79ff2ca in activemq::core::ActiveMQSessionExecutor::dispatch (this=0xf4b04bc0, dispatch=@0xf564e240) at activemq/core/ActiveMQSessionExecutor.cpp:129 129 activemq/core/ActiveMQSessionExecutor.cpp: No such file or directory. in activemq/core/ActiveMQSessionExecutor.cpp Current language: auto; currently c++ How can i fix this? do you need more code? I dont know where it fails? how can i find

Segfault with std::list usage

自闭症网瘾萝莉.ら 提交于 2019-12-25 00:24:44
问题 I'm Java user coming over to C++, and I am having a hard time understanding what is going wrong with this statement. My program has been segfaulting anywhere I put the push_back command. So I'm wondering what exactly is going on. class Process { public: int nice; int arrivalTime; int cpuBursts; list<int> burstList; Process() { burstList.push_back(10); // Segfaults here... } }; Here is the full code: #include<iostream> #include<stdlib.h> #include<fstream> #include<list> #include<string.h>

Segmentation fault in Scipy _fitpack fprank_()

天大地大妈咪最大 提交于 2019-12-25 00:16:50
问题 I ran a python code and I got the error just, "Segmentation fault". I then ran "gdb python" and re-run the code from the (gdb) prompt, and I got the following result: #0 0x00007fffed573487 in fprank_ () from /usr/lib/python2.7/dist-packages/scipy/interpolate/_fitpack.so #1 0x00007fffed56ee81 in fpsurf_ () from /usr/lib/python2.7/dist-packages/scipy/interpolate/_fitpack.so #2 0x00007fffed55363d in surfit_ () from /usr/lib/python2.7/dist-packages/scipy/interpolate/_fitpack.so #3

C concurrent UDP socket , weird segmentation fault

ぃ、小莉子 提交于 2019-12-24 23:19:06
问题 I'm either very tired and not noticing something simple , or this is completely screwing with me. I'm getting a segmentation fault ( core dumped ) and I've managed to pinpoint it to the sendto() in the worker function. (in the server) Server code: //UDPServer.c /* * gcc -o server UDPServer.c * ./server <port> <buffersize> */ #include <arpa/inet.h> #include <netinet/in.h> #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <unistd.h> #include <stdlib.h> #include <string

Receiving segmentation fault with a program to split sentences

丶灬走出姿态 提交于 2019-12-24 22:30:30
问题 I have problem with pointers when I run my programe I recieve a segmentation falut (core dumped) can anyone help me know which part made this error? This is a program for splitting sentences by getting a splitter I used two dementioned array #include <iostream> using namespace std; int main(int argc, char **argv) { char Sentence[255]; cin.getline(Sentence,255); char splitter='_'; int lenOfStr=0; int numOfWords=1; while (Sentence[lenOfStr]!='\0'){ if (Sentence[lenOfStr]==splitter) numOfWords++

I am trying to pass some strings trough espeak and it reads them but I get “segmentation fault”

北城余情 提交于 2019-12-24 21:35:23
问题 This is my code. I want to get 5 strings from the user and espeak reads each of them when user interred it. But I get segmentation fault(core dumped) message. #include <string.h> #include <malloc.h> #include <espeak/speak_lib.h> int test() { espeak_POSITION_TYPE position_type; espeak_AUDIO_OUTPUT output; char *path=NULL; int Buflength = 500, Options=0; void* user_data; t_espeak_callback *SynthCallback; espeak_PARAMETER Parm; char Voice[] = {"English"}; int i=0; char text[1000]; unsigned int

Netbeans, Gradle and Jogl, crash

允我心安 提交于 2019-12-24 17:14:37
问题 I am trying to learn and implement Gradle in one of my project. I installed the Netbeans Gradle plugin and after looking a couple of tutorials (and running successfully a couple of test projects), I tried the big step. I successfully solved all the Jogl dependencies modifying the build.gradle script as follow: apply plugin: 'java' sourceCompatibility = '1.8' [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' // NetBeans will automatically add "run" and "debug" tasks relying on the //

Netbeans, Gradle and Jogl, crash

独自空忆成欢 提交于 2019-12-24 17:14:29
问题 I am trying to learn and implement Gradle in one of my project. I installed the Netbeans Gradle plugin and after looking a couple of tutorials (and running successfully a couple of test projects), I tried the big step. I successfully solved all the Jogl dependencies modifying the build.gradle script as follow: apply plugin: 'java' sourceCompatibility = '1.8' [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' // NetBeans will automatically add "run" and "debug" tasks relying on the //