#1050067 dwz masks errors in writing output

Package:
dwz
Source:
dwz
Description:
DWARF compression tool
Submitter:
Nicholas Guriev
Date:
2023-08-19 08:00:04 UTC
Severity:
normal
#1050067#5
Date:
2023-08-19 07:48:50 UTC
From:
To:
Dear Maintainer,

dwz(1) does not report actual errors in writing output binary.

For example,

$ gcc -g -x c - <<< 'int main(){return 0;}'
$ dwz -o /dev/full
dwz: a.out: elf_update failed

/dev/full is a special device that always produces ENOSPC on writing but dwz(1)
does not reveal the error unambiguously. I assume the tool should prints the
error messages as reported by the elf_errmsg() and the perror() functions.

https://sourceware.org/git/?p=elfutils.git&f=libelf/elf_error.c&hb=elfutils-0.189#l340
https://en.cppreference.com/w/c/io/perror

And please forward this bug to upstream authors if appropriate. Their bug
tracker requires an account but registration is closed.