Skip to content

Conversation

@benjeffery
Copy link
Member

Fixes #2400

@benjeffery benjeffery force-pushed the variant_samples_segfault branch from 057396e to 6e2c720 Compare July 13, 2022 12:27
@benjeffery
Copy link
Member Author

@petrelharp or @molpopgen Are you able to do a quick review here? I want to get out a point release ASAP to fix this.

@molpopgen
Copy link
Member

I can take a peek later today!

@benjeffery benjeffery force-pushed the variant_samples_segfault branch from 6e2c720 to e952f50 Compare July 13, 2022 13:46
@codecov
Copy link

codecov bot commented Jul 13, 2022

Codecov Report

Merging #2401 (e2ec4d0) into main (dc45651) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2401   +/-   ##
=======================================
  Coverage   93.33%   93.34%           
=======================================
  Files          28       28           
  Lines       26977    26982    +5     
  Branches     1245     1245           
=======================================
+ Hits        25180    25187    +7     
+ Misses       1763     1761    -2     
  Partials       34       34           
Flag Coverage Δ
c-tests 92.26% <100.00%> (+<0.01%) ⬆️
lwt-tests 89.05% <ø> (ø)
python-c-tests 71.01% <ø> (+0.01%) ⬆️
python-tests 98.96% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
c/tskit/genotypes.c 90.29% <100.00%> (+0.11%) ⬆️
python/_tskitmodule.c 90.66% <0.00%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc45651...e2ec4d0. Read the comment docs.

@molpopgen
Copy link
Member

I don't see any obvious red flags in the changes to the C side. But I may not be the best person to find them.

I ran this, which didn't flag anything relevant to these diffs:

find tskit -name '*.c' | xargs clang-tidy -p build/compile_commands.json --checks="all"

@benjeffery
Copy link
Member Author

Thanks @molpopgen!

@benjeffery
Copy link
Member Author

@Mergifyio rebase

@mergify
Copy link
Contributor

mergify bot commented Jul 14, 2022

rebase

✅ Branch has been successfully rebased

@benjeffery benjeffery force-pushed the variant_samples_segfault branch from e952f50 to e2ec4d0 Compare July 14, 2022 10:43
@benjeffery
Copy link
Member Author

Merging without an approval as @jeromekelleher is away and we need to push out a fix.

@benjeffery benjeffery merged commit 812af67 into tskit-dev:main Jul 14, 2022
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.

Segfault on accessing variant.samples

2 participants