Add proper termination of link with XSB with forced termination

Issue #383 resolved
Joachim Jansen created an issue

Pressing ctrl+c during any instance when the XSB process has been initialised will lead to a core dump. Ideally, IDP should just quit "quietly" without printing out messages like "stack smashing detected" that can easily be interpreted as something going horribly wrong.

The attached file contains one such core dump.

Comments (2)

  1. Joachim Jansen reporter

    Suggested fixing strategy:

    Maintain a state of whether XSB has been initialised

    Fix runidp.cpp so that void SIGINT_handler(int) also calls XSB's close() before doing exit(1)

  2. Log in to comment