Segfault when printing cp variables to ECNF

Issue #353 resolved
Joachim Jansen created an issue

Certain formulas cause a segfault when trying to print them to ECNF format when the CP support is turned on.

Comments (9)

  1. Joachim Jansen reporter

    Fixed bug where ECNF printer segfaults when CP was on

    Reason for the segfault is that the Structure::inter(..) procedure returned an object that would be deleted later on. This has been circumvented by providing a Structure::storableInter(..) procedure that does exactly the same, but it returns a clone of the interpretation that is storable.

    This fixes bug #353

    → <<cset be53f00b9ecf>>

  2. Joachim Jansen reporter

    Fixed bug where ECNF printer segfaults when CP was on

    Reason for the segfault is that the Structure::inter(..) procedure returned an object that would be deleted later on. This has been circumvented by providing a Structure::storableInter(..) procedure that does exactly the same, but it returns a clone of the interpretation that is storable.

    This fixes bug #353

    → <<cset 6032d634698e>>

  3. Joachim Jansen reporter

    Fixed bug where ECNF printer segfaults when CP was on

    Reason for the segfault is that the Structure::inter(..) procedure returned an object that would be deleted later on. This has been circumvented by providing a Structure::storableInter(..) procedure that does exactly the same, but it returns a clone of the interpretation that is storable.

    This fixes bug #353

    → <<cset 623c5aa247db>>

  4. Joachim Jansen reporter

    Fixed bug where ECNF printer segfaults when CP was on

    Reason for the segfault is that the Structure::inter(..) procedure returned an object that would be deleted later on. This has been circumvented by providing a Structure::storableInter(..) procedure that does exactly the same, but it returns a clone of the interpretation that is storable.

    This is only necessary in the translateTerm() method in GroundTranslator.cpp, because the sortable there might be needed later (e.g. for printing)

    This fixes bug #353

    → <<cset bf4b131ad23b>>

  5. Bart Bogaerts
    • changed status to open

    Deze bug faalt nog steeds,

    De laatste file faalt nog steeds!

    CPsupport is niet relevant (crasht zowel met als zonder)

    Neline: Ubuntu VM onder windows

  6. Log in to comment