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
==15175== Invalid read of size 4
==15175== at 0x5041F00: __pthread_mutex_unlock_usercnt (in /usr/lib/libpthread-2.19.so)
==15175== by 0x4640E5: cleanup::h8314b69d20f4266bUyd::v0.11.0.pre (in /tmp/tmpm0d_76im/invalid_read_mutex/main)
==15175== by 0x444D90: start::hf019bd0d44c53e2arne::v0.11.0.pre (in /tmp/tmpm0d_76im/invalid_read_mutex/main)
==15175== by 0x444B38: lang_start::h07173657fd6aab66Lme::v0.11.0.pre (in /tmp/tmpm0d_76im/invalid_read_mutex/main)
==15175== by 0x4030FE: main (in /tmp/tmpm0d_76im/invalid_read_mutex/main)
==15175== Address 0x600e110 is 16 bytes inside a block of size 128 free'd
==15175== at 0x46EA39: je_dallocx (in /tmp/tmpm0d_76im/invalid_read_mutex/main)
==15175== by 0x4640DD: cleanup::h8314b69d20f4266bUyd::v0.11.0.pre (in /tmp/tmpm0d_76im/invalid_read_mutex/main)
==15175== by 0x444D90: start::hf019bd0d44c53e2arne::v0.11.0.pre (in /tmp/tmpm0d_76im/invalid_read_mutex/main)
==15175== by 0x444B38: lang_start::h07173657fd6aab66Lme::v0.11.0.pre (in /tmp/tmpm0d_76im/invalid_read_mutex/main)
==15175== by 0x4030FE: main (in /tmp/tmpm0d_76im/invalid_read_mutex/main)
==15175==
==15175== Invalid read of size 4
==15175== at 0x5041BB0: __pthread_mutex_unlock_full (in /usr/lib/libpthread-2.19.so)
==15175== by 0x4640E5: cleanup::h8314b69d20f4266bUyd::v0.11.0.pre (in /tmp/tmpm0d_76im/invalid_read_mutex/main)
==15175== by 0x444D90: start::hf019bd0d44c53e2arne::v0.11.0.pre (in /tmp/tmpm0d_76im/invalid_read_mutex/main)
==15175== by 0x444B38: lang_start::h07173657fd6aab66Lme::v0.11.0.pre (in /tmp/tmpm0d_76im/invalid_read_mutex/main)
==15175== by 0x4030FE: main (in /tmp/tmpm0d_76im/invalid_read_mutex/main)
==15175== Address 0x600e110 is 16 bytes inside a block of size 128 free'd
==15175== at 0x46EA39: je_dallocx (in /tmp/tmpm0d_76im/invalid_read_mutex/main)
==15175== by 0x4640DD: cleanup::h8314b69d20f4266bUyd::v0.11.0.pre (in /tmp/tmpm0d_76im/invalid_read_mutex/main)
==15175== by 0x444D90: start::hf019bd0d44c53e2arne::v0.11.0.pre (in /tmp/tmpm0d_76im/invalid_read_mutex/main)
==15175== by 0x444B38: lang_start::h07173657fd6aab66Lme::v0.11.0.pre (in /tmp/tmpm0d_76im/invalid_read_mutex/main)
==15175== by 0x4030FE: main (in /tmp/tmpm0d_76im/invalid_read_mutex/main)
This is another case of rust-lang#13246. The RAII lock wasn't being destroyed until after
the allocation was free'd due to destructor scheduling.
Closesrust-lang#14784
When compiling a simple:
Valgrind print some invalid reads at execution:
The full output: https://gist.github.com/KokaKiwi/bcf0fefc8068259115d9
My rustc version:
The text was updated successfully, but these errors were encountered: