You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seen a few segmentation faults when running disk_info() on linux.
If you call disk_info() from multiple threads at once this can core dump:
#5 0x00005585db2e28cc in DFcleanup () at c/linux.c:167
#6 0x00005585db2e265f in get_disk_info () at c/linux.c:117
#7 0x00005585db2cee4a in sys_info::disk_info () at /home/cetra/.cargo/registry/src/github.com-1ecc6299db9ec823/sys-info-0.6.0/lib.rs:494
I've seen a few segmentation faults when running
disk_info()
on linux.If you call
disk_info()
from multiple threads at once this can core dump:There is a global
DFhashvector
:sys-info-rs/c/linux.c
Line 19 in a5d126d
Which, if two threads are calling
disk_info()
theDFCleanup()
call at the end of theget_disk_info()
function will both try and free at the same time:sys-info-rs/c/linux.c
Lines 159 to 172 in a5d126d
This results in segfaults & also double frees
The text was updated successfully, but these errors were encountered: