public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* [Bug#203553: gdb: Assertion fails on -data-list-changed-registers]
@ 2003-07-30 22:06 Daniel Jacobowitz
  2003-07-31  1:04 ` Alain Magloire
  2003-08-01 16:52 ` Daniel Jacobowitz
  0 siblings, 2 replies; 6+ messages in thread
From: Daniel Jacobowitz @ 2003-07-30 22:06 UTC (permalink / raw)
  To: gdb

Huh, we can't even print out the error message correctly, apparently. 
Does this look familiar to anyone?

----- Forwarded message from Kim Hansen <k-grov@oek.dk> -----

Date: Wed, 30 Jul 2003 23:49:33 +0200
From: Kim Hansen <k-grov@oek.dk>
Subject: Bug#203553: gdb: Assertion fails on -data-list-changed-registers
To: Debian Bug Tracking System <submit@bugs.debian.org>
Reply-To: Kim Hansen <k-grov@oek.dk>, 203553@bugs.debian.org
X-Mailer: reportbug 2.20

Package: gdb
Version: 5.3.20030629-2
Severity: normal


The GDB/MI-command '-data-list-changed-registers' doesn't work, see the
log:

kim@grov:~$ gdb --interpreter=mi -q 
(gdb) 
-data-list-changed-registers 
~"/nevyn/local/gdb/gdb-5.3.20030629/gdb/frame.c:601: internal-error:
\301\005\036\b@\t\036\b*: Assertion `(null)' failed.\n"
~"A problem internal to GDB has been detected,\n"
~"further debugging may prove unreliable.\n"
~"Quit this debugging session? (y or n) "


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux grov 2.4.21-pre4-13 #1 Fri May 9 13:07:15 CEST 2003 i686
Locale: LANG=C, LC_CTYPE=da_DK

Versions of packages gdb depends on:
ii  libc6                     2.3.1-17       GNU C Library: Shared libraries an
ii  libncurses5               5.3.20030719-1 Shared libraries for terminal hand
ii  libreadline4              4.3-5          GNU readline and history libraries

-- no debconf information




----- End forwarded message -----

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

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

* Re: [Bug#203553: gdb: Assertion fails on -data-list-changed-registers]
  2003-07-30 22:06 [Bug#203553: gdb: Assertion fails on -data-list-changed-registers] Daniel Jacobowitz
@ 2003-07-31  1:04 ` Alain Magloire
  2003-07-31 22:44   ` Andrew Cagney
  2003-08-01 16:52 ` Daniel Jacobowitz
  1 sibling, 1 reply; 6+ messages in thread
From: Alain Magloire @ 2003-07-31  1:04 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb

> 
> Huh, we can't even print out the error message correctly, apparently. 
> Does this look familiar to anyone?
> 

Yes, but I will not be of any help 8-(

The bug happens a lot when using the CDT IDE,
We make use a lot of the MI commands -data-xxx-register
to give feedback to the user.

On certain platform & OS, probing the registers
can have disastrous effects on GDB, usually internal-errors.
It happens on Solaris, ARM and to a lesser extent GNU/Linux on x86
The one below was seen on Solaris 8.

Our usual response, in the Eclipse/CDT mailinglist/newsgroup,
was to turn off registers automatic refreshing and fire a PR
to GDB GNATS 8-).

> ----- Forwarded message from Kim Hansen <k-grov@oek.dk> -----
> 
> Date: Wed, 30 Jul 2003 23:49:33 +0200
> From: Kim Hansen <k-grov@oek.dk>
> Subject: Bug#203553: gdb: Assertion fails on -data-list-changed-registers
> To: Debian Bug Tracking System <submit@bugs.debian.org>
> Reply-To: Kim Hansen <k-grov@oek.dk>, 203553@bugs.debian.org
> X-Mailer: reportbug 2.20
> 
> Package: gdb
> Version: 5.3.20030629-2
> Severity: normal
> 
> 
> The GDB/MI-command '-data-list-changed-registers' doesn't work, see the
> log:
> 
> kim@grov:~$ gdb --interpreter=mi -q 
> (gdb) 
> -data-list-changed-registers 
> ~"/nevyn/local/gdb/gdb-5.3.20030629/gdb/frame.c:601: internal-error:
> \301\005\036\b@\t\036\b*: Assertion `(null)' failed.\n"
> ~"A problem internal to GDB has been detected,\n"
> ~"further debugging may prove unreliable.\n"
> ~"Quit this debugging session? (y or n) "
> 
> 
> -- System Information:
> Debian Release: testing/unstable
> Architecture: i386
> Kernel: Linux grov 2.4.21-pre4-13 #1 Fri May 9 13:07:15 CEST 2003 i686
> Locale: LANG=C, LC_CTYPE=da_DK
> 
> Versions of packages gdb depends on:
> ii  libc6                     2.3.1-17       GNU C Library: Shared libraries an
> ii  libncurses5               5.3.20030719-1 Shared libraries for terminal hand
> ii  libreadline4              4.3-5          GNU readline and history libraries
> 
> -- no debconf information
> 
> 
> 
> 
> ----- End forwarded message -----
> 
> -- 
> Daniel Jacobowitz
> MontaVista Software                         Debian GNU/Linux Developer
> 

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

* Re: [Bug#203553: gdb: Assertion fails on -data-list-changed-registers]
  2003-07-31  1:04 ` Alain Magloire
@ 2003-07-31 22:44   ` Andrew Cagney
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Cagney @ 2003-07-31 22:44 UTC (permalink / raw)
  To: Alain Magloire, Daniel Jacobowitz; +Cc: gdb

> Our usual response, in the Eclipse/CDT mailinglist/newsgroup,
> was to turn off registers automatic refreshing and fire a PR
> to GDB GNATS 8-).

Got a PR number?  I only found things like this:
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=1223
which I think are fixed.

> kim@grov:~$ gdb --interpreter=mi -q 
> (gdb) 
> -data-list-changed-registers 
> ~"/nevyn/local/gdb/gdb-5.3.20030629/gdb/frame.c:601: internal-error:
> \301\005\036\b@\t\036\b*: Assertion `(null)' failed.\n"
> ~"A problem internal to GDB has been detected,\n"
> ~"further debugging may prove unreliable.\n"
> ~"Quit this debugging session? (y or n) "

Anyway, a quick glance at the code reveals:

   if (! frame_register_read (DEPRECATED_selected_frame, regnum, 
raw_buffer))

Andrew


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

* Re: [Bug#203553: gdb: Assertion fails on -data-list-changed-registers]
  2003-07-30 22:06 [Bug#203553: gdb: Assertion fails on -data-list-changed-registers] Daniel Jacobowitz
  2003-07-31  1:04 ` Alain Magloire
@ 2003-08-01 16:52 ` Daniel Jacobowitz
  2003-08-02  0:19   ` Andrew Cagney
  1 sibling, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2003-08-01 16:52 UTC (permalink / raw)
  To: gdb

On Wed, Jul 30, 2003 at 06:06:03PM -0400, Daniel Jacobowitz wrote:
> Huh, we can't even print out the error message correctly, apparently. 

By the way, the garbled error message was present on the 6.0 branch on
6/29, but is gone as of 8/1.  Don't know what caused that.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

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

* Re: [Bug#203553: gdb: Assertion fails on -data-list-changed-registers]
  2003-08-01 16:52 ` Daniel Jacobowitz
@ 2003-08-02  0:19   ` Andrew Cagney
  2003-08-02  0:38     ` Daniel Jacobowitz
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Cagney @ 2003-08-02  0:19 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb

> On Wed, Jul 30, 2003 at 06:06:03PM -0400, Daniel Jacobowitz wrote:
> 
>> Huh, we can't even print out the error message correctly, apparently. 
> 
> 
> By the way, the garbled error message was present on the 6.0 branch on
> 6/29, but is gone as of 8/1.  Don't know what caused that.

This?

2003-06-30  Andreas Schwab  <schwab@suse.de>

         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
         format error message.

2003-06-26  Andrew Cagney  <cagney@redhat.com>

         * utils.c (internal_vproblem): Print the problem to a reason
         buffer and then pass to query.  Make the msg variable more local.

Turned out my compiler didn't detect the typo, but Andreas's compiler did.

Andrew


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

* Re: [Bug#203553: gdb: Assertion fails on -data-list-changed-registers]
  2003-08-02  0:19   ` Andrew Cagney
@ 2003-08-02  0:38     ` Daniel Jacobowitz
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel Jacobowitz @ 2003-08-02  0:38 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb

On Fri, Aug 01, 2003 at 08:19:28PM -0400, Andrew Cagney wrote:
> >On Wed, Jul 30, 2003 at 06:06:03PM -0400, Daniel Jacobowitz wrote:
> >
> >>Huh, we can't even print out the error message correctly, apparently. 
> >
> >
> >By the way, the garbled error message was present on the 6.0 branch on
> >6/29, but is gone as of 8/1.  Don't know what caused that.
> 
> This?
> 
> 2003-06-30  Andreas Schwab  <schwab@suse.de>
> 
>         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
>         format error message.
> 
> 2003-06-26  Andrew Cagney  <cagney@redhat.com>
> 
>         * utils.c (internal_vproblem): Print the problem to a reason
>         buffer and then pass to query.  Make the msg variable more local.
> 
> Turned out my compiler didn't detect the typo, but Andreas's compiler did.

Aha!  Thanks very much, that explains it.  Just my bad timing for a
snapshot...

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

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

end of thread, other threads:[~2003-08-02  0:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-30 22:06 [Bug#203553: gdb: Assertion fails on -data-list-changed-registers] Daniel Jacobowitz
2003-07-31  1:04 ` Alain Magloire
2003-07-31 22:44   ` Andrew Cagney
2003-08-01 16:52 ` Daniel Jacobowitz
2003-08-02  0:19   ` Andrew Cagney
2003-08-02  0:38     ` Daniel Jacobowitz

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).