Closed gewang closed 1 year ago
Test.ck
public class Test { function void test(){ <<< "TEST" >>>; } }
Test1.ck
Test t; t.test();
run:
terminal1> ./chuck Test.ck --loop terminal2> ./chuck + Test1.ck terminal1> free(): double free detected in tcache 2 Abort (core dumped)
(reproduced on linux)
thanks to @celestebetancur for discovering and narrowing down the issue!
issue due to a double fclose() on a file descriptor in otf_process_msg() — fd passed to compiler with incorrect autoClose flag (resolution: fc85e1e)
fclose()
otf_process_msg()
fd
autoClose
Test.ck
Test1.ck
run:
(reproduced on linux)
thanks to @celestebetancur for discovering and narrowing down the issue!