Skip to content

Add missing samtools merge return code check#1394

Merged
daviesrob merged 2 commits intosamtools:developfrom
jmarshall:check-pglist
Mar 15, 2021
Merged

Add missing samtools merge return code check#1394
daviesrob merged 2 commits intosamtools:developfrom
jmarshall:check-pglist

Conversation

@jmarshall
Copy link
Copy Markdown
Member

This prevents a segfault in cases like #1393, though I don't know how the headers in that issue's input files have managed to get NULL from trans_rg_pg().

(If this is NULL, calling finish_rg_pg() on it will crash.)
@daviesrob
Copy link
Copy Markdown
Member

Thanks. I've taken the liberty of adding a NEWS item.

@jmarshall
Copy link
Copy Markdown
Member Author

This prevents the observed segfault, but there still appear to be failure routes through trans_rg_pg() that don't produce an error message. So I don't think this has fixed the underlying problem.

@daviesrob
Copy link
Copy Markdown
Member

Ok, I will remove the "fixed ..." bit.

@jmarshall
Copy link
Copy Markdown
Member Author

Cheers. Probably ought to credit Kemin Zhou for discovering the problem too.

@daviesrob
Copy link
Copy Markdown
Member

Adjusted. Apologies for the force push.

@jmarshall
Copy link
Copy Markdown
Member Author

No apology needed 😄 👍

@daviesrob daviesrob merged commit b0ac2af into samtools:develop Mar 15, 2021
@jmarshall jmarshall deleted the check-pglist branch March 15, 2021 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants