Open enghitalo opened 1 day ago
Can you reproduce it consistently? I can't reproduce it.
I tried with just v -g run bug.v
, and got the invalid memory access
message when I hit Ctrl-C:
[jalon@7950x ~]$ v -g run bug.v
worker thread started
worker thread started
worker thread started
worker thread started
worker thread started
worker thread started
worker thread started
worker thread started
worker thread started
worker thread started
worker thread started
worker thread started
worker thread started
worker thread started
worker thread started
worker thread started
running
^CTerminating...
0x745a5dc1c50d: at ???: RUNTIME ERROR: invalid memory access
/tmp/v_1000/../../../../../../home/jalon/bug.v:14: by main__cleanup
/tmp/v_1000/../../../../../../home/jalon/bug.v:32: by anon_fn_70a6b7e29084d475_os__signal_612
0x79b3a1da21d0: by ???
0x79b3a1e52827: by ???
/tmp/v_1000/../../../../../../home/jalon/git/v/vlib/time/time_nix.c.v:130: by time__sleep
/tmp/v_1000/../../../../../../home/jalon/bug.v:45: by main__main
/tmp/v_1000/../../../../../../tmp/v_1000/bug.01JC3GFV2GEW2NRVXK64P06FX2.tmp.c:48409: by main
[jalon@7950x ~]$
Looks like time.sleep()
doesn't like to be interrupted...
Ah sorry, I forgot about signal part. Thanks.
Describe the bug
panic when trying cleanup threads
Reproduction Steps
v -gc none run v/bug/bug.v
Expected Behavior
?
Current Behavior
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.8 744ac80
Environment details (OS name and version, etc.)
Linux
Huly®: V_0.6-21222