[Bug 1181478] New: ptrace_singlestep breaks hardware breakpoints
https://bugzilla.suse.com/show_bug.cgi?id=1181478 Bug ID: 1181478 Summary: ptrace_singlestep breaks hardware breakpoints Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: screening-team-bugs@suse.de Reporter: tdevries@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- [ Filed here upstream: https://sourceware.org/bugzilla/show_bug.cgi?id=27188 ] Compile this ( https://sourceware.org/git?p=binutils-gdb.git;a=blob_plain;f=gdb/testsuite/g... ) ... $ gcc src/gdb/testsuite/gdb.base/gdb11531.c -g ... And run this debug session: ... $ gdb -batch a.out \ -ex start \ -ex "watch myrec.x" \ -ex step Temporary breakpoint 1 at 0x4010fa: file gdb11531.c, line 34. Temporary breakpoint 1, main () at gdb11531.c:34 34 myrec.x = 5; Hardware watchpoint 2: myrec.x 35 myrec.y = 3.4; ... The hardware watchpoint doesn't trigger. This problem occurs on factory, not on leap 15.2. This is not related to debug info. When replacing next with continue (such that we use ptrace_cont instead of ptrace_singlestep), the hardware watchpoint triggers. Also, when we disable hardware watchpoints using "set can-use-hw-watchpoints 0" the watchpoint triggers. So, the problem seems to be related to hardware watchpoints and ptrace_singlestep. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1181478 Tom de Vries <tdevries@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bpetkov@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1181478 https://bugzilla.suse.com/show_bug.cgi?id=1181478#c1 Tom de Vries <tdevries@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Development |Kernel Assignee|screening-team-bugs@suse.de |kernel-bugs@opensuse.org --- Comment #1 from Tom de Vries <tdevries@suse.com> --- Boris, I suspect this is a kernel PR. Reproduces on HW. I got both tw and leap 15.2 installed on the same laptop, and problem only reproduces on tw. Could you take a look? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1181478 Tom de Vries <tdevries@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|ptrace_singlestep breaks |ptrace_singlestep breaks |hardware breakpoints |hardware watchpoints -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1181478 https://bugzilla.suse.com/show_bug.cgi?id=1181478#c2 --- Comment #2 from Borislav Petkov <bpetkov@suse.com> --- https://lkml.kernel.org/r/YBMAbQGACujjfz%2Bi@hirez.programming.kicks-ass.net -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1181478 https://bugzilla.suse.com/show_bug.cgi?id=1181478#c3 Miroslav Bene�� <mbenes@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |mbenes@suse.com Resolution|--- |FIXED --- Comment #3 from Miroslav Bene�� <mbenes@suse.com> --- Closing, because TW is far by v5.11. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com