<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 15px; font-family: Calibri, sans-serif;">
<div>Hi,</div>
<div><br>
</div>
<div>I am running RHEL 7 and using the ‘select' Python package from</div>
<div>/usr/lib64/python2.7/lib-dynload/selectmodule.so that is part of the</div>
<div>python-libs-2.7.5-16.el7.x86_64 RPM.</div>
<div><br>
</div>
<div>>>> import select</div>
<div>
<div>>>> select</div>
<div><module 'select' from '/usr/lib64/python2.7/lib-dynload/selectmodule.so'></div>
<div>>>> </div>
</div>
<div><br>
</div>
<div>
<div># rpm -ql python-libs-2.7.5-16.el7.x86_64 | grep select</div>
<div>/usr/lib64/python2.7/lib-dynload/selectmodule.so</div>
</div>
<div><br>
</div>
<div>In this ‘select’ package, I see that one of the functions blocks/hangs </div>
<div>unexpectedly and does not return. Since this package is in the binary </div>
<div>file /usr/lib64/python2.7/lib-dynload/selectmodule.so, I am not able to</div>
<div>view its code or debug the issue.</div>
<div><br>
</div>
<div>Could you please let me know the way to debug this binary file</div>
<div>/usr/lib64/python2.7/lib-dynload/selectmodule.so of the RPM</div>
<div>python-libs-2.7.5-16.el7.x86_64 when I see a function block/hang  in the</div>
<div>‘select’ package.</div>
<div><br>
</div>
<div>I am able to load the binary using gdb.</div>
<div><br>
</div>
<div>
<div>[root@controller python2.7(keystone_admin)]# gdb /usr/lib64/python2.7/lib-dynload/selectmodule.so</div>
<div>GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-51.el7</div>
<div>Copyright (C) 2013 Free Software Foundation, Inc.</div>
<div>License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html></div>
<div>This is free software: you are free to change and redistribute it.</div>
<div>There is NO WARRANTY, to the extent permitted by law.  Type "show copying"</div>
<div>and "show warranty" for details.</div>
<div>This GDB was configured as "x86_64-redhat-linux-gnu".</div>
<div>For bug reporting instructions, please see:</div>
<div><http://www.gnu.org/software/gdb/bugs/>...</div>
<div>Reading symbols from /usr/lib64/python2.7/lib-dynload/selectmodule.so…</div>
<div>Reading symbols from /usr/lib/debug/usr/lib64/python2.7/lib-dynload/selectmodule.so.debug...done.</div>
<div>done.</div>
<div>(gdb) </div>
</div>
<div><br>
</div>
<div>Thanks a lot.</div>
<div><br>
</div>
<div>Regards,</div>
<div>
<div>Vikram Hosakote</div>
<div>OpenStack Software Engineer    |    vhosakot@cisco.com</div>
<div>Cloud and Virtualization Group  |    Cisco Systems</div>
<div>Boxborough MA                            |    Work : 978-936-8799</div>
</div>
</body>
</html>