jsh58 / Genrich

Detecting sites of genomic enrichment
MIT License
185 stars 27 forks source link

Segmentation fault: 11 #18

Closed bigmonty12 closed 5 years ago

bigmonty12 commented 5 years ago

Hello,

I'm a beginning bioinformatician and have really appreciated all the work you've done for the community! I have tried getting Genrich to work but always get an error that says "Segmentation fault: 11" no matter the parameters. I've tried deleting and recloning. Every time I try to compile the program, I do get a bunch of the same warnings but am completely unfamiliar with C and do not know how to proceed with them (warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'int64_t {aka long long int}' [-Wformat=] ). Perhaps this is wherein the issue lies.

Any help and advice that you have in regards to this issue would be greatly appreciated!

Thank you, Austin

jsh58 commented 5 years ago

Austin,

Without knowing the details, I would suggest running valgrind, as mentioned in response to issue #16. That's a good way to track down a segfault. Another option is gdb.

John Gaspar

bigmonty12 commented 5 years ago

Hi John,

After trying to run Genrich with lldb, this is the output.

I honestly have no idea what any of this means and am unfortunately not well-versed in debugging. Could you help me understand this?

Thank you, Austin

jsh58 commented 5 years ago

I do not understand it either; I am not familiar with lldb.

You can try posting the first few lines of your SAM/BAM file generated from these commands:

samtools view -h <BAM> | head -n5
od -tx4 <BAM> | head -n5

Also, please read this.

bigmonty12 commented 5 years ago

Thank you for the article to read. I will try to keep that all in mind.

I used lldb because I couldn't get gdb or valgrind to work. There seems to be an issue with them working on the newest version of macOS Mojave so I tried a recommendation of lldb.

"samtools view -h | head -n5" produces: @HD VN:1.0 SO:queryname @SQ SN::1539792_tblastxwrap_masked LN:141 @SQ SN::1539770_tblastxwrap_masked LN:123 @SQ SN::1539791_tblastxwrap_masked LN:165 @SQ SN::1539790_tblastxwrap_masked LN:171

"od -tx4 | head -n5" produces: 0000000 04088b1f 00000000 0006ff00 00024342 0000020 5b8c2171 b71dcecd 6e97450d 4890a5df 0000040 b4abcfea 368ba2e8 40a06145 f457c657 0000060 8bad145b e49076c4 7936f249 0b9dccb6 0000100 788f0ef8 19d6b972 28a43c8a f1fd2352

bigmonty12 commented 5 years ago

Hi John,

I was able to figure out the issue. Turns out there was a problem with the Drosophila index that I used to align with bowtie2. After switching to a different index, the issue resolved itself and Genrich was able to run without a hitch.

Thank you for your help! Austin