Subject: FASTA program discussion list
List archive
- From: Haruna Cofer <>
- To:
- Subject: segmentation fault in agetlibm()
- Date: Thu, 13 Aug 2015 01:10:41 -0400 (EDT)
Hello, Bill!
I am getting an intermittent segmentation fault using fasta-36.3.8 with this
traceback:
#0 0x00002aaaab3f52fb in memchr () from /lib64/libc.so.6
#1 0x000000000045a7ea in agetlibm ()
#2 0x00000000004068d3 in next_seqr_chain ()
#3 0x0000000000405f2d in seqr_chain_work ()
#4 0x0000000000403435 in main ()
It looks like it happens the first time memchr() is called on line 549 of
mmgetaa.c:
if ((bp = memchr(desc+desc_len-15,'@', 14)) && !strncmp(bp+1,"C:",2)) {
Perhaps the expression desc+desc_len-15 can point to an invalid memory
location
if desc_len is less than 15 or so? In my test case, the first entry of the
library file looks like:
>1
DPNAETLQEVLDSGAYYQ...
So desc_len=2 and desc+desc_len-15 appears to be invalid. Thank you, Bill!
-- Haruna :)
- segmentation fault in agetlibm(), Haruna Cofer, 08/13/2015
Archive powered by MHonArc 2.6.16.