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.

Segmentation fault (core dumped)

See original GitHub issue

Dear Fritz,

I’m running ngmlr and sniffles to find small insertions in prokaryotic genomes. Although the strategy worked for every chromosome I have tried, just half of my samples (3/6) could be processed when I input small regions of interest (~50kbp) extracted from plasmids. You can find the program calls and additional info below.

  • 24 threads

  • ngmlr call:

ngmlr -t $threads -r ${inputdir}/${i}_polished.fa \
          -q ${fastqdir}/${i}.fastq.gz -o ${samdir}/${i}.sam \
          --no-smallinv \
          --bam-fix \
          -x ont > ${samdir}/${i}_ngmlr.log 2> ${samdir}/${i}_ngmlr.err
  • converting and sorting SAM to BAM using samtools 1.9 (also tried with 1.7)

  • sniffles call:

sniffles -t $threads \
            -m ${bamdir}/${i}.bam \
            --min_support 1 \
            --max_distance 500 \
            --max_num_splits 2 \
            --min_length 100 \
            --num_reads_report 5 \
            --min_seq_size 1000 \
            --report_seq \
            -v ${vcfsniffles}/${i}.vcf > ${vcfsniffles}/${i}_sniffles.log 2> ${vcfsniffles}/${i}_sniffles.log
  • sniffles stdout and stderr:
Estimating parameter...
	Max dist between aln events: 4
	Max diff in window: 50
	Min score ratio: 2
	Avg DEL ratio: 0.0576036
	Avg INS ratio: 0.124236
Start parsing... barcode01_gvp
Finalizing  ..
Segmentation fault (core dumped)

For the failed samples, the output vcf file is empty.

I have tried to run it in two machines, and the error is reproducible in both of them. Could you please take a look at this issue? I’m privately sharing the files with you by e-mail.

Best regards, Alan.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fritzsedlazeckcommented, Sep 23, 2018

Dear Alan, Thanks for reporting this. I will have a look. You might want to check min support = 2 in the mean time . Cheers Fritz

0reactions
fritzsedlazeckcommented, Feb 8, 2022

We just pushed a completely new version of Sniffles (v2.0.0.2) and hope this will be resolved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

what is Segmentation fault (core dumped)? - Stack Overflow
"Segmentation fault" means that you tried to access memory that you do not have access to. The first problem is with your arguments...
Read more >
Error :- Segmentation fault(Core Dumped) - CodeChef Discuss
A segmentation fault ( SEGFAULT ) occurs when you are trying to access memory which you should not be trying to access (...
Read more >
Identify what's causing segmentation faults (segfaults)
A segmentation fault (aka segfault) is a common condition that causes programs to crash; they are often associated with a file named core...
Read more >
Resolving Segmentation Fault (“Core dumped”) in Ubuntu - Blog
Segmentation fault is when your system tries to access a page of memory that doesn't exist. Core dumped means when a part of...
Read more >
When I get a 'segmentation fault (core dumped)' error ... - Quora
A segmentation fault occurs when a process attempts to access memory in a way that the operating system and processor cannot or will...
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