Bug 1722178

Summary: gdb 8.3.50.20190610 prints "Missing separate debuginfos" on stderr, not stdout
Product: [Fedora] Fedora Reporter: Petr Viktorin (pviktori) <pviktori>
Component: gdbAssignee: Sergio Durigan Junior <sergiodj>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dsmith, jan.kratochvil, keiths, kevinb, pmuldoon, sergiodj
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gdb-8.3.50.20190610-17.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-21 19:26:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1721483    

Description Petr Viktorin (pviktori) 2019-06-19 15:30:15 UTC
In a recent gdb update,  "Missing separate debuginfos"  messages started appearing on stderr, rather than on stdout as in previous versions.

Fedora 30:

$ rpm -q gdb
gdb-8.3-3.fc30.x86_64
$ echo 'run' | gdb --args python3 > /dev/null
$

Fedora Rawhide:

$ rpm -q gdb
gdb-8.3.50.20190610-16.fc31.x86_64
$ echo 'run' | gdb --args python3 > /dev/null

warning: Unable to open "librpm.so.8" (librpm.so.8: cannot open shared object file: No such file or directory), missing debuginfos notifications will not be displayed
Missing separate debuginfo for /usr/bin/python3.7
Try: dnf --enablerepo='*debug*' install /usr/lib/debug/.build-id/66/16[…].debug
Missing separate debuginfo for /lib64/ld-linux-x86-64.so.2
Try: dnf --enablerepo='*debug*' install /usr/lib/debug/.build-id/53/b6[…].debug
[…]



I could not find this mentioned in any changelog, so I'd like to ask:

- Is this change intended/reasonable? (If so, I'll need to update Python's tests, which verify Python-GDB integration by examining output)
- Is there a way to point stdlog back at stdout?

Comment 1 Sergio Durigan Junior 2019-06-21 19:26:43 UTC
GDB needed to be rebuilt to use the new librpm.so.9.  gdb-8.3.50.20190610-17.fc31 should fix this problem.  Please reopen the bug if you still see the issue.  Thanks.