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
run with v -autofree run bug.v, wait for the break point, type a bit in the input and then it crashes.
Expected Behavior
It not to crash.
Current Behavior
❯ v -autofree run bug.v
Break on [main] main in bug.v:6
free(): double free detected in tcache 2
0x7f78cd87a62c: at ???: RUNTIME ERROR: abort() called
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
0x7f78cd7ea0e0: by ???
�B}�az ⏎
/tmp/v_1000/bug.01JHSW9VDH3ABKD8NMBQ6NSCAF.tmp.c:5845: by _v_free
/tmp/v_1000/bug.01JHSW9VDH3ABKD8NMBQ6NSCAF.tmp.c:7676: by string_free
/tmp/v_1000/bug.01JHSW9VDH3ABKD8NMBQ6NSCAF.tmp.c:9767: by readline__Readline_refresh_line
/tmp/v_1000/bug.01JHSW9VDH3ABKD8NMBQ6NSCAF.tmp.c:9851: by readline__Readline_commit_line
/tmp/v_1000/bug.01JHSW9VDH3ABKD8NMBQ6NSCAF.tmp.c:9591: by readline__Readline_execute
/tmp/v_1000/bug.01JHSW9VDH3ABKD8NMBQ6NSCAF.tmp.c:9344: by readline__Readline_read_line_utf8
/tmp/v_1000/bug.01JHSW9VDH3ABKD8NMBQ6NSCAF.tmp.c:9363: by readline__Readline_read_line
/tmp/v_1000/bug.01JHSW9VDH3ABKD8NMBQ6NSCAF.tmp.c:10130: by v__debug__Debugger_read_line
/tmp/v_1000/bug.01JHSW9VDH3ABKD8NMBQ6NSCAF.tmp.c:10251: by v__debug__Debugger_interact
/tmp/v_1000/bug.01JHSW9VDH3ABKD8NMBQ6NSCAF.tmp.c:10414: by main__main
/tmp/v_1000/bug.01JHSW9VDH3ABKD8NMBQ6NSCAF.tmp.c:10476: by main
Describe the bug
it crashes pretty fast because of a double free.
Reproduction Steps
run with
v -autofree run bug.v
, wait for the break point, type a bit in the input and then it crashes.Expected Behavior
It not to crash.
Current Behavior
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.9 6ac1d08.f9106a8
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: