value_copy: Assertion `arg->contents != nullptr' failed.

Bug #1971409 reported by Balika011
92
This bug affects 20 people
Affects Status Importance Assigned to Milestone
gdb (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

When debugging RP2040 with vscode this assert makes gdb crash.
This is a new assert, that wasn't present in gdb 11.
The fix is easy, replace `if (!value_lazy (val))` to `if (!value_lazy (val) && arg->contents != nullptr) `.

Revision history for this message
Andrea (mariofutire86) wrote :

Got the same issue in VSCode using gdb 12.0.90.

I compiled gdb 12.1 and it works.
Can we get it updated to 12.1?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gdb (Ubuntu):
status: New → Confirmed
Revision history for this message
jamie pate (jamie-pate) wrote :

see also https://sourceware.org/bugzilla/show_bug.cgi?id=29045#c3 where the gdb list recommends updating to a stable version of gdb

Revision history for this message
Hoernchen (hoernchen) wrote (last edit ):

It would be much appreciated if a LTS version of ubuntu would not ship completely broken random master branch checkouts for months.

See also https://github.com/microsoft/vscode-cpptools/issues/9135

Revision history for this message
enygmata (heuripedes) wrote :

This was fixed by upstream in april. See https://sourceware.org/bugzilla/show_bug.cgi?id=28980

Revision history for this message
Kevin Puetz (puetzk) wrote (last edit ):

And there's a build for kinetic that contains the fix, which does actually install and work on jammy (since no other dependencies changed too much, at least not yet): https://github.com/microsoft/vscode-cpptools/issues/103#issuecomment-1151217772

Revision history for this message
michael (reeves-87) wrote :

Please don't push arbitrary unstable builds into your "stable" update stream as if they were normal updates. I will no longer use your defective gdb packaging given this information.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1971474 tracks the update of gdb to the 12.1 final release. You could try installing gdb from jammy-proposed and see if that helps?

tags: added: foundations-todo
Changed in gdb (Ubuntu):
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.