This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

src/gdb ChangeLog rs6000-nat.c


CVSROOT:	/cvs/src
Module name:	src
Changes by:	brobecke@sourceware.org	2012-10-02 15:05:43

Modified files:
	gdb            : ChangeLog rs6000-nat.c 

Log message:
	gdb_bfd_unref failed assertion on AIX.
	
	Trying to run any program on AIX triggers a failed assertion:
	
	(gdb) run
	Starting program: /[...]/simple_main
	/[...]/gdb_bfd.c:288: internal-error: gdb_bfd_unref: Assertion `gdata->refc >= 1' failed.
	A problem internal to GDB has been detected,
	further debugging may prove unreliable.
	Quit this debugging session? (y or n)
	
	What happens is that we have a loop where we forgot to update
	the value of "last", resulting in the loop unref'ing the same
	BFD over and over again. We bomb the second time around, when
	triggering an assertion on the ref counter.
	
	gdb/ChangeLog:
	
	* rs6000-nat.c (add_vmap): Set "last" to "next" after having
	unref'ed it.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14724&r2=1.14725
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/rs6000-nat.c.diff?cvsroot=src&r1=1.117&r2=1.118


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]