Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault for circular definition in words #24

Open
HyeonseopJeong opened this issue Nov 8, 2020 · 2 comments
Open

Segmentation fault for circular definition in words #24

HyeonseopJeong opened this issue Nov 8, 2020 · 2 comments

Comments

@HyeonseopJeong
Copy link

Hi ,
I found that call stack overflow occurs when use a word defined circularly.

A word can define circularly like below.

a "a"

or It can be defined circularly with multiple words like below.

a "b"
b "c"
c "d"
d "a"

And program is terminated by segmentation fault when there is the word defined circularly in the expression.

$ clac "a"
Segmentation fault
@soveran
Copy link
Owner

soveran commented Nov 8, 2020

@HyeonseopJeong Thanks a lot for the report! I've been thinking about it and I think there isn't a good way to solve it in code. Maybe the best we can do is to clarify in the documentation that circular references will cause a segmentation fault. Let me know if you have other ideas.

@HyeonseopJeong
Copy link
Author

@soveran Thanks for the comment!
I also think it is difficult to solve neatly in code.

I think that's a good idea to clarify it in the documentation.!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants