GNU gdb (GDB) 7.2 Copyright (C) 2010 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-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/rogelio/a.out...done. (gdb) b main Breakpoint 1 at 0x640: file dummy.c, line 1. (gdb) r Starting program: /home/rogelio/a.out Warning: Cannot insert breakpoint 1. Error accessing memory address 0x13a8342640: Input/output error. Cannot insert breakpoint -1. Temporarily disabling shared library breakpoints: breakpoint #-1
Can you provide a test source file and instructions for building it? A simple PIE test on my machine (Fedora 15) works fine with gdb.
Closing as OBSOLETE due to inactivity. Feel free to reopen if still valid.