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.
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
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
PredictiveImplicationScopeLinkis moved frompln/opencog/pln/types/atom_types.script
Line 15 in e884b93
to
https://github.com/singnet/atomspace/blob/master/opencog/atoms/atom_types/atom_types.script
then the problem disappears.