[SRU] valgrind fails to use debug symbols from glib/gtk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Valgrind |
Fix Released
|
Medium
|
|||
valgrind (Debian) |
Fix Released
|
Unknown
|
|||
valgrind (Ubuntu) |
Fix Released
|
High
|
Balint Reczey | ||
Bionic |
Triaged
|
Low
|
Unassigned | ||
Disco |
Won't Fix
|
Low
|
Unassigned | ||
Eoan |
Fix Released
|
High
|
Balint Reczey | ||
Focal |
Fix Released
|
High
|
Balint Reczey |
Bug Description
[Impact]
* With dwz the .gnu_debuglink section may appear duplicated in the debug file referenced originally in the .gnu_debuglink section. In that case Valgrind fails to load the debug symbols.
[Test Case]
* In Ubuntu releases earlier than 19.10 use gio from a package rebuilt with dwz.
* Install debug symbols for gio following the guide at https:/
* Observe no relevant error when running gio with valgrind:
$ valgrind /usr/bin/gio ~
[Regression Potential]
* The fix is very simple, just ignoring the second .gnu_debuglink found. There are no likely regressions.
[Original Bug Text]
The debug symbols from libglib2.0-0-dbgsym and libgtk-3-0-dbgsym don't get properly picked up by valgrind in eoan for some reason. The symbols correctly work under gdb.
There is an warning printed from valgrind
'debuginfo section duplicates a section in the main ELF file'
Laney tried to rebuild without dh_dwz and it makes the warning go away and the symbol work.
Downgrading valgrind to the disco version doesn't fix the issue.
tags: | added: rls-ee-incoming rls-ff-incoming |
Changed in valgrind (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | removed: rls-ff-incoming |
Changed in valgrind: | |
status: | Unknown → Confirmed |
tags: | added: id-5db1d566ba640b107bc522cd |
tags: | removed: rls-ee-incoming |
Changed in valgrind (Ubuntu Eoan): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in valgrind (Ubuntu Bionic): | |
status: | New → Triaged |
Changed in valgrind (Ubuntu Disco): | |
status: | New → Triaged |
Changed in valgrind: | |
status: | Confirmed → Unknown |
Changed in valgrind: | |
importance: | Unknown → Medium |
status: | Unknown → New |
Changed in valgrind (Debian): | |
status: | Unknown → Confirmed |
tags: |
added: verification-done verification-done-eoan removed: verification-needed verification-needed-eoan |
Changed in valgrind (Debian): | |
status: | Confirmed → Fix Released |
Changed in valgrind (Ubuntu Disco): | |
status: | Triaged → Won't Fix |
Changed in valgrind: | |
status: | New → Fix Released |
Created attachment 114009
Callgrind.out file is also attached
==967== Callgrind, a call-graph generating cache profiler
==967== Copyright (C) 2002-2015, and GNU GPL'd, by Josef Weidendorfer et al.
==967== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==967== Command: /usr/share/ WashingMachine/ WashingMachineA pp --platform eglfs
==967==
==967== For interactive control, run 'callgrind_control -h'.
-967- WARNING: Serious error when reading debug info
-967- When reading debug info from /lib/ld-2.24.so:
-967- debuginfo section duplicates a section in the main ELF file
-967- WARNING: Serious error when reading debug info
-967- When reading debug info from /lib/libgcc_s.so.1:
-967- debuginfo section duplicates a section in the main ELF file
-967- WARNING: Serious error when reading debug info
-967- When reading debug info from /lib/libc-2.24.so:
-967- debuginfo section duplicates a section in the main ELF file
-967- WARNING: Serious error when reading debug info
-967- When reading debug info from /lib/libpthread -2.24.so:
-967- debuginfo section duplicates a section in the main ELF file
-967- WARNING: Serious error when reading debug info
-967- When reading debug info from /lib/libm-2.24.so:
-967- debuginfo section duplicates a section in the main ELF file
-967- WARNING: Serious error when reading debug info
-967- When reading debug info from /lib/libdl-2.24.so:
-967- debuginfo section duplicates a section in the main ELF file
-967- WARNING: Serious error when reading debug info
-967- When reading debug info from /lib/librt-2.24.so:
-967- debuginfo section duplicates a section in the main ELF file
^C==967==
==967== Process terminating with default action of signal 2 (SIGINT)
==967== at 0x4019678: ??? (in /lib/ld-2.24.so)
==967==
==967== Events : Ir
==967== Collected : 12295033
==967==
==967== I refs: 12,295,033
We are trying it on a Linux Arm platform , Imx6 Boundary devices Boards.
Tries it with 3.11 and also 3.13 version. Same warnings are thrown