Questions tagged [fault]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

Segmentation Fault Is Ruining My Friday

I have been working on PS3 Runoff for quite sometime, and after troubleshooting gazillion errors, segmentation fault came up to rain on my parade. Here's my code as I have no clue what's causing it. ...
user avatar
1 vote
3 answers
66 views

Segmentation error on pset2 substitution

I'm trying to work on "substitution" problem set, but I'm getting an error of "Segmentation Fault" when I run the program below: In this part of the program I just want to check if ...
user avatar
1 vote
4 answers
8k views

cs50. pset4. recover

I ask for help. I do not find the error. I prompted and rewritten the code. Next is a new version, but the cs50 does not pass! The files have been resumed. performance control does not pass list of ...
user avatar
0 votes
1 answer
455 views

Pset2 (Caesar). Runtime error: load of null pointer of type 'char'

Problem with segmentation. I can compile the program, but can't run. Questions about segmentation fault were asked many times, but I still don't know. I think problem with command-line argument — I ...
user avatar
0 votes
2 answers
121 views

Segmentation fault in recover pset4

I am working on recover in problem set 4. However, after trying out different stuff, the code itself compiles but I get a segmentation fault and the outcome is only one jpg file called 000.jpg. I am ...
user avatar
0 votes
1 answer
21 views

Segmentation Fault in Vigenere

Goodmorning, My program compiles, but when I try to run it with only the name of the program 'vigenere', I get this. "vigenere.c:12:23: runtime error: load of null pointer of type 'char' ...
user avatar
  • 1
0 votes
1 answer
17 views

Segmentation fault and correct answer being returned (pset.2)

this question has been asked in different ways, but hasn't been answered I think for the way I wrote my code. #include <cs50.h> #include <stdio.h> #include <string.h> #include <...
user avatar
0 votes
0 answers
35 views

dictionary.c giving segmentation fault

Unload function giving segmentation fault. Would anyone help me check my entire code. #include <stdbool.h> #include<stdio.h> #include<string.h> #include<ctype.h> #include<...
user avatar
0 votes
0 answers
54 views

pset5 unload segmentation fault

I am getting seg fault. I am not being able to determine error by debugger. bool unload(wordtree* del) { if(del==NULL) return true; for(int i=0;i<27;i++) { if(del->ptr[i]!=NULL) { ...
user avatar
0 votes
1 answer
59 views

Odd IDE behavior during pset4

I just finished writing the code for the resize problem of pset4. When I run my code in the debugger, everything turns out right, but when I run it simply in the terminal, the computer complains about ...
user avatar
0 votes
1 answer
59 views

Writing a word puzzle solver and having a problem with freeing heap memory. Would really appreciate some help!

I am having some trouble with heap memory. I am writing some code to solve word puzzles - (from a game called Countdown here in the UK). The game is that you are given 9 letters and the goal is to ...
user avatar