isahc: Double free crash on macOS
I was messing around with smol/surf for the first time and managed to segfault with no unsafe code.
blep(14933,0x70000c2ac000) malloc: *** error for object 0x7fc8816029b0: pointer being freed was not allocated
blep(14933,0x70000cdc1000) malloc: Double free of object 0x7fc881602a60
blep(14933,0x70000c2ac000) malloc: *** set a breakpoint in malloc_error_break to debug
Based on this lldb backtrace it looks like a problem somewhere in isahc and libcurl. The backtrace and code are here:
https://gist.github.com/blinsay/3d5174aaa03f5546cd492054889d8789
I can reproduce this every 3-6 runs of my test program. Happy to poke around and get more information if you let me know what’s useful.
Thanks!
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (11 by maintainers)
Confirmed with slightly less silly forensics:
I pulled in
surf 2.0.0-alpha.2which got meisahc 0.92. Here’s the relevant chunk ofcargo tree:Happy to put my whole
Cargo.lockin a gist if that’s useful.