Bug 8953 - breakpoint (Error accessing memory address)
Summary: breakpoint (Error accessing memory address)
Status: ASSIGNED
Alias: None
Product: gdb
Classification: Unclassified
Component: breakpoints (show other bugs)
Version: 6.3
: P2 critical
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-20 02:28 UTC by desimoi
Modified: 2008-12-18 19:42 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description desimoi 2005-01-20 02:28:00 UTC
[Converted from Gnats 1848]

I can't insert a breakpoint in any program,
I always get an error such as:

Error accessing memory address 0xblabla: Input/Output Error

Release:
GNU gdb 6.3 and previous

Environment:
Gentoo 2004.3 Linux on amd64 
Kernel 2.6.9-gentoo-r9
Comment 1 mark.kettenis 2005-01-22 15:57:16 UTC
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: desimoi@sns.it
Cc: gdb-gnats@sources.redhat.com
Subject: Re: breakpoints/1848: breakpoint  (Error accessing memory address)
Date: Sat, 22 Jan 2005 16:57:16 +0100 (CET)

 Thanks for your bug report.  Unfortunately you don't include quite
 enough information in the report for me to see what's wrong.  My guess
 would be that even though you're on a 64-bit amd64 system your Linux
 distribution is set up such that it produces 32-bit binaries bt
 default.  To check whether this is the case, please look at the output
 of:
 
 $ uname -a
 
 and
 
 $ file gdb
 
 If the first command has x86-64 somewhere in its output and the latter
 line says something like 32-bit ELF, my guess is probably right.  In
 that case you can solve the problem by rebuilding gdb, making sure
 that you set the environment variable CC to "gcc -m64" before running
 configure.
 
 If my guess isn't right, please provide a self-contained testcase
 together with the exact commands you typed such that we can try to
 reproduce your problem.  You can use script(1) for that.
 
 Cheers,
 
 Mark

Comment 2 Mark Kettenis 2005-01-28 20:38:43 UTC
From: Mark Kettenis <kettenis@gnu.org>
To: jacopo.desimoi@sns.it
Cc: gdb-gnats@sources.redhat.com
Subject: Re: breakpoints/1848: breakpoint  (Error accessing memory address)
Date: Fri, 28 Jan 2005 21:38:43 +0100 (CET)

    From: Jacopo De Simoi <jacopo.desimoi@sns.it>
    Date: Fri, 28 Jan 2005 08:51:53 +0000
 
 [Jacopo, please CC'ing gdb-gnats@sources.redhat.com, that way this
  discussion will be automatically attached to the bug report]
 
    I have some more infos on the programs I am trying to debug
    The executables are probably relocated. Using another debugger
    (totalview demo) there is a fatal error saying
 
    Base executable '' was relocated:
      Linked at 0x00000000, loaded at 0x552aaaa000
 
    Actually, when I tried to debug gdb i found that the difference
    between any address output-ted IN gdb with printf("....."); and the
    address that gdb tries to use is exactly 0x552aaaa000. But as I
    think there should be no direct correspondence between these two
    addresses and the routines bfd_set/get_blalblah should manage this
    difference, is it right?
 
    Maybe this can help in locating the problem in gdb.
 
 I'm suspecting that this is a so position-independent executable
 (PIE).  I thought gdb supported such executables, but apparently there
 are still some problems.  I have no systems that use PIEs.  Can you
 attach a small executable that exhibits the problem to the bug-report?
 I think you can just reply to this message with the executable as a
 MIME attachment.  Hopefully the binary will run on my amd64 Linux
 system.  In any case, please report the problem to the Gentoo people.
 They did a poor job by not verifying that their toolchain completely
 supported PIE.
 
 Mark
 

Comment 3 jacopo.desimoi 2005-01-29 09:41:31 UTC
From: Jacopo De Simoi <jacopo.desimoi@sns.it>
To: Mark Kettenis <kettenis@gnu.org>
Cc: gdb-gnats@sources.redhat.com
Subject: Re: breakpoints/1848: breakpoint  (Error accessing memory address)
Date: Sat, 29 Jan 2005 09:41:31 +0000

 --Boundary-00=_Lp1+BiwtGUEF1re
 Content-Type: text/plain;
   charset="iso-8859-1"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 On Friday 28 January 2005 20:38, Mark Kettenis wrote:
 >    From: Jacopo De Simoi <jacopo.desimoi@sns.it>
 >    Date: Fri, 28 Jan 2005 08:51:53 +0000
 > 
 > [Jacopo, please CC'ing gdb-gnats@sources.redhat.com, that way this
 >  discussion will be automatically attached to the bug report]
 > 
 >    I have some more infos on the programs I am trying to debug
 >    The executables are probably relocated. Using another debugger
 >    (totalview demo) there is a fatal error saying
 > 
 >    Base executable '' was relocated:
 >      Linked at 0x00000000, loaded at 0x552aaaa000
 > 
 >    Actually, when I tried to debug gdb i found that the difference
 >    between any address output-ted IN gdb with printf("....."); and the
 >    address that gdb tries to use is exactly 0x552aaaa000. But as I
 >    think there should be no direct correspondence between these two
 >    addresses and the routines bfd_set/get_blalblah should manage this
 >    difference, is it right?
 > 
 >    Maybe this can help in locating the problem in gdb.
 > 
 > I'm suspecting that this is a so position-independent executable
 > (PIE).  I thought gdb supported such executables, but apparently there
 > are still some problems.  I have no systems that use PIEs.  Can you
 > attach a small executable that exhibits the problem to the bug-report?
 > I think you can just reply to this message with the executable as a
 > MIME attachment.  Hopefully the binary will run on my amd64 Linux
 > system.  In any case, please report the problem to the Gentoo people.
 > They did a poor job by not verifying that their toolchain completely
 > supported PIE.
 > 
 > Mark
 > 
 > 
 Here it is. I hope it will be helpful!
 Let me know if it works on your system and if you need anything else
 Jacopo
 
 --Boundary-00=_Lp1+BiwtGUEF1re
 Content-Type: application/x-sharedlib;
   name="breakfree"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment;
 	filename="breakfree"
 
 f0VMRgIBAQAAAAAAAAAAAAMAPgABAAAAIAoAAAAAAABAAAAAAAAAAOgYAAAAAAAAAAAAAEAAOAAK
 AEAAJAAhAAYAAAAFAAAAQAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAMAIAAAAAAAAwAgAAAAAAAAgA
 AAAAAAAAAwAAAAQAAABwAgAAAAAAAHACAAAAAAAAcAIAAAAAAAAcAAAAAAAAABwAAAAAAAAAAQAA
 AAAAAAABAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQNAAAAAAAAFA0AAAAAAAAAABAA
 AAAAAAEAAAAGAAAAqA0AAAAAAACoDRAAAAAAAKgNEAAAAAAAoAIAAAAAAACoAgAAAAAAAAAAEAAA
 AAAAAgAAAAYAAADQDQAAAAAAANANEAAA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cnQAX0p2
 X1JlZ2lzdGVyQ2xhc3NlcwBfX2d4eF9wZXJzb25hbGl0eV92MEBAQ1hYQUJJXzEuMwBfX2dtb25f
 c3RhcnRfXwA=
 
 --Boundary-00=_Lp1+BiwtGUEF1re
 Content-Type: text/x-c++src;
   charset="iso-8859-1";
   name="breakfree.cpp"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename="breakfree.cpp"
 
 #include <stdio.h>
 
 int main() 
 	{
 	printf("I want to break free...\n");
 	return 0;
 	}
 
 --Boundary-00=_Lp1+BiwtGUEF1re--

Comment 4 Mark Kettenis 2005-01-29 13:23:05 UTC
From: Mark Kettenis <kettenis@gnu.org>
To: jacopo.desimoi@sns.it
Cc: gdb-gnats@sources.redhat.com
Subject: Re: breakpoints/1848: breakpoint  (Error accessing memory address)
Date: Sat, 29 Jan 2005 14:23:05 +0100 (CET)

    From: Jacopo De Simoi <jacopo.desimoi@sns.it>
    Date: Sat, 29 Jan 2005 09:41:31 +0000
 
    Here it is. I hope it will be helpful!
 
 OK, my guess was right.  And it seems gdb does support PIE, just not
 dynamically linked PIE.  Unfortunately I don't see an easy fix.  Don't
 expect this to be fixed soon.
 
 There's probably a compiler or linker option to disable PIE.
 Otherwise I'm afreaid you'll have to use a different Linux
 distribution if you want to debug your code :-(.
 
 Mark

Comment 5 jacopo.desimoi 2005-01-29 16:03:19 UTC
From: Jacopo De Simoi <jacopo.desimoi@sns.it>
To: Mark Kettenis <kettenis@gnu.org>
Cc: gdb-gnats@sources.redhat.com
Subject: Re: breakpoints/1848: breakpoint  (Error accessing memory address)
Date: Sat, 29 Jan 2005 16:03:19 +0000

 In fact gcc3.4.3-hardened uses PIE as default.. (because somehow it can prevent buffer overflows, I have been told)
 Thanks gentoo there is a way to use  gcc3.4.3-hardened-nopie, and now my binaries can be debugged with gdb. (YEAH!)
 Thank you for support, I hope my report will be helpful.
 
 Jacopo