All Questions
6 questions
0
votes
1
answer
36
views
Pset5 - Speller - Seg fault
I'm getting a segmentation fault when running this. Valgrind reports no errors, but a leak of 1,080 bytes at two blocks, with 5 allocs and only 3 free'd. Below is my load function and below that are ...
0
votes
1
answer
57
views
Word array sometimes filled with weird values - Speller
My code looks like this: (ignore the comments; they're old)
// Implements a dictionary's functionality
#include <stdbool.h>
#include <string.h>
#include "dictionary.h"
#include &...
0
votes
1
answer
83
views
Pset5: load hashtable - constantly giving seg fault
I'm trying to load my dictionary into memory in order to program my spellchecker. While compiling "speller.c" works fine, my execution ./speller returns a seg fault and I just can't seem to get the ...
0
votes
1
answer
69
views
Pset6 Server seg fault in load and main (because of parse)
Server is functional and gives the correct output using the curl requests individually. However, using gdb, if I use curl to request hello.html after I've requested cat.html (specifically), I get a ...
0
votes
1
answer
359
views
pset5 Segmentation fault
I've been getting a seg fault in load on this line: buckets[hash_num] = buffer_node;.
I have read most if not all the posts on seg faults in load, and can't seem to figure mine out. At first I ...
0
votes
2
answers
165
views
Segfault in pset5 in load
My implementation of load uses a trie and when I attempt to access the bool is_word I get a segfault. Can you guys help me out? Any suggestions on how to improve my code would be amazing. Thanks ...