Clozure / ccl

Clozure Common Lisp
http://ccl.clozure.com
Apache License 2.0
857 stars 103 forks source link

Stacktraces ignore stdout/stderr redirections #472

Open galdor opened 11 months ago

galdor commented 11 months ago

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.