fix: reqwest と tokio のアップグレードによるWindows上でのパニックの修正 #135
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #117
概要
reqwest および tokio のバージョンを更新し、古い mio クレート (v0.6.23) が引き起こしていたWindows環境でのパニック (null pointer dereference) を修正しました。
変更点
理由
デバッグビルドされたバイナリをWindowsで実行した際、reqwest 0.10系が間接的に依存している mio 0.6.23 内で null pointer dereferenceによるパニックが発生していました。
この問題は mio の古いバージョンの既知の不具合です。tokio 1.x および reqwest 0.11 以降にアップグレードすることで、修正済みの新しい mioが使用されるようになり、この問題が解決します。
なお、リリースビルド(--release)でエラーが発生しないのは、最適化による処理タイミングの変化によりデバッグビルドで発生していた「クラッシュを引き起こす特定のタイミング」が偶然回避されていたと考えられます。