[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1050067: dwz masks errors in writing output



Package: dwz
Version: 0.15-1
Severity: minor

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.


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-24-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages dwz depends on:
ii  libc6    2.37-7
ii  libelf1  0.189-4

dwz recommends no packages.

dwz suggests no packages.

-- no debconf information

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: