Re: [Bug#203553: gdb: Assertion fails on -data-list-changed-registers]

Alain Magloire
2003-07-31T01:04:31Z

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