Are you sure parent is not getting deleted before you make this function call?
–
Alok SaveJun 28 '11 at 3:52

Can you give the constructor detail for Node(value, parent) ?
–
iammilindJun 28 '11 at 3:54

1

"with getChildren() just returning std::vector&" How is it returning that std::vector&? If it's allocated on the stack and a reference is returned, that could cause a segfault quite readily.
–
ildjarnJun 28 '11 at 3:55

@ildjarn, I think getChildren() returns class data member children inside the the whatever class of parent, so it should be valid.
–
iammilindJun 28 '11 at 3:56

I changed multiple things to get the program working, but I think the second thing here was the problem. Basically, I had a priority queue using a c style pointer for nodes, but my Node() constructor did nothing. I changed the c style pointer to a vector and some other code to accommodate for it and this problem went away.
–
SterlingJun 28 '11 at 18:30