#523 clisp crashes badly if stdin is not readable

segfault
closed-fixed
clisp (525)
5
2009-06-16
2009-06-13
Paul Eggert
No

This problem was originally reported against coreutils (see http://lists.gnu.org/archive/html/bug-coreutils/2009-06/msg00131.html\), but it appears to be a clisp problem, since it can be reproduced without coreutils. Here's how to reproduce the problem, from the command line. This is on Ubuntu 9.04, which ships with clisp 2.44.1.

$ clisp -q -norc -c ordrulei.lsp -o ordrulei.fas 0>/dev/null

*** - Invalid direction :INPUT for accessing #P"/dev/fd/0"

*** - UNIX error 9 (EBADF): Bad file number
The following restarts are available:
ABORT :R1 Abort debug loop

*** - UNIX error 9 (EBADF): Bad file number
The following restarts are available:
ABORT :R1 Abort debug loop
ABORT :R2 Abort debug loop

*** - UNIX error 9 (EBADF): Bad file number
The following restarts are available:
ABORT :R1 Abort debug loop
ABORT :R2 Abort debug loop
ABORT :R3 Abort debug loop

*** - UNIX error 9 (EBADF): Bad file number
The following restarts are available:
ABORT :R1 Abort debug loop
ABORT :R2 Abort debug loop
ABORT :R3 Abort debug loop
ABORT :R4 Abort debug loop

*** - UNIX error 9 (EBADF): Bad file number
The following restarts are available:
ABORT :R1 Abort debug loop
ABORT :R2 Abort debug loop
ABORT :R3 Abort debug loop
ABORT :R4 Abort debug loop
ABORT :R5 Abort debug loop

Discussion

  • Paul Eggert

    Paul Eggert - 2009-06-13
     
  • Sam Steingold

    Sam Steingold - 2009-06-16

    thank you for your bug report.
    the bug has been fixed in the CVS tree.
    you can either wait for the next release (recommended)
    or check out the current CVS tree (see http://clisp.cons.org\)
    and build CLISP from the sources (be advised that between
    releases the CVS tree is very unstable and may not even build
    on your platform).

     
  • Sam Steingold

    Sam Steingold - 2009-06-16
    • assigned_to: haible --> sds
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks