stoneatom / stonedb

StoneDB is an Open-Source MySQL HTAP and MySQL-Native DataBase for OLTP, Real-Time Analytics, a counterpart of MySQLHeatWave. (https://stonedb.io)
https://stonedb.io/
GNU General Public License v2.0
862 stars 139 forks source link

bug: gdb -p mysqld but Segmentation fault #1629

Open adofsauron opened 1 year ago

adofsauron commented 1 year ago

Have you read the Contributing Guidelines on issues?

Please confirm if bug report does NOT exists already ?

Describe the problem


[root@zhx-test install]# gdb -p 8186
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-120.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Attaching to process 8186
Reading symbols from /opt/stonedb57/install/bin/mysqld...Segmentation fault

root      7612     1  0 15:23 pts/5    00:00:00 /bin/sh /opt/stonedb57/install//bin/mysqld_safe --user=mysql --datadir=/opt/stonedb57/install/data/ --socket=/opt/stonedb57/install//tmp/mysql.sock --pid-file=/opt/stonedb57/install/data/mysqld.pid --ledir=/opt/stonedb57/install//bin
mysql     8186  7612 64 15:26 pts/5    00:00:30 /opt/stonedb57/install//bin/mysqld --basedir=/opt/stonedb57/install --datadir=/opt/stonedb57/install/data --plugin-dir=/opt/stonedb57/install/lib/plugin --user=mysql --log-error=zhx-test.err --pid-file=/opt/stonedb57/install/data/mysqld.pid --socket=/opt/stonedb57/install//tmp/mysql.sock
root      8358  8033  0 15:27 pts/6    00:00:00 grep --color=auto mysqld

Expected behavior

No response

How To Reproduce

No response

Environment

No response

Are you interested in submitting a PR to solve the problem?

adofsauron commented 1 year ago

    linux-vdso.so.1 =>  (0x00007ffc884bc000)
    libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fe15530e000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe1550f2000)
    libaio.so.1 => /lib64/libaio.so.1 (0x00007fe154ef0000)
    libboost_system.so.1.66.0 => /usr/local/stonedb-boost/lib/libboost_system.so.1.66.0 (0x00007fe155814000)
    libsnappy.so.1 => /lib64/libsnappy.so.1 (0x00007fe154cea000)
    libbz2.so.1 => /lib64/libbz2.so.1 (0x00007fe154ada000)
    liblz4.so.1 => /lib64/liblz4.so.1 (0x00007fe1548cb000)
    libzstd.so.1 => /lib64/libzstd.so.1 (0x00007fe154610000)
    libmarisa.so.0 => /usr/local/stonedb-marisa/lib/libmarisa.so.0 (0x00007fe1557eb000)
    librocksdb.so.6 => /usr/local/stonedb-gcc-rocksdb/librocksdb.so.6 (0x00007fe153d6a000)
    libboost_thread.so.1.66.0 => /usr/local/stonedb-boost/lib/libboost_thread.so.1.66.0 (0x00007fe1557bc000)
    libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fe153b33000)
    libssl.so.10 => /lib64/libssl.so.10 (0x00007fe1538c1000)
    libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007fe15345e000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007fe15325a000)
    librt.so.1 => /lib64/librt.so.1 (0x00007fe153052000)
    libm.so.6 => /lib64/libm.so.6 (0x00007fe152d50000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fe152b3a000)
    libc.so.6 => /lib64/libc.so.6 (0x00007fe15276c000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fe155616000)
    libjemalloc.so.1 => /lib64/libjemalloc.so.1 (0x00007fe152538000)
    libz.so.1 => /lib64/libz.so.1 (0x00007fe152322000)
    libfreebl3.so => /lib64/libfreebl3.so (0x00007fe15211f000)
    libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007fe151ed2000)
    libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007fe151be9000)
    libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007fe1519e5000)
    libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007fe1517b2000)
    libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007fe1515a2000)
    libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007fe15139e000)
    libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fe151184000)
    libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fe150f5d000)
    libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fe150cfb000)
davidshiz commented 1 year ago

8.0 has the same problem

[root@HAST04 ~]# gdb -p 29574
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-120.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Attaching to process 29574
Reading symbols from /stonedb/build/install8/bin/mysqld...Segmentation faul
RingsC commented 1 year ago

@adofsauron update to the latest, and try it again.

davidshiz commented 1 year ago

the new version also has this problem

[root@stonedb-test support-files]# /stonedb57/install/bin/mysqld --version
/stonedb57/install/bin/mysqld  Ver 5.7.36-StoneDB-v1.0.1.6b369e5 for Linux on x86_64 (build-)
build information as follow:
        Repository address: https://github.com/stoneatom/stonedb.git:stonedb-5.7-dev
        Branch name: stonedb-5.7-dev
        Last commit ID: 6b369e5
        Last commit time: Date:   Thu Jun 8 19:16:12 2023 +0800
        Build time: Date: Tue Jun 13 08:31:13 UTC 2023
[root@stonedb-test mysql-test]# gdb -p 1533
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-120.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Attaching to process 1533
Reading symbols from /stonedb57/install/bin/mysqld...Segmentation fault (core dumped)