Package: dash
Version: 0.5.10.2-1
Severity: important
Tags: patch upstream

Dear Maintainer,

A path expansion issue was firstly found while installing
python3-docutils/sid on armel/armhf/mips/mipsel, and has been reported
as bug 916225. Dash failed to expand the line for exe in
/usr/share/docutils/scripts/python3/* in python3-docutils' postinst
script, and failed the installation. With some more investigation into
this issue, I got following trace messages for dash:

    Tracing started.
    waitforjob(%0) called
    pid 15608, evaltree(0xfffef918: 0, 1) called
    evalcommand(0xfffef918, 1) called
    expandmeta(0xfffef948, 3) called
    expandmeta(0xfffef968, 3) called
    expandmeta str: /usr/share/vim/*
    expmeta(/usr/share/vim/*, 16, 0) called
    expmeta metaflag 1
    expmeta opendir(/usr/share/vim/)
    expmeta begin loop
    expmeta break loop: readdir error, errno 75
    expmeta end loop
    evalcommand arg: ls
    evalcommand arg: /usr/share/vim/*
    searchexec "ls" returns "/usr/bin/ls"

/usr/share/vim/* here shows such expansion failure doesn't only occur to
python3-docutils' postinst script, but also many other places. The errno
75 (EOVERFLOW) shows readdir() call may fail when one of the fields to
return cannot be represented correctly, so large file support should be
enabled whenever available.

A merge request has been sent to
https://salsa.debian.org/debian/dash/merge_requests/2 .

See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916225

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

Kernel: Linux 4.18.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=zh_TW.UTF-8, LC_CTYPE=zh_TW.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:zh_TW (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dash depends on:
ii  debianutils  4.8.6
ii  dpkg         1.19.2
ii  libc6        2.28-2

dash recommends no packages.

dash suggests no packages.

-- debconf information excluded

Reply via email to