lh3 / gfa1

This repo is deprecated. Please use gfatools instead.
https://github.com/lh3/gfatools
16 stars 3 forks source link

gfaview: segmentation fault with Canu unitigs #4

Open sjackman opened 6 years ago

sjackman commented 6 years ago

The following Canu unitigs GFA file causes gfaview to segfault.

❯❯❯ gfaview canu.unitigs.gfa
[5]    14685 segmentation fault

Using revision 2faeed2953399102e8bb22f5aa833c8f900a7587 of 2018-01-11

sjackman commented 6 years ago

This Canu unitigs graph reproduces the segmentation fault: canu.unitigs.gfa.gz

sjackman commented 6 years ago

Backtrace

0   gfaview 0x000000010377f3f6 gfa_arc_rm + 102 (gfa.c:587)
1   gfaview 0x000000010377eea5 gfa_cleanup + 21 (gfa.c:600)
2   gfaview 0x000000010377ea76 gfa_read + 854 (gfa.c:11)
3   gfaview 0x0000000103783111 main + 609 (gfaview.c:91)
sjackman commented 6 years ago

This segmentation fault is caused by an overlap that is larger than the adjacent segment size. I've opened PR #5 to fix this issue.