Package: netcat-traditional
Version: 1.10-40
Severity: normal

compare the following responses to a system error:

0 dkg@alice:~$ nc.openbsd 'no-such-host' 22 >/dev/null
nc.openbsd: getaddrinfo: System error
1 dkg@alice:~$ 

0 dkg@alice:~$ nc.traditional 'no-such-host' 22 >/dev/null
no-such-host: forward host lookup failed: fØI  : Connection timed out
^[[?1;2c1 dkg@alice:~$ 1;2c

note the weird characters and the garbage on the terminal at the
subsequent shell prompt.

using strace, i can see that netcat-traditional is doing something
deeply weird and confused:

   strace -o tmp/nc.traditional.strace -f -s 200 nc.traditional 'no-such-host' 
22 >/dev/null 2>/dev/null

produces the following sequence of writes to stderr:

18362 write(2, "no-such-host: forward host lookup failed: ", 42) = 42
18362 write(2, "f\203\5\330I ", 6)      = 6
18362 write(2, " : Connection timed out\n", 24) = 24
18362 close(4294967295)                 = -1 EBADF (Bad file descriptor)
18362 exit_group(1)                     = ?

and why is it trying to close FD 0xffffffff ?

sorry i haven't had a chance to debug this further, but i thought it
worth reporting even if i didn't have the answer.

      --dkg

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.8-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages netcat-traditional depends on:
ii  libc6  2.17-3

netcat-traditional recommends no packages.

netcat-traditional suggests no packages.

-- debconf-show failed


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to