From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31857 invoked by alias); 4 Mar 2012 20:09:43 -0000 Received: (qmail 31837 invoked by uid 22791); 4 Mar 2012 20:09:41 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_XC X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 04 Mar 2012 20:09:30 +0000 From: "kalvdans at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug external/8841] Can not set breakpoints in the vsyscall page Date: Sun, 04 Mar 2012 20:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: external X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kalvdans at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2012-q1/txt/msg00384.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=8841 --- Comment #3 from chn 2012-03-04 20:08:53 UTC --- It does not work on my Fedora 16 system, Linux 3.2: chn@jaz:~$ uname -r 3.2.7-1.fc16.x86_64 chn@jaz:~$ gdb /bin/ls GNU gdb (GDB) Fedora (7.3.50.20110722-10.fc16) Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /bin/ls...(no debugging symbols found)...done. Missing separate debuginfos, use: debuginfo-install coreutils-8.12-6.fc16.x86_64 (gdb) break *0xffffffffff600000 Breakpoint 1 at 0xffffffffff600000 (gdb) r Starting program: /bin/ls Warning: Cannot insert breakpoint 1. Error accessing memory address 0xffffffffff600000: Input/output error. (gdb) Strace of gdb shows that it fails to insert the 0xcc int3 opcode on the vsyscall page: ptrace(PTRACE_GETREGS, 26776, 0, 0x7fff9d80cdf0) = 0 ptrace(PTRACE_SETREGS, 26776, 0, 0x7fff9d80cdf0) = 0 ptrace(PTRACE_PEEKTEXT, 26776, 0x3f65e0f990, [0x2e6666666666c3f3]) = 0 ptrace(PTRACE_PEEKTEXT, 26776, 0x3f65e0f990, [0x2e6666666666c3f3]) = 0 ptrace(PTRACE_POKEDATA, 26776, 0x3f65e0f990, 0x2e6666666666c3cc) = 0 ptrace(PTRACE_PEEKTEXT, 26776, 0xffffffffff600000, [0xf00000060c0c748]) = 0 ptrace(PTRACE_PEEKTEXT, 26776, 0xffffffffff600000, [0xf00000060c0c748]) = 0 ptrace(PTRACE_POKEDATA, 26776, 0xffffffffff600000, 0xf00000060c0c7cc) = -1 EIO (Input/output error) ptrace(PTRACE_POKETEXT, 26776, 0xffffffffff600000, 0xf00000060c0c7cc) = -1 EIO (Input/output error) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.