Bug #87584 | Error in `/usr/bin/mysqlsh': munmap_chunk(): invalid pointer: 0x0000000001afd5c0 | ||
---|---|---|---|
Submitted: | 29 Aug 2017 13:40 | Modified: | 10 Apr 2018 23:08 |
Reporter: | Shahriyar Rzayev | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | Connector / Python | Severity: | S1 (Critical) |
Version: | 8.0.0 | OS: | CentOS (7) |
Assigned to: | CPU Architecture: | Any |
[29 Aug 2017 13:40]
Shahriyar Rzayev
[29 Aug 2017 13:59]
MySQL Verification Team
Thank you for the bug report. Are you tried the current released version 8.0.2 dmr? otherwise please try. Thanks.
[29 Aug 2017 14:03]
Shahriyar Rzayev
From downloads page the latest is 8.0.0-0.1.dmr
Attachment: there_is_no_such_version_in_downloads.png (image/png, text), 249.54 KiB.
[29 Aug 2017 14:10]
MySQL Verification Team
Thank you for the feedback. I confused with server version.
[30 Aug 2017 8:44]
MySQL Verification Team
Thank you for the report. I'm not seeing the issue on FC26. == [ushastry@fedora26 Downloads]$ mysqlsh root@localhost/world_x --py --execute "import mysql" Enter password: -- I have these packages though: [ushastry@fedora26 Downloads]$ rpm -qa|grep mysql mysql-community-common-5.7.19-1.fc26.x86_64 mysql57-community-release-fc26-10.noarch mysql-connector-python-2.1.7-1.fc26.x86_64 mysql-community-client-5.7.19-1.fc26.x86_64 mysql-shell-8.0.0-0.1.dmr.fc26.x86_64 mysql-community-libs-5.7.19-1.fc26.x86_64 mysql-community-server-5.7.19-1.fc26.x86_64 Are you using GA mysql-connector-python-2.1.7 or DMR mysql-connector-python-8.0.x? Thanks, Umesh
[30 Aug 2017 10:37]
Shahriyar Rzayev
Hi Umesh, I am using: mysql-connector-python-8.0.4-0.1.dmr.el7.x86_64.rpm
[13 Sep 2017 6:31]
Shahriyar Rzayev
Hi Umesh, Did you test it with DMR?
[13 Sep 2017 6:46]
MySQL Verification Team
Hi Shahriyar, I have not made much progress on this as all my efforts ended without any issues. I have tried on many OSs(except CentOS) but not seeing the crash at my end. I'll give it a try today on CentOS and will comeback. thanks, Umesh
[18 Sep 2017 13:02]
MySQL Verification Team
Finally, verified as described on CentOS7. Joining the logs shortly.
[18 Sep 2017 13:13]
MySQL Verification Team
test results
Attachment: 87584.results (application/octet-stream, text), 10.95 KiB.
[26 Sep 2017 18:16]
Krzysztof Grzadziel
Hi Shahriyar and Umesh, The issue is in 3rd party library `protobuf`. To fix this, I have to know if mysqlsh on centos is using shared protobuf library or static one. Could you send me printout from shared object dependecies of mysqlsh, please? Find `mysqlsh` path, using: $ which mysqlsh and get shared object dependecies by: $ ldd `which mysqlsh` or $ ldd /path/to/mysqlsh If your `mysqlsh` depends on protobuf dynamic library, please upgrade `protobuf` library on your OS. Best regards, Krzysztof
[28 Sep 2017 0:56]
Alfredo Kojima
Posted by developer: Reassigning bug to Connector/Python
[28 Sep 2017 2:07]
Krzysztof Grzadziel
Posted by developer: Hi Shahriyar, You found bug in MySQL Connector/Python driver and thank you for the bug report. Issue with `mysql-connector-python-8.0.4-0.1.dmr.el7.x86_64` is that Connector/Python use dynamic loaded `/usr/lib64/python2.7/site-packages/_mysqlxpb.so` which use `protobuf` version with this bug https://github.com/google/protobuf/pull/1062. Reported bug will be moved to MySQL Connector/Python team. `import mysqlx` imports Connector/Python library module which is not supported to be used with MySQL Shell. You should use `mysqlx` module from `mysqlsh` package which is supported by MySQL Shell, i.e. `from mysqlsh import mysqlx` instead of `import mysqlx`. $ mysqlsh root@localhost --py --execute "from mysqlsh import mysqlx" To sum up. Please use `from mysqlsh import mysqlx`. Best regards, Krzysztof
[10 Apr 2018 23:08]
Alfredo Kojima
Posted by developer: Issue can no longer be reproduced, please reopen if you can still repeat with the latest version. Furthermore, the command to import the mysqlx module in the shell should be: from mysqlsh import mysqlx Directly importing mysqlx is not supported in the shell, only in standalone Python interpreters.