Your message dated Thu, 26 Jan 2017 07:18:55 +0000
with message-id <e1cwekd-0006wo...@fasolo.debian.org>
and subject line Bug#816313: fixed in dash 0.5.8-2.4
has caused the Debian Bug report #816313,
regarding dash: executes binary data as a shell script in case of ENOEXEC (Exec 
format error)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
816313: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816313
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: dash
Version: 0.5.8-2.1
Severity: grave
Justification: causes non-serious data loss

When executing a command that yields an "Exec format error", dash
tries to reexecute the command as a shell script. This gives completely
erratic behavior, with random files created, in particular breaking
Subversion. Data loss may be possible since random files are created.

For instance:

$ file tadd.exe
tadd.exe: PE32 executable (console) Intel 80386, for MS Windows
$ /bin/dash -c tadd.exe
./tadd.exe: 1: ./tadd.exe: MZ��¸@€º´: not found
./tadd.exe: 2: ./tadd.exe: : not found
./tadd.exe: 1: ./tadd.exe: @.bss €: not found
./tadd.exe: 1: ./tadd.exe: .textd*,: not found
./tadd.exe: 3: ./tadd.exe: JPL2@�.idata: not found
./tadd.exe: 3: ./tadd.exe: –u
                             : not found
./tadd.exe: 4: ./tadd.exe: ~@0�.CRT4�ˆ@0�.tls: not found
./tadd.exe: 5: ./tadd.exe: @B/81P: not found
./tadd.exe: 13: ./tadd.exe: Syntax error: Missing '}'

and the following file has been created:

-rw-r--r-- 1      0 2016-02-29 20:06:23 \220\324V\366

A strace output shows:

16487 execve("./tadd.exe", ["tadd.exe"], [/* 109 vars */]) = -1 ENOEXEC (Exec 
format error)
16487 execve("/bin/sh", ["/bin/sh", "./tadd.exe"], [/* 109 vars */]) = 0

With bash, I just get:

$ bash -c ./tadd.exe
bash: ./tadd.exe: cannot execute binary file: Exec format error

With ksh93, I just get:

$ ksh93 -c ./tadd.exe
ksh93: ./tadd.exe: cannot execute [Exec format error]

With mksh, I just get:

$ mksh -c ./tadd.exe
mksh: ./tadd.exe: not executable: magic 4D5A

With zsh, I just get:

$ zsh -c ./tadd.exe
zsh:1: exec format error: ./tadd.exe

Only dash has some nasty behavior!

Note: I got this problem after cross-compiling for Windows and running
"make check" but forgetting to add "LOG_COMPILER=wine".

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.4.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dash depends on:
ii  debianutils  4.7
ii  dpkg         1.18.4
ii  libc6        2.21-9

dash recommends no packages.

dash suggests no packages.

-- debconf information:
* dash/sh: true

--- End Message ---
--- Begin Message ---
Source: dash
Source-Version: 0.5.8-2.4

We believe that the bug you reported is fixed in the latest version of
dash, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 816...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adam Borowski <kilob...@angband.pl> (supplier of updated dash package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 24 Jan 2017 06:16:56 +0100
Source: dash
Binary: dash ash
Architecture: source
Version: 0.5.8-2.4
Distribution: unstable
Urgency: medium
Maintainer: Gerrit Pape <p...@smarden.org>
Changed-By: Adam Borowski <kilob...@angband.pl>
Description:
 ash        - compatibility package for dash
 dash       - POSIX-compliant shell
Closes: 816295 816313 832173
Changes:
 dash (0.5.8-2.4) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Don't execute binary files as scripts. (Closes: #816313)
   * printf '\e' (Closes: #816295)
   * Fix bad permissions on dash.md5sums (Closes: #832173)
Checksums-Sha1:
 b7056c03780023724d5b30fa8cf33ea5dce84c08 1461 dash_0.5.8-2.4.dsc
 d0301097b1302f8d6297812eec3c763ba170a40a 44058 dash_0.5.8-2.4.diff.gz
Checksums-Sha256:
 c83f68c3727e9fd3691117d1f67a2bd049ae2411d2137d50ea6d36122cec6482 1461 
dash_0.5.8-2.4.dsc
 230717c04af659a6a09b2c39158d9167fdd3392a6716c0ff36fe40dff1ca8b9d 44058 
dash_0.5.8-2.4.diff.gz
Files:
 c64d2752940d70b182ab1879cd6f8061 1461 shells optional dash_0.5.8-2.4.dsc
 251946e14b6ce6cdc59995c5198c4377 44058 shells optional dash_0.5.8-2.4.diff.gz

-----BEGIN PGP SIGNATURE-----

iQFIBAEBCAAyFiEE/Zzi2Nd1S3irJ5u9LDtDb+rGgQEFAliG9I8UHGtpbG9ieXRl
QGFuZ2JhbmQucGwACgkQLDtDb+rGgQEX2Qf+IRhGA+Ztnfr2zXSUaRd27rqhklOf
0rCftx1xjgX7xeD/euCfSGk/FzoyXg238Ql/gF6Vt/F6kj0EZKiipzhc7qluOM/W
UAaeFcLmOLWrqrB4wlG1d5v4ReoQt8RuK7EgbYH9/jIwtdDO4j0KKmIzUIOImQKr
4PnyMfakafrtdKEBJAeLFbNcKkQkxnIKdG3uarI3fcATpjPuqEDv4gJEe51h7zNc
qOyWB4BbrG0pkfBf0yE0V5MYFdlvuosNkgD3YYsgLKcXeo2t3SNCr02x3tNx6I7A
SM32lDvap7mGu5kwuLYBoPw1BwWVC3QdTimGrR6UCXde3B4NpoyNZBzVpA==
=mdaU
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to