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
Presumably this is a user-after-free bug introduced by autofree.
Reproduction Steps
importtimeprintln(time.parse_format('04 Oct 2023', 'DD MMM YYYY') or { panic('???') })
Expected Behavior
Output from "v run":
2023-10-04 00:00:00
Current Behavior
Output from "v -autofree run" is inconsistent. Sometime the parse returns a v error when it shouldn't:
V panic: ???
v hash: 0e711f9
/tmp/v_1000/timebug.01HWH4PS2BK7CWC6TH4BYRGAYN.tmp.c:7317: at _v_panic: Backtrace
/tmp/v_1000/timebug.01HWH4PS2BK7CWC6TH4BYRGAYN.tmp.c:16007: by main__main
/tmp/v_1000/timebug.01HWH4PS2BK7CWC6TH4BYRGAYN.tmp.c:16083: by main
And sometimes the parse panics:
V panic: substr(0, -706054738) out of bounds (len=11) s="04 Oct 2023"
v hash: 0e711f9
/tmp/v_1000/timebug.01HWH4QM33K65PGQSPS9BGFDWY.tmp.c:7317: at _v_panic: Backtrace
/tmp/v_1000/timebug.01HWH4QM33K65PGQSPS9BGFDWY.tmp.c:10894: by string_substr
/tmp/v_1000/timebug.01HWH4QM33K65PGQSPS9BGFDWY.tmp.c:13384: by time__DateTimeParser_next
/tmp/v_1000/timebug.01HWH4QM33K65PGQSPS9BGFDWY.tmp.c:13463: by time__DateTimeParser_must_be_string
/tmp/v_1000/timebug.01HWH4QM33K65PGQSPS9BGFDWY.tmp.c:13816: by time__DateTimeParser_parse
/tmp/v_1000/timebug.01HWH4QM33K65PGQSPS9BGFDWY.tmp.c:15022: by time__parse_format
/tmp/v_1000/timebug.01HWH4QM33K65PGQSPS9BGFDWY.tmp.c:16004: by main__main
/tmp/v_1000/timebug.01HWH4QM33K65PGQSPS9BGFDWY.tmp.c:16083: by main
Describe the bug
Presumably this is a user-after-free bug introduced by autofree.
Reproduction Steps
Expected Behavior
Output from "v run":
Current Behavior
Output from "v -autofree run" is inconsistent. Sometime the parse returns a v error when it shouldn't:
And sometimes the parse panics:
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.5 0e711f9
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: