node*connect_node(node*pthis,char ch){
node*temp = pthis->next;
pthis->next = new node(ch,pthis,temp);
cout<<"call1";
temp->prev = (pthis->next);
cout<<"call2";
return pthis->next;
}


노드는 제가 정의한 구조체이고 멤버로 char ch, node*prev, node*next 를 가지고 있습니다. 저 connect함수를 실행하면 call2가 출력되지 않고 비정상 종료됩니다. 뭐가문제인가요? 생성자에 준 인자는 각각 ch,prev,next에 저장됩니다