Your message dated Thu, 17 Jan 2013 03:26:27 +0100
with message-id <[email protected]>
and subject line Bug#686408 unreproducible (ksh: trap: resetting an ignored 
signal to default gives unpredictable result)
has caused the Debian Bug report #686408,
regarding ksh: trap: resetting an ignored signal to default gives unpredictable 
result
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 [email protected]
immediately.)


-- 
686408: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=686408
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ksh
Version: 93u+20120628-1
Severity: normal

Dear Maintainer,

With this script:

  $ cat <<EOF >sigtest.sh
  #!/bin/ksh
  function f {
  trap - INT
  sleep 2
  }
  trap '' INT
  f
  trap -p INT
  sleep 2
  EOF

the `trap -p INT' statement gives a strange result with non-printable chars, 
whether the f Korn-style function was interrupted or not by SIGINT.  It shows 
that the handler of SIGINT in the shell was modified by f; according to the 
manpage, that should not happen.  If the script is interrupted after f has 
returned, I get the error message:

  ^C./sig_test.sh[9]: <weird_data>: not found [No such file or directory]

The strange result can be for example ` új81'.  The fact that the script fails 
to execute any handler is certainly a bug.

Something not too surprising would be to have `trap - INT' inside a Korn 
function make the trap exit the function, as if no `trap '' INT' had been given 
before the call to f, which is what happens when the signal is not ignored.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (800, 'unstable'), (500, 'stable-updates'), (500, 'testing'), 
(500, 'stable'), (10, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 2.6.32-5-core2 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ksh depends on:
ii  libc6  2.13-35

ksh recommends no packages.

ksh suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
I cannot reproduce this bug anymore, even with the same version of ksh.

--- End Message ---

Reply via email to