Skip to content

Unexpected stack limit error with dif/2 #113

@ghost

Description

I built SWI-Prolog/swipl-devel@e8c2e0d and:

?- dif(A, B), C=[D|D], A=[D|E], B=[C|D], D=[E|E].
ERROR: Stack limit (1.0Gb) exceeded
ERROR:   Stack sizes: local: 0.3Gb, global: 0.5Gb, trail: 40.0Mb
ERROR:   Stack depth: 5,529,124, last-call: 50%, Choice points: 4
ERROR:   In:
ERROR:     [5,529,124] dif:simplify_ornode_([length:2], _133602362, _133602364)
ERROR:     [5,529,120] dif:dif_c_c_l([length:1], _133602390, [length:1|_133602404])
ERROR:     [5,529,119] dif:dif_c_c([length:1|_133602432], [length:2|_133602438], _133602426)
ERROR:     [5,529,118] dif:subunifier([length:1], _133602458)
ERROR:     [5,529,116] dif:subunifier([length:1], _133602484)
ERROR: 
ERROR: Use the --stack_limit=size[KMG] command line option or
ERROR: ?- set_prolog_flag(stack_limit, 2_147_483_648). to double the limit.
?-

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions