Open tearfur opened 1 week ago
The crash will happen if the following series of events happened:
tr_torrent
tr_torrentFreeInSessionThread()
tr_torrent::VerifyMediator::on_verify_done()
I think this fixes the recent CI crashes in LT.TorrentMagnetTest.setMetadataPiece, such as this one https://github.com/transmission/transmission/pull/6665#issuecomment-2132217599.
LT.TorrentMagnetTest.setMetadataPiece
The crash will happen if the following series of events happened:
tr_torrent
object.tr_torrentFreeInSessionThread()
, about to free thistr_torrent
object.tr_torrent::VerifyMediator::on_verify_done()
queues a lambda that captures a pointer to thetr_torrent
object.tr_torrent
object is freed.tr_torrent
pointer.I think this fixes the recent CI crashes in
LT.TorrentMagnetTest.setMetadataPiece
, such as this one https://github.com/transmission/transmission/pull/6665#issuecomment-2132217599.