Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] mesa-nouveau-dri: -dbg package: debug information mismatch, missing details in backtrace
@ 2019-06-30 18:16 voidlinux-github
  2019-07-01  8:20 ` voidlinux-github
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: voidlinux-github @ 2019-06-30 18:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 4693 bytes --]

New issue by ackalker on void-packages repository

https://github.com/void-linux/void-packages/issues/12760
Description: ### System

* xuname:  
  Void 5.1.15_1 x86_64 GenuineIntel uptodate rrrrmdFFFFFFFFF
* package:  
  mesa-nouveau-dri-dbg-19.1.1_1

### Expected behavior

`gdb` should load debug symbols for the right file, i.e. `/usr/lib/debug/vdpau/libvdpau_nouveau.so.1` should match `/usr/lib/vdpau/libvdpau_nouveau.so.1`, etc., backtrace should contain symbols for all loaded libraries, etc.

### Actual behavior

`gdb` gives debug information mismatch warning, backtrace is missing details

### Steps to reproduce the behavior

(trying to debug void-linux/void-packages#12717)

* On a system using `nouveau` X graphics driver and `gdb` installed, run the following in a terminal:
```sh
# xbps-install vdpauinfo{,-dbg} glibc-dbg mesa-nouveau-dri-dbg
```
* Run `vdpauinfo` under GDB

Results on my system:
```sh
$ gdb -q vdpauinfo 
Reading symbols from vdpauinfo...
Reading symbols from /usr/lib/debug//usr/bin/vdpauinfo...
(gdb) set pagination off 
(gdb) run
Starting program: /usr/bin/vdpauinfo 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
display: :0   screen: 0
warning: the debug information found in "/usr/lib/vdpau/libvdpau_r300.so.1.0.0" does not match "/usr/lib/vdpau/libvdpau_nouveau.so.1" (CRC mismatch).

warning: the debug information found in "/usr/lib/vdpau/libvdpau_r300.so.1.0.0" does not match "/usr/lib/vdpau/libvdpau_nouveau.so.1" (CRC mismatch).

[New Thread 0x7fffefbda700 (LWP 11586)]

Thread 1 "vdpauinfo" received signal SIGSEGV, Segmentation fault.
0x00007ffff72b2937 in ?? () from /usr/lib/vdpau/libvdpau_nouveau.so.1
(gdb) bt full
#0  0x00007ffff72b2937 in ?? () from /usr/lib/vdpau/libvdpau_nouveau.so.1
No symbol table info available.
#1  0x00007ffff72c1696 in ?? () from /usr/lib/vdpau/libvdpau_nouveau.so.1
No symbol table info available.
#2  0x00007ffff7288210 in ?? () from /usr/lib/vdpau/libvdpau_nouveau.so.1
No symbol table info available.
#3  0x00007ffff72882bf in ?? () from /usr/lib/vdpau/libvdpau_nouveau.so.1
No symbol table info available.
#4  0x00007ffff72b0deb in ?? () from /usr/lib/vdpau/libvdpau_nouveau.so.1
No symbol table info available.
#5  0x00007ffff72859b7 in ?? () from /usr/lib/vdpau/libvdpau_nouveau.so.1
No symbol table info available.
#6  0x00007ffff72ddceb in ?? () from /usr/lib/vdpau/libvdpau_nouveau.so.1
No symbol table info available.
#7  0x00007ffff72e5dac in ?? () from /usr/lib/vdpau/libvdpau_nouveau.so.1
No symbol table info available.
#8  0x00007ffff70034f3 in ?? () from /usr/lib/vdpau/libvdpau_nouveau.so.1
No symbol table info available.
#9  0x00007ffff6ffcf2a in ?? () from /usr/lib/vdpau/libvdpau_nouveau.so.1
No symbol table info available.
#10 0x00007ffff6fecdcb in vdp_imp_device_create_x11 () from /usr/lib/vdpau/libvdpau_nouveau.so.1
No symbol table info available.
#11 0x00007ffff7e6daf5 in vdp_device_create_x11 () from /usr/lib/libvdpau.so.1
No symbol table info available.
#12 0x00005555555554ad in main (argc=<optimized out>, argv=0x7fffffffe198) at vdpauinfo.cpp:488
        o = {
          display_name = 0x7fffffffeb53 ":0", 
          screen = <optimized out>
        }
        display = 0x55555576ce70
        screen = 0
        device = 1
        get_proc_address = 0x1
        rv = <optimized out>
        impl = <optimized out>
(gdb) 
```

Running `objdump -g` on the debug information file confirms the incorrect link:
```sh
$ objdump -g /usr/lib/debug/usr/lib/vdpau/libvdpau_nouveau.so.1.0.0

/usr/lib/debug/usr/lib/vdpau/libvdpau_nouveau.so.1.0.0:     file format elf64-x86-64

objdump: Warning: could not find separate debug file 'libvdpau_r300.so.1.0.0'
objdump: Warning: tried: /lib/debug/libvdpau_r300.so.1.0.0
objdump: Warning: tried: /usr/lib/debug/usr/libvdpau_r300.so.1.0.0
objdump: Warning: tried: /usr/lib/debug/libvdpau_r300.so.1.0.0
objdump: Warning: tried: /usr/lib/debug/usr/lib/vdpau/.debug/libvdpau_r300.so.1.0.0
objdump: Warning: tried: /usr/lib/debug/usr/lib/vdpau/libvdpau_r300.so.1.0.0
objdump: Warning: tried: .debug/libvdpau_r300.so.1.0.0
objdump: Warning: tried: libvdpau_r300.so.1.0.0

Section '.eh_frame' has an invalid size: 0x8bfb0.
Contents of the .gnu_debuglink section (loaded from /usr/lib/debug/usr/lib/vdpau/libvdpau_nouveau.so.1.0.0):

  Separate debug info file: libvdpau_r300.so.1.0.0
  CRC value: 0x69940ea

```

My guess is that something went wrong during build or packaging. I haven't looked into it, so I don't know if the problem is with the recipe or with `xbps-src` itself.

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

end of thread, other threads:[~2019-12-29 16:29 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-30 18:16 [ISSUE] mesa-nouveau-dri: -dbg package: debug information mismatch, missing details in backtrace voidlinux-github
2019-07-01  8:20 ` voidlinux-github
2019-07-01  8:24 ` voidlinux-github
2019-07-01  8:30 ` voidlinux-github
2019-07-01  8:35 ` voidlinux-github
2019-07-01 16:14 ` voidlinux-github
2019-07-01 16:30 ` voidlinux-github
2019-07-01 16:34 ` voidlinux-github
2019-07-01 16:49 ` voidlinux-github
2019-07-02 11:40 ` voidlinux-github
2019-07-02 11:43 ` voidlinux-github
2019-07-02 11:45 ` voidlinux-github
2019-10-09 20:51 ` voidlinux-github
2019-10-09 20:51 ` voidlinux-github
2019-10-27 10:50 ` voidlinux-github
2019-10-27 10:53 ` voidlinux-github
2019-12-29 16:24 ` voidlinux-github
2019-12-29 16:29 ` [ISSUE] [CLOSED] " voidlinux-github

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 NNTP newsgroup(s).