RoseTTAFold: "buffer overflow detected" when using psipred.

here is the error:

./input_prep/make_ss.sh: line 18: 11775 Aborted (core dumped) psipred $ID.mtx $DATADIR/weights.dat $DATADIR/weights.dat2 $DATADIR/weights.dat3 > $ID.ss

I am running the fasta file in example/input.fa, I think this might be the gcc version error. Can you help me? and which version of gcc do you use?

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 21 (3 by maintainers)

Most upvoted comments

I found that the bug occurs at https://github.com/psipred/psipred/blob/master/src/sspred_avpred.c#L241, buffer size is 256 when I change it to 512, it can run, but I got the following output which seems not correct:

>ss_pred
CCCCCCCCCCCCCCCCCCCCCEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEECCEECCCCCCCCCCCCCCCC
>ss_conf
572999999899030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000999998999999

Could you give me an example of the t000_.msa0.tmp.mtx file in step 2?

Here is mine:t000_.msa0.tmp.mtx.txt

Line 15 and the following lines of the file seems to be wrong because there are many -2147483648? Is that true?

The working around works for me is by adding export BLASTMAT=your_path_to/RoseTTAFold/your_conda_env/share/blast-2.2.26/data/ to input_prep/make_ss.sh

Without it, makemat will generate the wrong size of mtx file. makemat -P t000_.msa0.tmp 44K Jul 21 13:50 t000_.msa0.tmp.mtx 19 Jul 21 13:50 t000_.msa0.tmp.mn 74 Jul 21 13:50 t000_.msa0.tmp.aux

With BLASTMAT: 24K Jul 21 13:44 t000_.msa0.tmp.mtx 19 Jul 21 13:44 t000_.msa0.tmp.mn 74 Jul 21 13:44 t000_.msa0.tmp.aux

this works for me too, you could either conda install --force-reinstall biocore::blast-legacy=2.2.26

or used “data” in

https://ftp.ncbi.nlm.nih.gov/blast/executables/legacy.NOTSUPPORTED/2.2.26/blast-2.2.26-x64-linux.tar.gz

thanks!

The working around works for me is by adding export BLASTMAT=your_path_to/RoseTTAFold/your_conda_env/share/blast-2.2.26/data/ to input_prep/make_ss.sh

Without it, makemat will generate the wrong size of mtx file. makemat -P t000_.msa0.tmp 44K Jul 21 13:50 t000_.msa0.tmp.mtx 19 Jul 21 13:50 t000_.msa0.tmp.mn 74 Jul 21 13:50 t000_.msa0.tmp.aux

With BLASTMAT: 24K Jul 21 13:44 t000_.msa0.tmp.mtx 19 Jul 21 13:44 t000_.msa0.tmp.mn 74 Jul 21 13:44 t000_.msa0.tmp.aux