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

circle segfaults when given input from stdin #207

Open
nithrill opened this issue Jun 24, 2024 · 0 comments
Open

circle segfaults when given input from stdin #207

nithrill opened this issue Jun 24, 2024 · 0 comments

Comments

@nithrill
Copy link

The following commands cause a segfault:

$ echo | circle -E -dM -
Segmentation fault
$ echo "" | circle -E -dM -
Segmentation fault
$ echo "int main() {}" | circle -E -dM -
Segmentation fault
$ circle -E -dM - <<EOF
> int main() {}
> EOF
Segmentation fault

The expected result should be the same as executing:

$ circle -E -dM empty.cpp
#define __circle_build__ 205
<... snip ...>
#define _GLIBCXX_HAVE_BUILTIN_IS_CONSTANT_EVALUATED

where empty.cpp is just empty (created in bash via > empty.cpp)

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

1 participant