From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46513 invoked by alias); 19 Jul 2018 15:59:58 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 45554 invoked by uid 48); 19 Jul 2018 15:59:49 -0000 From: "awillia2 at sourcefire dot com" To: systemtap@sourceware.org Subject: [Bug kprobes/23260] SystemTap usage appears to adversely affect GDB breakpoint functionality Date: Thu, 19 Jul 2018 15:59:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: kprobes X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: awillia2 at sourcefire dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-q3/txt/msg00027.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23260 --- Comment #4 from Andrew W --- Just to follow-up on this, the issue also affects C binaries as well, but i= n a different way. For the program below: int main() { return 1; } $ gcc main.c $ gdb ./a.out GNU gdb (Ubuntu 8.0.1-0ubuntu1) 8.0.1 ... This GDB was configured as "x86_64-linux-gnu". ... Reading symbols from ./a.out...(no debugging symbols found)...done. (gdb) break _start Breakpoint 1 at 0x4f0 (gdb) run Starting program: /home/zelda/Desktop/a.out=20 Breakpoint 1, 0x00005555555544f0 in _start () (gdb)=20 [In a second terminal] $ ps -eL -o pid,ppid,lwp,stat,nlwp,cmd | awk 'NR=3D=3D1 || /\/home\/zelda\/Desktop\/a.out/' PID PPID LWP STAT NLWP CMD 56346 56342 56346 t 1 /home/zelda/Desktop/a.out $ sudo stap --suppress-handler-errors --skip-badvars strace.stp -x 56346 -v Pass 1: parsed user script and 465 library scripts using 119616virt/48552res/6432shr/42428data kb, in 90usr/90sys/286real ms. Pass 2: analyzed script: 1116 probes, 207 functions, 104 embeds, 108 globals using 311348virt/239224res/5376shr/234160data kb, in 22240usr/1320sys/26099= real ms. Pass 3: using cached /home/zelda/.systemtap/cache/02/stap_027e862ab47a5cdf6a07ae0b1c596ae7_10797= 24.c Pass 4: using cached /home/zelda/.systemtap/cache/02/stap_027e862ab47a5cdf6a07ae0b1c596ae7_10797= 24.ko Pass 5: starting run. Thu Jul 19 15:47:35 2018.405124 exit_group(1) =3D=20 [ In a third terminal, you can see the process is no longer running ] $ ps -eL -o pid,ppid,lwp,stat,nlwp,cmd | awk 'NR=3D=3D1 || /\/home\/zelda\/Desktop\/a.out/' PID PPID LWP STAT NLWP CMD $ [ In the first terminal ] (gdb) c Continuing. Warning: Cannot insert breakpoint 1. Cannot access memory at address 0x5555555544f0 Cannot insert breakpoint -2. Temporarily disabling shared library breakpoints: breakpoint #-2 breakpoint #-5 breakpoint #-7 --=20 You are receiving this mail because: You are the assignee for the bug.