Bug#493940: conspy: Cannot write to virtual console anymore

2008-10-08 Thread Russell Stuart
On Wed, 2008-08-06 at 13:43 +1000, Jason White wrote:
 On Wed, Aug 06, 2008 at 12:57:21PM +1000, Russell Stuart wrote:
  I tried conspy on linux-2.6-2.6.25 (the current kernel for
  Lenny) and it worked.  Trying it on 2.6.26 is going to take
  some time.  In the mean time could you post an strace of a 
  run of conspy showing the problem please.
 
 It's attached. I hope this helps.

This needs to be written down somewhere.  I am not sure this is the
right place, but it is the only place I can think of.

I suspect this was a compiler bug in the compilers used by Debian's
build machines.  Disassembling the conspy-1.4 binary in the Debian
archives, for these lines of code:

  tty_result = ioctl(tty_handle, KDGKBMODE, keyboard_mode);
  if (tty_result == -1)
;
  else if (keyboard_mode != K_XLATE  keyboard_mode != K_UNICODE)

this assembler is generated:

  402009: 48 8d 94 24 20 87 00  lea0x8720(%rsp),%rdx
  402010: 00 
  402011: 31 c0 xor%eax,%eax
  402013: be 44 4b 00 00mov$0x4b44,%esi
  402018: e8 f3 f3 ff ffcallq  401410 [EMAIL PROTECTED]
  40201d: 83 f8 ff  cmp$0x,%eax
  402020: 89 c3 mov%eax,%ebx
  402022: 44 89 64 24 28mov%r12d,0x28(%rsp)
  402027: 0f 84 be 03 00 00 je 4023eb [EMAIL PROTECTED]
  40202d: 48 8b 84 24 20 87 00  mov0x8720(%rsp),%rax
  402034: 00 
  402035: 48 83 f8 01   cmp$0x1,%rax
  402039: 0f 95 c2  setne  %dl
  40203c: 48 83 f8 03   cmp$0x3,%rax
  402040: 0f 95 c0  setne  %al
  402043: 84 d0 test   %dl,%al

Note that at address 402039, %dl is set conditionally.  Also notice that
neither %dl, nor any alias was initialised prior.  It could of been the
value set at address 402009, but more likely it was whatever rubbish the
OS call at 402018 left in it.  This would of course be OS version
dependant, which is what we see.  (The program worked with 2.6.25, but
not 2.6.26).

The lenny compiler I am using isn't broken in the same way, so it always
produces a conspy binary that works. I am hoping the Debian builders
have been updated, and so just an upload of identical code will fix the
problem by forcing a recompile.  Not that the version I am uploading is
identical, but I haven't made any changes to fix this particular problem
either.

The upload will happen with 24 hours.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#493940: conspy: Cannot write to virtual console anymore

2008-08-06 Thread Jason White
On Wed, Aug 06, 2008 at 12:57:21PM +1000, Russell Stuart wrote:
 I tried conspy on linux-2.6-2.6.25 (the current kernel for
 Lenny) and it worked.  Trying it on 2.6.26 is going to take
 some time.  In the mean time could you post an strace of a 
 run of conspy showing the problem please.

It's attached. I hope this helps.


execve(/usr/bin/conspy, [conspy, 2], [/* 18 vars */]) = 0
brk(0)  = 0x14d
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7fd02c657000
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7fd02c655000
access(/etc/ld.so.preload, R_OK)  = -1 ENOENT (No such file or directory)
open(/etc/ld.so.cache, O_RDONLY)  = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=83896, ...}) = 0
mmap(NULL, 83896, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd02c64
close(3)= 0
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
open(/lib/libncurses.so.5, O_RDONLY)  = 3
read(3, \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0`%\1\0\0\0\0\0@..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=255904, ...}) = 0
mmap(NULL, 2352800, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7fd02c1fe000
mprotect(0x7fd02c238000, 2097152, PROT_NONE) = 0
mmap(0x7fd02c438000, 20480, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3a000) = 0x7fd02c438000
close(3)= 0
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
open(/lib/libc.so.6, O_RDONLY)= 3
read(3, 
\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0\300\342\1\0\0\0\0\0@..., 832) 
= 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1375536, ...}) = 0
mmap(NULL, 3482232, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7fd02beab000
mprotect(0x7fd02bff5000, 2093056, PROT_NONE) = 0
mmap(0x7fd02c1f4000, 20480, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x149000) = 0x7fd02c1f4000
mmap(0x7fd02c1f9000, 17016, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd02c1f9000
close(3)= 0
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
open(/lib/libdl.so.2, O_RDONLY)   = 3
read(3, \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0\20\16\0\0\0\0\0\0@..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14616, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7fd02c63f000
mmap(NULL, 2109728, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7fd02bca7000
mprotect(0x7fd02bca9000, 2097152, PROT_NONE) = 0
mmap(0x7fd02bea9000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fd02bea9000
close(3)= 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7fd02c63e000
arch_prctl(ARCH_SET_FS, 0x7fd02c63e6e0) = 0
mprotect(0x7fd02c1f4000, 12288, PROT_READ) = 0
munmap(0x7fd02c64, 83896)   = 0
open(/dev/vcsa2, O_RDONLY)= 3
open(/dev/tty2, O_WRONLY) = 4
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
rt_sigaction(SIGHUP, {0x401840, [HUP], SA_RESTORER|SA_RESTART, 0x7fd02bedcf80}, 
{SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x401840, [INT], SA_RESTORER|SA_RESTART, 0x7fd02bedcf80}, 
{SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x401840, [TERM], SA_RESTORER|SA_RESTART, 
0x7fd02bedcf80}, {SIG_DFL}, 8) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
brk(0)  = 0x14d
brk(0x14f1000)  = 0x14f1000
stat(/root/.terminfo, 0x7fff3464d920) = -1 ENOENT (No such file or directory)
stat(/etc/terminfo, {st_mode=S_IFDIR|0755, st_size=19, ...}) = 0
access(/etc/terminfo/l/linux, R_OK)   = -1 ENOENT (No such file or directory)
stat(/lib/terminfo, {st_mode=S_IFDIR|0755, st_size=110, ...}) = 0
access(/lib/terminfo/l/linux, R_OK)   = 0
open(/lib/terminfo/l/linux, O_RDONLY) = 5
read(5, \32\1\24\0\35\0\20\0}\0010\3linux|linux console\0\0..., 4097) = 1740
close(5)= 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=25, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=25, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, 

Bug#493940: conspy: Cannot write to virtual console anymore

2008-08-06 Thread Russell Stuart
I tried conspy on linux-2.6-2.6.25 (the current kernel for
Lenny) and it worked.  Trying it on 2.6.26 is going to take
some time.  In the mean time could you post an strace of a 
run of conspy showing the problem please.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#493940: conspy: Cannot write to virtual console anymore

2008-08-06 Thread Jason White
Package: conspy
Version: 1.4-1
Severity: important

Something has changed either with Conspy itself or the underlying system over
the last few months that has led to the following bug. I have reproduced this
on two different x86_64 machines.

When I run conspy, I can read the text displayed on the virtual console, but
characters that I type are not written to the console. Typing esc esc
esc rapidly exits conspy as documented in conspy(1). Typing other characters
apparently has no effect.

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

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

Versions of packages conspy depends on:
ii  libc6 2.7-13 GNU C Library: Shared libraries
ii  libncurses5   5.6+20080713-1 shared libraries for terminal hand

conspy recommends no packages.

conspy suggests no packages.

-- debconf-show failed



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]