You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems to be a memory error using the YANG C-API, judging by the that the SEGV is in ys_free.
I dont think it is the YANG extension mechanism per se.
One way could be to use valgrind or some other mechanism to pin-point where the yang structure was created/freed/invalidly accessed.
Your stack trace is incomplete and only shows the last (invalid access) point.
Adding YANG using the C-API is pretty advanced and it is not properly documented.
I can guide to source code, or load YANG from file, although that API assumes a complete module.
@olofhagsand Good afternoon I need your help :)
I have a main module that I want to add the module that I described above to
At the same time, I want to add enum to it in runtime
below is the code how I do it in runtime https://clixon-docs.readthedocs.io/en/latest/yang.html#extensions
everything works out fine, but as soon as I add a place where I want to use it, I get a coredamp
here in this place
type my-enum-type;
What am I doing wrong? I took the information here https://clixon-docs.readthedocs.io/en/latest/yang.html#extensions And here it is
clixon/lib/src/clixon_yang.c
Line 1037 in be5a7c4
The text was updated successfully, but these errors were encountered: