Created attachment 468024 [details] Fix + testcase. New testcases: PASS: gdb.cp/infcall-dlopen.exp: test * info program +Running gdb/testsuite/gdb.base/moribund-step.exp ... +Running gdb/testsuite/gdb.base/watch-cond-infcall.exp ...
likely too late for 5.6, but should be in 5.6.z and 5.7.0
* Thu Jan 13 2011 Jan Kratochvil <jan.kratochvil> - 7.0.1-33.el5 - Fix crash on stale bpstat (BZ 660197).
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Previously, a change to the list of shared libraries could corrupt the internal "bpstat" structure. Consequent to this, typing the "info program" command at a GDB prompt could cause the utility to terminate unexpectedly with a segmentation fault. This update ensures that the "bpstat" structure always contains the correct data, and running the "info program" command no longer causes the debugger to crash.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-1024.html