Wesley Lin

Results 28 comments of Wesley Lin

UPDATE: In VisualStudio generators, the config to build is set by `--config Release` I change the command: ```bash cmake.exe . -G "Visual Studio 15 2017 Win64" cmake.exe --build . --target...

I try print some log in `free_jobs()`, I find that is not stuck, the whole thread is doing the ordered_free almost all the time.

maybe it is the same heap corruption with https://github.com/arvidn/libtorrent/issues/7386 can the address sanitizer result in that issue help?

I haven't found the leaking object, besides torrent_file(), call handle.status() from read_piece_alert also causes leaking.

@glassez > So each call to torrent_file() within the loop allocates some additional memory and never frees it? yes > So if you (for example) will purposely skip this call...

> Could you provide a modified code (with limiting calls to torrent_file()) that you used to test it? @glassez the limit number can be changed by `max_count` ```c++ #include #include...

I tested this a few more times and found that the amount of memory leaked does not necessarily seem to be positively correlated with the number of calls. Maybe there...

> But doesn't @Lwxiang claim that the allocated memory remains unallocated even after all read_piece_alerts are processed (and supposed to be freed)? Or did I misinterpret it? yes, if the...

![image](https://user-images.githubusercontent.com/7104402/214074330-4aa66adf-0c64-4f3c-924e-bab55ee4d5b7.png) This is not the memory usage during processing, it is after all `read_piece_alerts` processed, and wait about half an hour. I am pretty sure that the memory leaks, but...

> can you build with address sanitizer? I have tried, no leak error shows