Bus Error when attempting to access MySQL Server using host name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-dfsg-5.0 (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: libmysqlclient15off
**Only seems to apply to SPARC platform**
When attempting to use any program that acts as a MySQL client (the mysql client itself, PHP's mysql support, etc) from a SPARC machine, the client crashes with a Bus Error if the server's hostname has to be resolved. For example:
(In this case, mysql.internal resolves to 192.168.0.3)
This works fine, as the server name is specified by it's IP address:
<email address hidden>$ mysql -u werdz -h 192.168.0.3 -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1193400 to server version: 4.0.24_
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> exit
Bye
But when the same server is specified by hostname, it fails:
<email address hidden>$ mysql -u werdz -h mysql.internal -p
Enter password:
Bus error
The exact same behaviour appears when connecting from a PHP script running on the same machine - PHP dies with a Bus Error. It works, however, if the IP address is specified.
The bug is appearing on a Sun Niagara T1 system (in a Sun Fire T2000), however there have been reports of the same bug appearing on other SPARC systems:
http://
Changed in mysql-dfsg-5.0 (Ubuntu): | |
importance: | Undecided → Low |
status: | Incomplete → Confirmed |
Command issued: strace
strace mysql -u werdz -h mysql.internal -p &> mysql-buserror.
Password was entered to stdin, and removed from this log file.
No output (except for "Enter Password" prompt) was sent to stdout.