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
potatosalad
changed the title
OTP 26 shell edlin_expand crash with deeply nested autocomplete
OTP 26 shell edlin_expand crash with invalid autocomplete
Jan 11, 2024
Describe the bug
This was originally discovered when doing some property-based tests involving autocomplete in the OTP 26 shell.
The input
a:x(b:y(c:z(a:x(0b:y(c:z(0)
followed by pressing<TAB>
results in a crash insideedlin_expand
:After manually shrinking the counterexample, it looks like
0:a(
plus<TAB>
is all that is needed to cause the crash:To Reproduce
erl
0:a(
<TAB>
to trigger autocompleteAlternatively, the following may be executed directly:
Expected behavior
This behavior is not present in OTP 25. The shell should not crash due to an autocomplete error.
See output on OTP 25 for comparison:
Affected versions
OTP 26.2.1 (and all other versions of OTP 26 as far as I've tested)
The text was updated successfully, but these errors were encountered: