Cannot Insert Breakpoint 2. Error Accessing Memory Address
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the gdb cannot insert breakpoint error accessing memory address company Business Learn more about hiring developers or posting ads with us Stack Overflow
Gdb Cannot Insert Breakpoint Cannot Access Memory At Address
Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7
Gdb Break Cannot Access Memory At Address
million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up After setting a breakpoint in Qt, gdb says: “Error accessing memory address” up vote 5 down vote favorite 1
Error In Re-setting Breakpoint 1: Cannot Access Memory At Address
I wrote a very simple Qt program here: int main(int argc, char* argv[]) { QApplication app(argc, argv); QTableView table(&frame); table.resize(100, 100); table.show(); return app.exec(); } And when I try to set a breakpoint where the table gets clicked, I get this error from gdb: (gdb) symbol-file /usr/lib/libQtGui.so.4.4.3.debug Load new symbol table from "/usr/lib/libQtGui.so.4.4.3.debug"? (y or n) y Reading symbols from /usr/lib/libQtGui.so.4.4.3.debug...done. (gdb) br 'QAbstractItemView::clicked(QModelIndex const&)' Breakpoint 1 at 0x5fc660: file .moc/release-shared/moc_qabstractitemview.cpp, line 313. gdb cannot insert breakpoint 0 (gdb) run Starting program: ./qt-test Warning: Cannot insert breakpoint 1. Error accessing memory address 0x5fc660: Input/output error. Does anyone know why the breakpoint can't be inserted? debugging qt qt4 gdb breakpoints share|improve this question edited Jul 14 '09 at 6:19 Quinn Taylor 36.6k1395118 asked May 26 '09 at 21:18 Neil 10k73448 I'm using Ubuntu Intrepid, and I have installed libqt4-dbg, if that helps at all. –Neil May 26 '09 at 21:22 add a comment| 4 Answers 4 active oldest votes up vote 2 down vote accepted If you want to automatically break in main without setting a breakpoint you can also use the start command. If you need to provide any arguments to the program you can use: start argument1 argument2 share|improve this answer edited May 29 '09 at 9:27 answered May 28 '09 at 20:57 Andy 2,4841525 add a comment| up vote 10 down vote Don't use the gdb command symbol-file to load external symbols. The breakpoint addresses will be wrong since they're not relocated. Instead, put a breakpoint in main, run the program, and then set your breakpoint: gdb ./program GNU gdb 6.8-debian blah blah blah (gdb) br main Breakpoint 1 at 0x80489c1 (gdb) run Starting program: ./program Breakpoint 1, 0x080489c1 in main () (gdb) br 'QAbstractItemView::clicked(QModelIndex const&)' Breakpoint 2 at 0xb7d24664 (gdb
Things LocationTech Long-Term Support PolarSys Science OpenMDM More Community Marketplace Events Planet Eclipse Newsletter Videos Participate Report a Bug Forums Mailing Lists Wiki IRC How gdb cannot access memory at address to Contribute Working Groups Automotive Internet of Things LocationTech Long-Term Support PolarSys Science OpenMDM Toggle navigation Home Projects Forums Eclipse Community Forums Forum Search: Search Help Register Login Home Home» Language IDEs» C / C++ IDE (CDT)» Failed to execute MI command(Eclipse and GDT/MI woes) Show: Today's Messages :: Show Polls :: Message http://stackoverflow.com/questions/912808/after-setting-a-breakpoint-in-qt-gdb-says-error-accessing-memory-address Navigator Failed to execute MI command [message #683459] Mon, 13 June 2011 19:47 Tom RoweMessages: 2Registered: June 2011 Junior Member I'm running Helios SR2 on RHEL6 32b with CDT 7.02, GDB common 7.0, IBM J9 VM 1.5.0. I'm trying to debug a C++ module across JNI from a JUnit. 1. I launch my "JUnit" debug config https://www.eclipse.org/forums/index.php/t/213210/ and successfully breakpoint immediately after my System.loadLibrary(mysharedlib). 2. I then launch my "C/C++ Attach to Application" debug config, which is defined as: - Application=Debug/libmysharedlib.so - Build config=debug - Debugger=gdb - Non-stop mode=off (although this setting makes no difference) This Attach to Application launches, I then attach it to javaw properly, and I see 13 suspended threads. 3. I then attempt to resume C++ thread #1 (state=suspended: user request) to no avail. - Entering "info break" from the gdb console correctly shows my breakpoint in the C++ code. Further, I can successfully display code in my C++ module, so I know I have debug info present. - Entering "c" from the gdb console gives: Warning: Cannot insert breakpoint 1. Error accessing memory address 0x2da6: Input/output error. 4. When I then attempt to resume the JUnit thread, I get the expected "org.eclipse.jdi.TimeoutException: Timeout occurred while waiting for packet 622. occurred resuming thread." as it appears all C++ threads are still suspended. The workspace/.metadata/.log yields messages like: !ENTRY org.eclipse.cdt.dsf 4 10005 2011-06-13
password? Problem with breakpoints in gdb It is now over 60 days since the last post. This thread is closed.  Refresh page Posted by Greven Canada(835 posts)bio Date Thu 05 Feb 2004 10:36 PM (UTC) Message http://gammon.com.au/forum/?id=3731 I'm trying to set a break point, but I'm getting this error: Quote:(gdb) break fight.c:525 https://forum.qt.io/topic/12444/creator-2-4-gdb-can-t-set-breakpoints-anymore Breakpoint 1 at 0x80e1bca: file fight.c, line 525. (gdb) cont Continuing. Warning: Cannot insert breakpoint 1. Error accessing memory address 0x80e1bca: Input/output error. The same program may be running in another process. I get similar problem when I try to boot it from within gdb,but the breakpoint is -2. My compilation flags are: Quote:DEBUG = -ggdb C_FLAGS cannot insert = -g3 -g2 -W -Wall $(DEFINES) $(PROF) $(NOCRYPT) $(DBUGFLG) $(DEBUG) -export-dynamic I'm really unclear on what the problem may be, or what I can do about it. Nobody ever expects the spanish inquisition! darkwarriors.net:4848 http://darkwarriors.nettop Posted by David Haley USA(3,881 posts)bio Date Reply #1 on Fri 06 Feb 2004 01:27 AM (UTC) Message Looks like you might have the program running twice (under two separate process.) David Haley aka Ksilyan Head Programmer, Legends cannot insert breakpoint of the Darkstone http://david.the-haleys.orgtop Posted by Greven Canada(835 posts)bio Date Reply #2 on Fri 06 Feb 2004 01:27 AM (UTC)Amended on Fri 06 Feb 2004 01:33 AM (UTC) by Greven Message nope, only one, I checked that. This might help:dwadmins@godlike:~/src$ ps ux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND dwadmins 555 0.0 0.2 2104 1836 ? S Feb04 0:00 /bin/bash ./swr-watch dwadmins 904 0.0 0.4 6232 3204 ? S Feb04 0:00 sshd: dwadmins@pts/14 dwadmins 905 0.0 0.3 2372 2432 pts/14 S Feb04 0:00 -bash dwadmins 562 1.3 1.4 11528 11496 ? SN Feb04 21:13 swr 4848 hotboot 5 0 0 0 -1 dwadmins 2298 0.0 0.1 2788 1368 pts/14 R 18:32 0:00 ps ux dwadmins@godlike:~/src$ gdb swr 562 GNU gdb 5.3 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-slackware-linux"... Attaching to program: /home/mud/darkwars/dwadmins/src/swr, process 562 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /usr/lib/libz.so.1...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /lib/libcrypt.so.1...done. Loaded symbols for /lib/libcrypt.so.1 Reading symbols from
download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript). Home Qt Development Tools Creator 2.4: GDB can't set breakpoints anymore Creator 2.4: GDB can't set breakpoints anymore This topic has been deleted. Only users with topic management privileges can see it. Asperamanca last edited by I updated to Creator 2.4, and now I can't debug my application anymore using gdb. I get the error message: "Warning Cannot insert breakpoint 1. Error accessing memory address 0x24d: Input/output error." The debugger settings are all on defaults for the SDK installation. Working on Windows XP. Anything I can do to fix the problem? Reply Quote 0 tobias.hunger Moderators last edited by Try deleting all breakpoints. How did you end up with a breakpoint in such a location in the first place? Reply Quote 0 Asperamanca last edited by Found the reason. It's a breakpoint inside a template class method. That doesn't seem to be supported. I completely forgot about that limitation. Sorry for the scare. Reply Quote 0 Loading More Posts 3 Posts 3184 Views Reply Reply as topic Log in to reply 1 / 1