vmware-archive / salt-pack

Salt Package Builder
Apache License 2.0
55 stars 23 forks source link

python-zmq-debuginfo.x86_64 debug info is not correct. #741

Closed whytewolf closed 2 years ago

whytewolf commented 3 years ago

while trying to use GDB to determine what is happening with a weird segfault. I have gdb complaining that the debug info for zmq does not match file files correctly.

[root@salt00 test]# gdb
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/>.
(gdb) file python3
Reading symbols from /usr/bin/python3.6...Reading symbols from /usr/lib/debug/usr/bin/python3.6.debug...done.
done.
(gdb) run -c 'import salt.config'
Starting program: /bin/python3 -c 'import salt.config'
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
warning: the debug information found in "/usr/lib/debug//usr/lib64/python3.6/site-packages/zmq/backend/cython/constants.cpython-36m-x86_64-linux-gnu.so.debug" does not match "/usr/lib64/python3.6/site-packages/zmq/backend/cython/constants.cpython-36m-x86_64-linux-gnu.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib64/python3.6/site-packages/zmq/backend/cython/constants.cpython-36m-x86_64-linux-gnu.so.debug" does not match "/usr/lib64/python3.6/site-packages/zmq/backend/cython/constants.cpython-36m-x86_64-linux-gnu.so" (CRC mismatch).

Missing separate debuginfo for /usr/lib64/python3.6/site-packages/zmq/backend/cython/constants.cpython-36m-x86_64-linux-gnu.so
Try: yum --enablerepo='*debug*' install /usr/lib/debug/.build-id/c4/78b639f3957c6c0cfb95c239be1dde9d3e5712.debug
warning: the debug information found in "/usr/lib/debug//lib64/libzmq.so.5.0.0.debug" does not match "/lib64/libzmq.so.5" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib64/libzmq.so.5.0.0.debug" does not match "/lib64/libzmq.so.5" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug//usr/lib64/libzmq.so.5.0.0.debug" does not match "/lib64/libzmq.so.5" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib64//libzmq.so.5.0.0.debug" does not match "/lib64/libzmq.so.5" (CRC mismatch).

Missing separate debuginfo for /lib64/libzmq.so.5
Try: yum --enablerepo='*debug*' install /usr/lib/debug/.build-id/45/122744768c850cf7c53df63e5f7ef91e1b26fe.debug
warning: the debug information found in "/usr/lib/debug//usr/lib64/python3.6/site-packages/zmq/backend/cython/error.cpython-36m-x86_64-linux-gnu.so.debug" does not match "/usr/lib64/python3.6/site-packages/zmq/backend/cython/error.cpython-36m-x86_64-linux-gnu.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib64/python3.6/site-packages/zmq/backend/cython/error.cpython-36m-x86_64-linux-gnu.so.debug" does not match "/usr/lib64/python3.6/site-packages/zmq/backend/cython/error.cpython-36m-x86_64-linux-gnu.so" (CRC mismatch).

Missing separate debuginfo for /usr/lib64/python3.6/site-packages/zmq/backend/cython/error.cpython-36m-x86_64-linux-gnu.so
Try: yum --enablerepo='*debug*' install /usr/lib/debug/.build-id/a2/c1fbf623f93220d8eb505b6fb046c5ef3de0f2.debug
warning: the debug information found in "/usr/lib/debug//usr/lib64/python3.6/site-packages/zmq/backend/cython/message.cpython-36m-x86_64-linux-gnu.so.debug" does not match "/usr/lib64/python3.6/site-packages/zmq/backend/cython/message.cpython-36m-x86_64-linux-gnu.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib64/python3.6/site-packages/zmq/backend/cython/message.cpython-36m-x86_64-linux-gnu.so.debug" does not match "/usr/lib64/python3.6/site-packages/zmq/backend/cython/message.cpython-36m-x86_64-linux-gnu.so" (CRC mismatch).

Missing separate debuginfo for /usr/lib64/python3.6/site-packages/zmq/backend/cython/message.cpython-36m-x86_64-linux-gnu.so
Try: yum --enablerepo='*debug*' install /usr/lib/debug/.build-id/42/f40d4ecbb29e12a239876ce8495587ded36bca.debug
warning: the debug information found in "/usr/lib/debug//usr/lib64/python3.6/site-packages/zmq/backend/cython/context.cpython-36m-x86_64-linux-gnu.so.debug" does not match "/usr/lib64/python3.6/site-packages/zmq/backend/cython/context.cpython-36m-x86_64-linux-gnu.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib64/python3.6/site-packages/zmq/backend/cython/context.cpython-36m-x86_64-linux-gnu.so.debug" does not match "/usr/lib64/python3.6/site-packages/zmq/backend/cython/context.cpython-36m-x86_64-linux-gnu.so" (CRC mismatch).

Missing separate debuginfo for /usr/lib64/python3.6/site-packages/zmq/backend/cython/context.cpython-36m-x86_64-linux-gnu.so
Try: yum --enablerepo='*debug*' install /usr/lib/debug/.build-id/4c/072e227f343c07813d6fcee39db3b02951141d.debug
warning: the debug information found in "/usr/lib/debug//usr/lib64/python3.6/site-packages/zmq/backend/cython/socket.cpython-36m-x86_64-linux-gnu.so.debug" does not match "/usr/lib64/python3.6/site-packages/zmq/backend/cython/socket.cpython-36m-x86_64-linux-gnu.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib64/python3.6/site-packages/zmq/backend/cython/socket.cpython-36m-x86_64-linux-gnu.so.debug" does not match "/usr/lib64/python3.6/site-packages/zmq/backend/cython/socket.cpython-36m-x86_64-linux-gnu.so" (CRC mismatch).

Missing separate debuginfo for /usr/lib64/python3.6/site-packages/zmq/backend/cython/socket.cpython-36m-x86_64-linux-gnu.so
Try: yum --enablerepo='*debug*' install /usr/lib/debug/.build-id/2d/51b9d95eba8b078e976914b2a3f89ea1b1053b.debug
warning: the debug information found in "/usr/lib/debug//usr/lib64/python3.6/site-packages/zmq/backend/cython/utils.cpython-36m-x86_64-linux-gnu.so.debug" does not match "/usr/lib64/python3.6/site-packages/zmq/backend/cython/utils.cpython-36m-x86_64-linux-gnu.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib64/python3.6/site-packages/zmq/backend/cython/utils.cpython-36m-x86_64-linux-gnu.so.debug" does not match "/usr/lib64/python3.6/site-packages/zmq/backend/cython/utils.cpython-36m-x86_64-linux-gnu.so" (CRC mismatch).

Missing separate debuginfo for /usr/lib64/python3.6/site-packages/zmq/backend/cython/utils.cpython-36m-x86_64-linux-gnu.so
Try: yum --enablerepo='*debug*' install /usr/lib/debug/.build-id/72/1dd010fa3920726394e109f00d11ddf0ec0cc7.debug
warning: the debug information found in "/usr/lib/debug//usr/lib64/python3.6/site-packages/zmq/backend/cython/_poll.cpython-36m-x86_64-linux-gnu.so.debug" does not match "/usr/lib64/python3.6/site-packages/zmq/backend/cython/_poll.cpython-36m-x86_64-linux-gnu.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib64/python3.6/site-packages/zmq/backend/cython/_poll.cpython-36m-x86_64-linux-gnu.so.debug" does not match "/usr/lib64/python3.6/site-packages/zmq/backend/cython/_poll.cpython-36m-x86_64-linux-gnu.so" (CRC mismatch).

Missing separate debuginfo for /usr/lib64/python3.6/site-packages/zmq/backend/cython/_poll.cpython-36m-x86_64-linux-gnu.so
Try: yum --enablerepo='*debug*' install /usr/lib/debug/.build-id/d6/fbca2eb9d20d655a1ff3a4bf34adb35175d3a8.debug
warning: the debug information found in "/usr/lib/debug//usr/lib64/python3.6/site-packages/zmq/backend/cython/_version.cpython-36m-x86_64-linux-gnu.so.debug" does not match "/usr/lib64/python3.6/site-packages/zmq/backend/cython/_version.cpython-36m-x86_64-linux-gnu.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib64/python3.6/site-packages/zmq/backend/cython/_version.cpython-36m-x86_64-linux-gnu.so.debug" does not match "/usr/lib64/python3.6/site-packages/zmq/backend/cython/_version.cpython-36m-x86_64-linux-gnu.so" (CRC mismatch).

Missing separate debuginfo for /usr/lib64/python3.6/site-packages/zmq/backend/cython/_version.cpython-36m-x86_64-linux-gnu.so
Try: yum --enablerepo='*debug*' install /usr/lib/debug/.build-id/3d/e27b2fddb45f8fc0975892d3db5a68a552c31e.debug
warning: the debug information found in "/usr/lib/debug//usr/lib64/python3.6/site-packages/zmq/backend/cython/_device.cpython-36m-x86_64-linux-gnu.so.debug" does not match "/usr/lib64/python3.6/site-packages/zmq/backend/cython/_device.cpython-36m-x86_64-linux-gnu.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib64/python3.6/site-packages/zmq/backend/cython/_device.cpython-36m-x86_64-linux-gnu.so.debug" does not match "/usr/lib64/python3.6/site-packages/zmq/backend/cython/_device.cpython-36m-x86_64-linux-gnu.so" (CRC mismatch).

Missing separate debuginfo for /usr/lib64/python3.6/site-packages/zmq/backend/cython/_device.cpython-36m-x86_64-linux-gnu.so
Try: yum --enablerepo='*debug*' install /usr/lib/debug/.build-id/90/dee82860891668053685bd49f1c71d814cb15d.debug
[Detaching after fork from child process 2493]
[Detaching after fork from child process 2495]
[Inferior 1 (process 2489) exited normally]
(gdb)
[root@salt00 test]# yum list installed |grep zmq
python-zmq-debuginfo.x86_64     17.0.0-5.el7                    @salt-py3-latest
python36-zmq.x86_64             17.0.0-5.el7                    @salt-py3-latest
bryceml commented 3 years ago

Which repo did you have configured that this is pulling from? or rather, what does your .repo file look like?

whytewolf commented 3 years ago

ugh, thanks. I thought I had already switched to saltproject. apparently I did not on this host

[salt-py3-latest]
name=SaltStack Latest Release Channel Python 3 for RHEL/Centos $releasever
baseurl=https://repo.saltstack.com/py3/redhat/7/$basearch/latest
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/saltstack-signing-key, file:///etc/pki/rpm-gpg/centos7-signing-key
whytewolf commented 3 years ago

humm, nope switching to saltproject and uninstalling and reinstalling that debuginfo and gdb still gives the same errors

bryceml commented 3 years ago

btw, going forward, I've been just copying the rpms from epel directly rather than re-compiling them from source rpms. The only thing I do is re-sign them.

https://repo.saltproject.io/salt_rc/py3/redhat/7/x86_64/

I wasn't planning on copying the respective debug rpms or source rpms for ones directly copied from epel, assuming people could just grab epel's copies of those if they wanted them.

Is that going to be an issue?

bryceml commented 3 years ago

looks like python36-zmq in our repos is a newer version that is not in epel for centos 7, so this is a legitimate problem I need to look into. Hopefully in time for 3003.1.