Bug 520618
Summary: | processing 'continue' command of gdb is slow, when many breakpoints are set | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Martin Osvald 🛹 <mosvald> |
Component: | gdb | Assignee: | Jan Kratochvil <jan.kratochvil> |
Status: | CLOSED ERRATA | QA Contact: | BaseOS QE <qe-baseos-auto> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 5.4 | CC: | cward, ebachalo, moshiro, pmuller, tao |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-03-30 08:52:13 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 526533 | ||
Bug Blocks: | 499522 | ||
Attachments: |
Description
Martin Osvald 🛹
2009-09-01 13:16:29 UTC
Created attachment 359385 [details]
source file to compile and run under gdb to reveal this bug
Created attachment 359387 [details]
commands for gdb with 2000 breakpoints
Created attachment 359388 [details]
commands for gdb with 5000 breakpoints
Fixed in gdb-7.0-13.el5. ~~ Attention Customers and Partners - RHEL 5.5 Beta is now available on RHN ~~ RHEL 5.5 Beta has been released! There should be a fix present in this release that addresses your request. Please test and report back results here, by March 3rd 2010 (2010-03-03) or sooner. Upon successful verification of this request, post your results and update the Verified field in Bugzilla with the appropriate value. If you encounter any issues while testing, please describe them and set this bug into NEED_INFO. If you encounter new defects or have additional patch(es) to request for inclusion, please clone this bug per each request and escalate through your support representative. Hello, I have tested the gdb on both RHEL 5.4 and 5.5 with the following results: RHEL5.5 gdb-7.0.1-20.el5: ========================= $ time gdb testC5000 -x cmd2500.txt ... --- snip --- real 0m25.121s user 0m8.855s sys 0m9.097s $ $ time gdb testC5000 -x cmd5000.txt ... --- snip --- real 1m28.025s user 0m38.299s sys 0m34.509s $ RHEL5.4 gdb-6.8-37.el5: ======================= $ time gdb testC5000 -x cmd2500.txt ... --- snip --- real 4m9.789s user 3m40.934s sys 0m11.037s $ $ time gdb testC5000 -x cmd5000.txt ... --- snip --- real 36m58.809s user 34m57.002s sys 0m51.605s $ As we can see there is a great improvement in gdb-7.0.1 in comparsion to gdb-6.8 in both phases - storing breakpoints into internal array and also processing breakpoints when a breakpoint is hit (restoring an original content on place of breakpoint address). I will response soon with the customer's results. Best regards, -Martin 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-2010-0285.html |