This question already has an answer here: Segmentation fault on large...
I need to write a program in assembly that needs to get some user arguments using scanf. The...
I am currently working on a project, where I have to implement a snake game which compiles just...
Following is my code in C for the implementation of B-Tree. The code works very strange sometimes...
I'm designing a custom kernel. The execusion runs fine (checked via CUDA-printfs), only when I try...
Gnome shell randomly segfaults: gnome-session[1703]: gnome-session-binary[1703] WARNING:...
class Apple { public: Apple func(int depth) const; private: int size = 0; // size of data...
I have code that looks like the following: bool MyClass::contains(const Data &data) { auto...
I'm currently working on the "Dining philosophers problem" in C for a school exercise. It's...
I have to process arrays with huge size and due to some constraints, I cannot use dynamic memory...
I made an adaptation of a tictactoe from 16 bits msdos to work on linux in 64 bits. section...
Program is in c running in a linux machine. It is supposed to manage the accounts of up to 50...
I have this if statement in one of my functions that seems to return a valid result when I query it...
This question already has an answer here: Segmentation fault on printf...
5 days ago

Segfault on fopen c

In the following code I get a seg.fault, I don't know why this happens since I think that I'm...
I have a struct like this: typedef struct { char* ptr; int len; int capa; }...
I have one of the most annoying problems in my opinion, called a segmentation fault. Usually with a...
I am trying to append a string with a specific char. I am getting a segfault from what I believe is...
I have a method which loads OGRFeature's and extracts data from them. However, when I call the...
I set a project for myself, I have this little hat for my Raspberry Pi and I wanted to make a...
I am new to C and working with a char array doing permutations. Example: char [] arr = {a,b,c},...
I'm taking C++ class at school and decided to study C on my own. Trying to make a small program...
Got this issue on termux (Android Linux terminal emulator) . Here it is the ENTIRE code: #include...
Many software releases for linux can be found in distr. version or source. I am using source...
This question already has an answer here: C++ - How to write and read...
Can someone explain to me why this code give me a seg Fault.? char cmd[MAXSIZE]; char*...
I have some trouble figuring out a few things.Basically i have 2 classes, and whenever i create the...
Compiles fine but when executed I get segmentation fault (core dumped) error. I've tested each...
I tried to execute a shellcode with buffer overflow. Unfortunately I get a segmentation error. In...
I have a array consisting of chars like [1,2,3,4,5,.,..] and I have a loop that looks like for...