Your bug is in misunderstand the index. Indexes all start at "Null" or "zero".
so setting i and j to 1 is the start of your problems
void bug()
{
int i=1,j=1,m1,m2;
I call the first element "head" (in imagine a snake). It is a full element.
AFTER working with the head you should use the link - NOT before.
Another bad bug is:
start=(struct node*)malloc(sizeof(struct node*));
only allocates a pointer to the struct and NOT a struct!!!