Bug #118021 mysql shell arm64 prebuilt binaries is not compatible with 65536 pagesize
Submitted: 21 Apr 2025 2:37 Modified: 6 May 2025 14:17
Reporter: jia liu Email Updates:
Status: Closed Impact on me:
None 
Category:Shell General / Core Client Severity:S4 (Feature request)
Version:8.0.42 OS:Other (ky10)
Assigned to: CPU Architecture:ARM
Tags: arm pagesize

[21 Apr 2025 2:37] jia liu
Description:
mysql shell arm64 prebuilt binaries is not compatible with 65536 pagesize

How to repeat:
Run 'mysqlsh -S /tmp/mysql.sock -u root -p -e "util.checkForServerUpgrade()"'
with an arm64 server which pagesize is 65536.

It will report error:
"error while loading shared libraries: libssh.so.4 ELF load command aligment not page-aligned"

Suggested fix:
add -z max-page-size=65536 to linker if needed
[21 Apr 2025 7:02] MySQL Verification Team
Hello!

Thank you for the feature request

regards,
Umesh
[6 May 2025 1:08] Juan Rene Ramirez Monarrez
Posted by developer:
 
The problem was caused because the libssh (3rd party used by shell) was not being compiled using pagesize of 64K to make it compatible with systems with both 4K and 64K pagesize.

The library was rebuilt using the required pagesize and the problem was solved.
[6 May 2025 14:17] Edward Gilmore
Posted by developer:
 
Added the following note to the MySQL Shell 9.3.1 release notes:
  
It was not possible to start MySQL Shell on ARM platforms if PAGE_SIZE was set to 64K. 
An error similar to the following was displayed:

mysqlsh: error while loading shared libraries: 
libssh.so.4 ELF load command aligment not page-aligned