Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
82 views

Pset5 segmentation fault in load function using hash table

I always get a seg fault in this specific function. I've checked it with GDB, and the line causing seg fault is hashtable[index]->next = tmp_node. bool load(const char* dictionary) { FILE* dict = ...
Lúcio Cardoso's user avatar
0 votes
1 answer
259 views

pset6 load seg faulting when accessing malloc'd node

I need some guidance on where I'm going wrong here. GDB runs fine until I try to access the "next" property of a node to see if it's NULL. Am I just confusing how the node structure works? My ...
gedm's user avatar
  • 1