sql shell: seg fault in libedit when editing a large entry #71207
Labels
A-cli-client
CLI commands that pertain to using SQL features
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
found by @smcvey
Describe the problem
If the user recalls a history entry that's taller than the terminal and then attempts to edit it, the process crashes.
To Reproduce
select 1, <newline> 1, <newline> ...
(10-20 lines), let it runExpected behavior
no crash
Additional data / screenshots
the stack trace from Go's perspective:
The C stack trace, obtained by
gdb
:Environment:
crdb 21.2
Jira issue: CRDB-10440
Epic CRDB-22182
The text was updated successfully, but these errors were encountered: