while(1){ //Command prompt char *command; printf(\"%s>\",current_working_directory); scanf(\"%s\",command);<--seg faults after input has been received.
fclose() is causing a segfault. I have : char buffer[L_tmpnam]; char *pipeName = tmpnam(buffer); FILE *pipeFD = fopen(pipeName, \"w\"); // open for writing
I have a constructor that looks like this (in c++): Interpreter::Interpreter() { tempDat == new DataObject();
I am fairly new to c++ and I am a bit stumped by this problem. I am trying to assign a variable from a call to a method in another class but it always segfaults. My code compiles with no warnings and
What is the correct interpretation of the following segfault messages? segfault at 10 ip 00007f9bebcca90d sp 00007fffb62705f0 error 4 in libQtWebKit.so.4.5.2[7f9beb83a000+f6f000]
I have a Java process that is working on some large data set in memory. I\'ve seen it crash with a SIGSEGV signal sometimes, so i was wondering some potential causes and fixes could do.
I created a simple class in C++ which has a private dynamic array. In the constructor I initialize the array using new and in the destructor I f开发者_JS百科ree it using delete.
The code below is said to give a segmentation violation: #include <stdio.h> #include <s开发者_开发百科tring.h>
I\'m writing a memory allocator, and I need a way to store an integer inside of a chunk of memory.This integer will represent the size of the block so I can navigate to the end given the pointer to th
I have some Qt application with QPlainTextEdit in Tab widget. When try to make a pointer on it QPlainTextEdit *w = (QPlainTextEdit*)ui->tabWidget->widget(0)