Re: 2.2.15pre19 and screen

From: Philippe Troin (phil@fifi.org)
Date: Thu Apr 20 2000 - 17:16:43 EDT

  • Next message: Mario Vanoni: "[PATCH] tty proc bugfix [was RE: Linux 2.2.15pre19]"

    Manfred Spraul <manfreds@colorfullife.com> writes:

    > Petri Kaukasoina wrote:
    > >
    > > 2.2.15pre19 and 2.2.16pre1 have problems with "screen" (the text window
    > > multiplexer program). Under screen, the output of some programs (e.g. less)
    > > only show about 1024 characters at a time and then stop. When I type some
    > > key, it shows the next 1024 chars of the output and so on. 2.2.15pre18 and
    > > earlier are ok.
    > >
    > > screen 3.07.04 or 3.07.06, libc-5.4.46, either ncurses-4.2 or curses-1.0.0
    > > and termcap-2.0.8.
    > >
    > could you strace screen/less?

    I happen to get the same problem here !

    Here is the strace output:

    execve("/usr/bin/less", ["less", "0419173906.001", "0419175111.log", "0419183204.001", "0419183204.002", "0419183506.log", "0420115145.log", "Foo", "Foo.001", "Readme", "fax00022.tif"], [/* 30 vars */]) = 0
    brk(0) = 0x805c5a0
    open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY) = 4
    fstat(4, {st_mode=S_IFREG|0644, st_size=15787, ...}) = 0
    mmap(0, 15787, PROT_READ, MAP_PRIVATE, 4, 0) = 0x4000c000
    close(4) = 0
    open("/lib/libncurses.so.4", O_RDONLY) = 4
    mmap(0, 4096, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40010000
    munmap(0x40010000, 4096) = 0
    mmap(0, 258652, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40010000
    mprotect(0x40044000, 45660, PROT_NONE) = 0
    mmap(0x40044000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x33000) = 0x40044000
    mmap(0x4004c000, 12892, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4004c000
    close(4) = 0
    open("/lib/libc.so.6", O_RDONLY) = 4
    mmap(0, 4096, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40050000
    munmap(0x40050000, 4096) = 0
    mmap(0, 673220, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40050000
    mprotect(0x400e2000, 75204, PROT_NONE) = 0
    mmap(0x400e2000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x91000) = 0x400e2000
    mmap(0x400e9000, 46532, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400e9000
    close(4) = 0
    munmap(0x4000c000, 15787) = 0
    personality(PER_LINUX) = 0
    getpid() = 13513
    ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
    brk(0) = 0x805c5a0
    brk(0x805cd28) = 0x805cd28
    brk(0x805d000) = 0x805d000
    getuid() = 1000
    setfsuid(1000) = 1000
    getgid() = 1000
    setfsgid(1000) = 1000
    open("/home/phil/.terminfo/s/screen", O_RDONLY) = -1 ENOENT (No such file or directory)
    geteuid() = 1000
    setfsuid(1000) = 1000
    getegid() = 1000
    setfsgid(1000) = 1000
    getuid() = 1000
    setfsuid(1000) = 1000
    getgid() = 1000
    setfsgid(1000) = 1000
    open("/etc/terminfo/s/screen", O_RDONLY) = 4
    geteuid() = 1000
    setfsuid(1000) = 1000
    getegid() = 1000
    setfsgid(1000) = 1000
    read(4, "\32\1*\0\17\0\17\0i\1\375\1", 12) = 12
    read(4, "screen|VT 100/ANSI X3.64 virtual"..., 42) = 42
    read(4, "\0\1\0\0\1\0\0\0\1\0\0\0\0\1\1", 15) = 15
    read(4, "\0", 1) = 1
    read(4, "P\0\10\0\30\0\377\377\377\377\377"..., 30) = 30
    read(4, "\0\0\4\0\6\0\10\0\31\0\36\0%\0)\0"..., 722) = 722
    read(4, "\33[Z\0\7\0\r\0\33[%i%p1%d;%p2%d"..., 509) = 509
    close(4) = 0
    ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
    ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
    ioctl(1, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=484, ws_ypixel=316}) = 0
    ioctl(2, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=484, ws_ypixel=316}) = 0
    brk(0x805e000) = 0x805e000
    open("/home/phil/.less", O_RDONLY) = -1 ENOENT (No such file or directory)
    ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
    ioctl(1, SNDCTL_TMR_STOP, {B38400 opost isig -icanon -echo ...}) = 0
    open("/dev/tty", O_RDONLY) = 4
    sigaction(SIGINT, {0x8055200, [], SA_RESTART}, {SIG_DFL}) = 0
    sigaction(SIGTSTP, {0x8055230, [], SA_RESTART}, {SIG_DFL}) = 0
    sigaction(SIGWINCH, {0x8055260, [], SA_RESTART}, {SIG_DFL}) = 0
    stat("0419173906.001", {st_mode=S_IFREG|0664, st_size=26276, ...}) = 0
    stat("0419173906.001", {st_mode=S_IFREG|0664, st_size=26276, ...}) = 0
    open("0419173906.001", O_RDONLY) = 5
    lseek(5, 1, SEEK_SET) = 1
    lseek(5, 0, SEEK_SET) = 0
    read(5, "II*\0\10\0\0\0\22\0\376\0\4\0\1\0"..., 64) = 64
    lseek(5, 1, SEEK_SET) = 1
    fstat(5, {st_mode=S_IFREG|0664, st_size=26276, ...}) = 0
    lseek(5, 0, SEEK_SET) = 0
    write(1, "\33[?1h\33=\33[24;1H\33[K", 17) = 17
    read(5, "II*\0\10\0\0\0\22\0\376\0\4\0\1\0"..., 1024) = 1024
    write(1, "II*\33[3m^^@^@^@^R^@<FE>^@^D^@^A"..., 1023) = 1023
    write(1, "<D9>^?\33[23mx\33[3m<E6><E6><E6>"..., 1023) = 1023
    write(1, "<83><EF><BC><95>\33[23m:\33[3m<E"..., 448) = 448
    time([956265183]) = 956265183
    write(1, "\33[24;1H\33[K\33[3m0419173906.0"..., 48) = 48
    read(4,

    ... Locks here until a key is pressed ...

    " ", 1) = 1
    write(1, "\33[24;1H", 7) = 7
    write(1, "\33[24;1H\33[Kp}\33[3m<F7><92><A"..., 1023) = 1023
    write(1, "23mP\33[3m<A3><85>^B<D5><DF>\33["..., 868) = 868
    read(5, "\377\337}\374\213\367\337|(\341G"..., 1024) = 1024
    write(1, "8Q\33[3m<83><E2><BE><FB><EA><EA>"..., 1023

    ... Locks here until a key is pressed ...
    ... etc ...

    Phil.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Thu Apr 20 2000 - 17:28:30 EDT