Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-25-2017, 02:45 AM   #1
Registered: Jul 2011
Location: Milky Way
Distribution: Ubuntu, LFS, Slackware, Fedora
Posts: 223

Rep: Reputation: 20
GDB Internal Error

I don't know whether this is a distro-specific problem (of Gentoo).

Anyway, I encountered a weird error when I was on my GDB session.
To give some context, I was working on a college assignment.
It was an Operating System course that's having me program a miniature UNIX kernel.
I was debugging some problem on process-management.
The GDB seemed okay until one point.

(gdb) b proc.c:929
Breakpoint 1 at 0x801059e0: file proc.c, line 929.
(gdb) cond 1 (!holding(&ptable.lock))
(gdb) c
The target architecture is assumed to be i386
=> 0x803bef6f:	int3   
regcache.c:401: internal-error: regcache_cpy: Assertion `src->descr->gdbarch == dst->descr->gdbarch' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)
Have anyone ever encountered this kind of experience?
Any little information is appreciated.

Thank you
Old 02-27-2017, 07:51 PM   #2
Senior Member
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
The target architecture is assumed to be i386
=> 0x803bef6f: int3
regcache.c:401: internal-error: regcache_cpy: Assertion `src->descr->gdbarch == dst->descr->gdbarch' failed.
It's assuming i386 architecture during the build however when it tries to copy, the... um... processor registers...maybe... the destination architecture is something else. Have you changed any data structures in your code since the last time you ran the debugger?

did you get something that looked like this in the debugger output prior to your error?

Syncing %s cache

Last edited by dijetlo; 02-27-2017 at 08:13 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 505- Internal server error - The server encountered an internal error or misconfigura physnastr Linux - Server 7 11-17-2011 04:57 PM
gdb error skm123 Linux - Newbie 1 10-26-2010 06:23 AM
[SOLVED] GDB internal-error using backtrace kronmiller Programming 10 08-03-2010 10:50 AM
[SOLVED] php5 ./configure error: (FILENAME=- FNR=27) fatal error: internal error richinsc Linux - Software 2 07-08-2010 09:20 AM
GDB Internal-error atulsvasu Programming 2 06-22-2007 05:01 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration