JensUweUlrich / ReadBouncer

Fast and scalable nanopore adaptive sampling
GNU General Public License v3.0
33 stars 2 forks source link

resolved segfault in erase once_seen iterator #38

Closed JensUweUlrich closed 2 years ago

JensUweUlrich commented 2 years ago

Error description: Used iterator to erase element from a SafeMap lead to segmentation fault because of unvalidated access to memory address that was deleted from the Map. Seems that two threads are deleting the same read from the once_seen Map at the same time. Can be caused by MinKNOW sending two chunks of data from the same read directly after one another.

Issue resolved by using the key to erase the element from the map.