I seem to be having a really weird problem. I have a single variable (string) where I am storing some data. As soon as the data stored in that variable exceeds 2KB, Apache Seg faults and PHP returns a
Im building a shared library on linux. the library \".so\" was sucessfully created, but when I tried to link it to a test application (with an empty main) and run the executable I got a segmentation e
EDIT to incorporate suggestions to code and update question I have to implement a word wrap feature in the program, and have chosen a greedy algorithm of
I wrote some C program like below. #include <stdio.h> #include <string.h> main() { char *s1 = \"hello world!\" ;
I have the following code (C++0x): const set<char> s_special_characters ={ \'(\', \')\', \'{\', \'}\', \':\' };
#include <st开发者_Go百科dio.h> #include <string.h> void bad() { printf(\"Oh shit really bad~!\\r\\n\");
printf(\"\\nframe is: %p\",&frame); printf(\"\\nframeprev is: %p\",&framePrev); whatever line comes first will always correctly print.
I am passing a pure-virtual base class pointer arround through C code as a void *. When I dereference the base class in C++, the debugger is able to access all of its members. However, when I attempt
I\'m working on a Qt project and often when I make a bunch of changes and build, when I run the program I get a random segmentation fault somewhere in the Qt framework.
I have a program that checks the modification time of a file and executes the file if it has changed.Currently it works if I run it on my mac, but it seg faults if I run it on ubuntu.Please help me.