mysql 5.1 client segfault talking to 4.0 server

Bug #480601 reported by steve.horsley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Server
Unknown
Unknown
mysql-dfsg-5.1 (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: mysql-client-5.1

Connecting to an old (4.0) mysql server. Segfault when using the "status" command. I also find that mysql-admin crashes when trying to look at the server status, and I presume it is the same problem.
This is using Ubuntu 9.10 as the client OS (server is on windows).
Here is a copy of my login session:

steve@dingly:~$ mysql -h 1.2.3.4 -u xxxxxxxx -p -C
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9966075
Server version: 4.0.22-debug-log

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> status
--------------
mysql Ver 14.14 Distrib 5.1.37, for debian-linux-gnu (i486) using EditLine wrapper

Connection id: 9966075
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 4.0.22-debug-log
Protocol version: 10
Connection: 1.2.3.4 via TCP/IP
ERROR 1193 (HY000): Unknown system variable 'character_set_client'
ERROR 1193 (HY000): Unknown system variable 'character_set_client'
Segmentation fault
steve@dingly:~$

Revision history for this message
Chuck Short (zulcss) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please try to obtain a backtrace following the instructions at http://wiki.ubuntu.com/DebuggingProgramCrash and upload the backtrace (as an attachment) to the bug report. This will greatly help us in tracking down your problem.

Changed in mysql-dfsg-5.1 (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
steve.horsley (steve-horsley) wrote :

OK. It took a while to figure out that I don't get any output from mysql - no prompt. But it did crash appropriately when I entered the status command. Debug output attached (IP address and username manually edited).

Revision history for this message
Mathias Gug (mathiaz) wrote :

Thanks for the trace. This seems to be MySQL bug http://bugs.mysql.com/bug.php?id=50008.

Changed in mysql-dfsg-5.1 (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Chuck Short (zulcss) wrote :

Thanks for reporting this bug about MySQL in ubuntu.

Could you please try the version located in zulcss/mysql-testing-sru and see if you can reproduce your bug using the latest version of Mysql. If you can please reopen this bug and tag it with "Mysql SRU". Again thanks for opening this bug and making Ubuntu better.

Changed in mysql-dfsg-5.1 (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.