Debugging selectmodule.so
Vikram Hosakote (vhosakot)
vhosakot at cisco.com
Thu Jan 8 06:00:45 UTC 2015
Hi,
I am running RHEL 7 and using the ‘select' Python package from
/usr/lib64/python2.7/lib-dynload/selectmodule.so that is part of the
python-libs-2.7.5-16.el7.x86_64 RPM.
>>> import select
>>> select
<module 'select' from '/usr/lib64/python2.7/lib-dynload/selectmodule.so'>
>>>
# rpm -ql python-libs-2.7.5-16.el7.x86_64 | grep select
/usr/lib64/python2.7/lib-dynload/selectmodule.so
In this ‘select’ package, I see that one of the functions blocks/hangs
unexpectedly and does not return. Since this package is in the binary
file /usr/lib64/python2.7/lib-dynload/selectmodule.so, I am not able to
view its code or debug the issue.
Could you please let me know the way to debug this binary file
/usr/lib64/python2.7/lib-dynload/selectmodule.so of the RPM
python-libs-2.7.5-16.el7.x86_64 when I see a function block/hang in the
‘select’ package.
I am able to load the binary using gdb.
[root at controller python2.7(keystone_admin)]# gdb /usr/lib64/python2.7/lib-dynload/selectmodule.so
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-51.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/>...
Reading symbols from /usr/lib64/python2.7/lib-dynload/selectmodule.so…
Reading symbols from /usr/lib/debug/usr/lib64/python2.7/lib-dynload/selectmodule.so.debug...done.
done.
(gdb)
Thanks a lot.
Regards,
Vikram Hosakote
OpenStack Software Engineer | vhosakot at cisco.com
Cloud and Virtualization Group | Cisco Systems
Boxborough MA | Work : 978-936-8799
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20150108/f049cfa1/attachment.html>
More information about the Rpm-list
mailing list