How to solve segmentation fault (core dumped) while reading SCF files?

209 Views Asked by At

I got segmentation fault (core dumped) error when I try read SCF file.

I'm using Bio::SCF module in perl and just followed the example from "https://metacpan.org/pod/Bio::SCF".

The code is as below ...

#!/usr/bin/perl
use warnings;
use Bio::SCF;

my $scf = Bio::SCF->new('filename.scf'); # line A
or 
tie %scf, 'Bio::SCF', "filename.scf"; # line B

I hoped one of the lines read the scf file but, neither worked and just sending the "segmentation fault (core dumped" message.

What can I do? Could anyone help with this?

1

There are 1 best solutions below

0
Ether On

(This is not really an answer, since you didn't provide much information, but it's the best I can do presently...)

Bio::SCF is a compiled library (notice the .xs file), so it could have easily broken if something changed in your perl install and BIO::SCF wasn't recompiled. I would suggest, as a first step, to reinstall BIO::SCF and make sure that its tests pass (check the log for the cpan client you are using).