@Moschops : I am printing variable names just before and after the green highlighted statement. The statement before gets printed but the one after doesn't.When I run gdb , I get seg fault again at the same spot.
@raptr_dflo : This is how :
[CODE]Request R = (Request )malloc(sizeof(Request)) ;[/CODE]
Then I initialize various fields of R and pass it on to initRoomsList