Peter Pan
03/04/2026, 6:29 AM..calculating medians for 21
..calculating medians for 22
..calculating medians for X
..annotate copy numbers
.command.sh: line 60: 65 Segmentation fault (core dumped) freec -conf config.txt
Work dir:
/home/ec2-user/wes/work/7f/7934db123d056275a5cf21741b2b69
Container:
quay.io/biocontainers/control-freec:11.6b--hdbdd923_0
I had plenty of memory allocated so it didn't look like an OOM issue. Running freec standalone (outside of the pipeline) also replicated the crash, confirming it was a problem with freec itself. GDB identified the problem - a vector called breakpoints was occasionally empty, and the code would call breakpoints.back() without checking, leading to the segfault. Adding a line to handle this edge case fixed the issue -- I posted it to the github with hopes that it'll get patched in the next release (https://github.com/BoevaLab/FREEC/issues/164).
I couldn't find this problem reported anywhere else so it must not be triggered commonly - out of >100 samples, this only happened in two samples. Not sure if it has to do with the breakPointThreshold of 1.2 in config.txt (too high?). It's patched now on my local machine and manually running the patched freec binary works, but I'd rather keep the workflow as simple/reproducible with as little manual work as possible. The github repo isn't particularly active so I'm wondering if the best solution for now is to feed sarek a config file that looks for the ControlFreeC process and points to a custom docker container with the patched binaryThomas Danhorn
03/05/2026, 4:10 AMprocess {
withName: 'FREEC_.*' { // I hope that catches all the relevant processes
container = '/path/to/custom_freec.img'
}
}
The compilation of all software versions used by sarek happens by running the respective tool with something like -v and capturing the output. If you wanted that to distinguish between the patched and unpatched Control-FREEC versions, you would have to patch the code printing the version as well.Rike Hanssen
03/05/2026, 7:52 AMMaxime Garcia
03/05/2026, 8:03 AMPeter Pan
03/05/2026, 1:55 PM