Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
nicolasalouf's user avatar
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 &...
dillon__nguyen's user avatar
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 ...
Kai.k's user avatar
  • 3
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 ...
Joshua van Niekerk's user avatar
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 ...
April's user avatar
  • 1
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 ...
Caed Budris's user avatar