Package: coreutils
Version: 5.2.1-2
Severity: normal
File: /bin/cat

Hi,

I know this is a misusage of cat, but cat shouldn't die with SIGSEG

$ cat audio.wav > /dev/dsp 
Segmentation fault
$ ltrace cat audio.wav > /dev/dsp 
__libc_start_main(2, 0x7ffffa34, 0x7ffffa40, 0x7ffffab4, 0x3000bee4 <unfinished 
...>
setlocale(6, "")                                 = "C"
bindtextdomain("coreutils", "/usr/share/locale") = "/usr/share/locale"
textdomain("coreutils")                          = "coreutils"
__cxa_atexit(0x10001270, 0, 0, 0xffedbf0, 135048) = 0
getopt_long(2, 0x7ffffa34, "benrstuvAET", 0x100035ac, NULL) = -1
__fxstat64(3, 1, 0x7ffff8f0)                     = 0
open64("audio.wav", 0, 05000001110)              = 3
__fxstat64(3, 3, 0x7ffff8f0)                     = 0
malloc(4096)                                     = 0x10015080
read(3, ",\003", 671089218)                      = 4096
write(1, "RIFF\364\036l\002WAVEfmt \020", 4096 <unfinished ...>
+++ killed by SIGSEGV +++

Jörg.


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.9
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages coreutils depends on:
ii  libacl1                     2.2.29-1     Access control list shared library
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to