Skip to content

Custom atom types do not call C++ factories #21

Description

@ngeiswei

Atom types defined in

https://github.com/singnet/pln/blob/master/opencog/pln/types/atom_types.script

do not seem to trigger their C++ factories. For instance the following

(use-modules (opencog pln))

(Get
  (Variable "$P")
  (PredictiveImplicationScope
    (Variable "$X")
    (Number 1)
    (Variable "$P")
    (Predicate "Q")))

crashes with a seg fault. Upon inspection it turns out that the crash occurs here

https://github.com/singnet/atomspace/blob/75d755da2410e56e9d8a58c726eb59f258f0df33/opencog/atoms/core/Context.cc#L53

indicating that no factory was created.

If the definition of PredictiveImplicationScopeLink is moved from

PREDICTIVE_IMPLICATION_SCOPE_LINK <- SCOPE_LINK

to

https://github.com/singnet/atomspace/blob/master/opencog/atoms/atom_types/atom_types.script

then the problem disappears.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions