[debugging case study: stdout stops segfault] #518
andrew-johnson-4
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is not a feature release, it is a case study to improve debugging tools
Currently the command utility for this compiler has a quite unfortunate bug where not writing to STDOUT results in a segfault. Writing anything from anywhere in the program stops the crash. This is probably something related to invalid memory references or stale data, but there are a few things that anyone could do to help diagnose this bug:
Try running make deploy on your Linux distribution
This bug is currently reliably occurring on my Windows Subsystem for Linux installation of Ubuntu 20.04.2 LTS.
Running make deploy will compile the compiler twice and check to see that the result is stable.
On my system the crash results in a SEGFAULT during code generation.
Does this bug remind you of anything familiar?
The compiler currently depends on x86-64 Linux system calls sys_open, sys_close, sys_read, sys_write, sys_exit, sys_brk. and nothing else. There are zero dynamically loaded libraries such as libc etc.
This discussion was created from the release [debugging case study: stdout stops segfault].
Beta Was this translation helpful? Give feedback.
All reactions