Bug #32387 Character sets: crash if set names utf32
Submitted: 14 Nov 2007 19:42 Modified: 7 Feb 2008 14:55
Reporter: Peter Gulutzan Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Charsets Severity:S3 (Non-critical)
Version:6.0.5-alpha-debug OS:Linux (SUSE 10 64-bit)
Assigned to: Assigned Account CPU Architecture:Any

[14 Nov 2007 19:42] Peter Gulutzan
Description:
I'm using the mysql-5.2-rpl team tree.

I say:
set names utf32;
select 5;
Crash.

Compare: Bug #31615  	crash after set names ucs2 collate xxx

How to repeat:
set names utf32;
select 5;

Example:

mysql> set names utf32;
Query OK, 0 rows affected (0.00 sec)

mysql> select 5;
ERROR 2013 (HY000): Lost connection to MySQL server during query
[15 Nov 2007 2:05] MySQL Verification Team
Thank you for the bug report. Verified as described.

[miguel@skybr 5.2a]$ bin/mysql -uroot test
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.2.6-alpha-debug Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> set names utf32;
Query OK, 0 rows affected (0.00 sec)

mysql> select 5;
ERROR 2013 (HY000): Lost connection to MySQL server during query
mysql>
[6 Dec 2007 7:48] Alexander Barkov
This one is possibly a duplicate for:
http://bugs.mysql.com/bug.php?id=31615

Waiting for the patch to propagate to 6.0.
[7 Feb 2008 14:55] Alexander Barkov
Verified that this is a duplicate for 
http://bugs.mysql.com/bug.php?id=31615

In the latest 6.0 version it works fine:

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 6.0.5-alpha-debug

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> set names ucs2;
ERROR 1231 (42000): Variable 'character_set_client' can't be set to the value of 'ucs2'
mysql> set names utf32;
ERROR 1231 (42000): Variable 'character_set_client' can't be set to the value of 'utf32'
mysql> set names utf16;
ERROR 1231 (42000): Variable 'character_set_client' can't be set to the value of 'utf16'