Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bcftools consensus: Directory of chain file does not exist => segmentation fault #302

Closed
karel-brinda opened this issue Aug 6, 2015 · 1 comment

Comments

@karel-brinda
Copy link

When I call bcftools consensus with the -c parameter (to create a chain file), non-existence of the chain file's directory causes Segmentation fault: 11.

Examples:

  1. Non-existing directory:
On-y-go:test karel$ "/Users/karel/.smbl/bin/bcftools" consensus -c "a/a.chain" -f "test_experiment/1_reference/00000.fa" "test_experiment/7_vcf/00000.vcf.gz" > "test_experiment/1_reference/00001.fa"
[W::vcf_parse] INFO 'mt' is not defined in the header, assuming Type=String
Segmentation fault: 11
On-y-go:test karel$ echo $?
139
  1. Existing directory:
On-y-go:test karel$ "/Users/karel/.smbl/bin/bcftools" consensus -c "a.chain" -f "test_experiment/1_reference/00000.fa" "test_experiment/7_vcf/00000.vcf.gz" > "test_experiment/1_reference/00001.fa"
[W::vcf_parse] INFO 'mt' is not defined in the header, assuming Type=String
On-y-go:test karel$ echo $?
0

Version of bcftools

On-y-go:test karel$ ~/.smbl/bin/bcftools 

Program: bcftools (Tools for variant calling and manipulating VCFs and BCFs)
Version: b3257c1 (using htslib 4c82a74)
...
@jmarshall
Copy link
Member

Thanks for the report. It's a standard-issue failure to check the fopen() return value…

pd3 pushed a commit to pd3/bcftools that referenced this issue Aug 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants