Timeline for pset5 Speller -load - Valgrind error - "invalid read of size 8"(segmentation fault)
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 10, 2017 at 6:17 | comment | added | shaistha | @Cliff B you are rights...that's the line causing the issue....my thoughts were that...it would check for the empty node....n then create a new one... | |
Dec 10, 2017 at 6:15 | comment | added | shaistha | Yes its as @Cliff B said it was bidirectional tracing back...and thATS not where the problem lies... | |
Dec 10, 2017 at 2:50 | comment | added | Cliff B | It appears that he is creating a bidirectional linked list type of trie. When the new node is created at childIndex, it has an element called parent that needs to point back to current_node, so the statement appears to be correct. However, I don't see the reason for it. While its a good exercise to do this, there is no need for a bidirectional linked list. The pset can be implemented with a unidirectional trie. There's no reason to backtrack. Haven't looked at the underlying problem yet. It would be helpful if the exact line 104 could be identified. | |
Dec 10, 2017 at 2:28 | review | First posts | |||
Jan 9, 2018 at 2:32 | |||||
Dec 10, 2017 at 2:27 | history | answered | Edward Lee | CC BY-SA 3.0 |