question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Segfault when using --run with --jobs sys

See original GitHub issue

Hiya! 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:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
evhubcommented, Sep 30, 2016

@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.

0reactions
x10an14commented, Sep 30, 2016

'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?).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found