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

Stacktraces ignore stdout/stderr redirections #472

Open
galdor opened this issue Dec 26, 2023 · 0 comments
Open

Stacktraces ignore stdout/stderr redirections #472

galdor opened this issue Dec 26, 2023 · 0 comments

Comments

@galdor
Copy link

galdor commented Dec 26, 2023

Using CCL 1.12.1 on Linux x86_64:

ccl --no-init --batch --quiet --eval '(error "test")' >ccl.log 2>&1

The error stacktrace is still printed in the terminal and not redirected to ccl.log as expected.

Stracing CCL shows that the stacktrace is printed in a child process. I suspect that CCL does not correctly handle file descriptors in the child process, leading to fds 1 and 2 not being the same as the parent and escaping redirection.

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