Segfault when using --run with --jobs sys
See original GitHub issueHiya! Working on dockerizing Coconut in PR #183, and may have come across a segfault bug?
In this commit, I’ve managed to minimize the developer docker container image from 600+MB to 389.2MB, but there’s ONE test which fails.
Here’s a gist showing what happens when I tried to briefly look into it.
(There’s two runs of the tests in that gist, first run fails 6 tests due to tests having hardcoded use of the python
binary, which was fixed by symlinking the python3
binary on line 2056).
@evhub Would you have a chance/capacity to help me look into whether this is Coconut’s fault, or the minimized alpine base container image’s fault?
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Identify what's causing segmentation faults (segfaults)
A segfault occurs when a reference to a variable falls outside the segment where that variable resides, or when a write is attempted...
Read more >What causes a Python segmentation fault? - Stack Overflow
This happens when a python extension (written in C) tries to access a memory beyond reach. You can trace it in following ways....
Read more >DataStage jobs fail with OshExecuter.sh Segmentation fault ...
A segmentation fault in OshExecuter.sh at line 25 means that the script was unable to launch the primary parallel job process, osh. This ......
Read more >Running application ends with "Segmentation Fault"
A segmentation fault is the result of a memory access violation. The program has referred to a memory address outside of what was...
Read more >Segmentation fault when running PHP script from CLI, works ...
This works fine locally and when run on production via a cron job. It fails with a Segmentation fault when invoked on production...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@x10an14 It’s only a temporary solution, but for right now just change
["--run"]
to["--run", "--jobs", "0"]
in https://github.com/evhub/coconut/blob/develop/tests/main_test.py#L183.'Aight! How do I go about modifying this correctly to run without segfault on Docker, with changes implying the least maintenance?
It’s currently the command
make test
that invokes the--jobs sys
.Do you have any suggestion for how to avoid that invocation, with the least required maintenance (as opposed to just utilizing the makefile rules?).