#3 C/S mode, server crash problem

open
nobody
None
5
2007-09-20
2007-09-20
Anonymous
No

We have two servers and they linked together.

Server 1: node1
Server 2: nodea, nodeb

node2 has links to nodea, nodeb

search at node1
when the search is not finished, kill server at node2.

Then the server 1 will crash
[1]+ Segmentation Fault (core dumped) estmaster start tmp

Didn't find this problem in window version.

Discussion

  • Logged In: NO

    I found and fixed the bug.

    In estnode.c => est_url_shuttle_impl
    If there are anything wrong, it will return "error",
    and before those return, it tried to free or close something which were registered in pthread_cleanup_push

    In some compiler, it will free/close those memory/object twice.

    Just disable them which will fix it.

    //cbmapclose(elems);
    return "error";

    //free(addr);
    //cbmapclose(elems);
    return "error";

    //cbdatumclose(datum);
    //est_sockpt_down(sp);
    //free(addr);
    //cbmapclose(elems);
    return "error";

    I guess there are similar problem in other places too.

    - BillowGao@Gmail.com