public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16935] New: -fPIE and -pie fllags cause Memory access errors on breakpoint
@ 2014-05-12 15:35 derek.cole at gmail dot com
  2014-05-12 15:36 ` [Bug c++/16935] " derek.cole at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: derek.cole at gmail dot com @ 2014-05-12 15:35 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16935

            Bug ID: 16935
           Summary: -fPIE and -pie fllags cause Memory access errors on
                    breakpoint
           Product: gdb
           Version: 7.7
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
          Assignee: unassigned at sourceware dot org
          Reporter: derek.cole at gmail dot com

When compiling the tor project code, and trying to run it in gdb, I recieve
errors like the following:

GNU gdb (GDB) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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-unknown-freebsd10.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from tor...done.
(gdb) break config.c:3626
Breakpoint 1 at 0xfde72: file src/or/config.c, line 3626.
(gdb) run
Starting program: /usr/home/jon/swdev/apps/tor/src/or/tor -f /home/jon/torrc
Error in re-setting breakpoint 1: Cannot access memory at address 0xfdb90
Error in re-setting breakpoint 1: Cannot access memory at address 0xfdb90

I have also tried to compile 7.7.1 and I got the same problems. This is on a
freebsd/pcbsd 10 system. If I remove the PIE references in the makefiles, the
problem goes away.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/16935] -fPIE and -pie fllags cause Memory access errors on breakpoint
  2014-05-12 15:35 [Bug c++/16935] New: -fPIE and -pie fllags cause Memory access errors on breakpoint derek.cole at gmail dot com
@ 2014-05-12 15:36 ` derek.cole at gmail dot com
  2014-05-12 16:13 ` jan.kratochvil at redhat dot com
  2014-05-12 17:03 ` [Bug c++/16935] -fPIE and -pie flags cause memory " schwab@linux-m68k.org
  2 siblings, 0 replies; 4+ messages in thread
From: derek.cole at gmail dot com @ 2014-05-12 15:36 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16935

derek.cole at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://sourceware.org/bugz
                   |                            |illa/show_bug.cgi?id=11786

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/16935] -fPIE and -pie fllags cause Memory access errors on breakpoint
  2014-05-12 15:35 [Bug c++/16935] New: -fPIE and -pie fllags cause Memory access errors on breakpoint derek.cole at gmail dot com
  2014-05-12 15:36 ` [Bug c++/16935] " derek.cole at gmail dot com
@ 2014-05-12 16:13 ` jan.kratochvil at redhat dot com
  2014-05-12 17:03 ` [Bug c++/16935] -fPIE and -pie flags cause memory " schwab@linux-m68k.org
  2 siblings, 0 replies; 4+ messages in thread
From: jan.kratochvil at redhat dot com @ 2014-05-12 16:13 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16935

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan.kratochvil at redhat dot com
           See Also|https://sourceware.org/bugz |
                   |illa/show_bug.cgi?id=11786  |
         Depends on|                            |11786

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/16935] -fPIE and -pie flags cause memory access errors on breakpoint
  2014-05-12 15:35 [Bug c++/16935] New: -fPIE and -pie fllags cause Memory access errors on breakpoint derek.cole at gmail dot com
  2014-05-12 15:36 ` [Bug c++/16935] " derek.cole at gmail dot com
  2014-05-12 16:13 ` jan.kratochvil at redhat dot com
@ 2014-05-12 17:03 ` schwab@linux-m68k.org
  2 siblings, 0 replies; 4+ messages in thread
From: schwab@linux-m68k.org @ 2014-05-12 17:03 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16935

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|-fPIE and -pie fllags cause |-fPIE and -pie flags cause
                   |Memory access errors on     |memory access errors on
                   |breakpoint                  |breakpoint

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-12 17:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-12 15:35 [Bug c++/16935] New: -fPIE and -pie fllags cause Memory access errors on breakpoint derek.cole at gmail dot com
2014-05-12 15:36 ` [Bug c++/16935] " derek.cole at gmail dot com
2014-05-12 16:13 ` jan.kratochvil at redhat dot com
2014-05-12 17:03 ` [Bug c++/16935] -fPIE and -pie flags cause memory " schwab@linux-m68k.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).