Bug #82762 Ctrl-C in on continuation prompt results in shcore::Exception
Submitted: 28 Aug 2016 13:11 Modified: 18 Jul 2017 18:33
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Document Store: MySQL Shell Severity:S3 (Non-critical)
Version:1.0.4 OS:Any
Assigned to: CPU Architecture:Any

[28 Aug 2016 13:11] Daniël van Eeden
Description:
Run mysqsh in sql mode
Type 'select'
Press enter
Press Ctrl-C

How to repeat:
mysql-sql> select
       ... terminate called after throwing an instance of 'shcore::Exception'
  what():  Invalid typecast
./mysqlsh: line 27: 26668 Aborted                 (core dumped) mysqlsh --sqlc --user=msandbox --password=msandbox --port=5714 --socket=/tmp/mysql_sandbox5714.sock "$@"

Suggested fix:
Handle the exception properly
[28 Aug 2016 16:13] Miguel Solorzano
Thank you for the bug report.

mysql-sql> select
       ... terminate called after throwing an instance of 'shcore::Exception'
  what():  Invalid typecast
Aborted (core dumped)
[miguel@tikal Downloads]$
[18 Jul 2017 18:33] Alfredo Kojima
Posted by developer:
 
No longer reproducible in 1.0.9, 1.0.10, 8.0.0