#592 (linux:fork) / (linux:waitpid) yields strange info

lisp error
closed-fixed
clisp (525)
5
2011-03-23
2011-03-19
Bill Evans
No

=== platform:
Linux tiger 2.6.26-2-686 #1 SMP Sat Dec 26 09:01:51 UTC 2009 i686 GNU/Linux
=== compiler version:
gcc (Debian 4.3.2-1.1) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

=== glibc version:
/lib/libc-2.7.so
=== clisp version:
GNU CLISP 2.49 (2010-07-07) (built 3509483637) (memory 3509483931)
Software: GNU C 4.3.2
gcc -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -fexpensive-optimizations -falign-functions=4 -DENABLE_UNICODE -DDYNAMIC_FFI -DDYNAMIC_MODULES -I. -lreadline -lncurses -ldl -lavcall -lcallback -lsigsegv libgnu_cl.a
SAFETY=0 HEAPCODES LINUX_NOEXEC_HEAPCODES GENERATIONAL_GC SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY
libsigsegv 2.5
libreadline 5.2
Features:
(READLINE REGEXP SYSCALLS I18N LOOP COMPILER CLOS MOP CLISP ANSI-CL COMMON-LISP LISP=CL INTERPRETER SOCKETS GENERIC-STREAMS
LOGICAL-PATHNAMES SCREEN FFI GETTEXT UNICODE BASE-CHAR=CHARACTER PC386 UNIX)
C Modules: (clisp i18n syscalls regexp readline)
Installation directory: /u/snave/bug2/home/lib/clisp-2.49/
User language: ENGLISH
Machine: I686 (I686) tiger.x441afea5.org [10.0.0.1]

I downloaded the currently released version of clisp today (18 Mar 2011) from http://ftp.gnu.org/pub/gnu/clisp/latest.

I built it the normal way, as shown in the attached script. That script downloads the source, builds and installs clisp, copies "full" so it sits next to "base" (I don't understand why I had to do that), and runs the program. It uses strace to generate a file, strace.out, which you can use to see that the actual waitpid() is returning strange data.

Discussion

  • Bill Evans

    Bill Evans - 2011-03-19
     
  • Sam Steingold

    Sam Steingold - 2011-03-23

    linux:waitpid is useless because clisp ignores SIGCLD.
    use os:wait http://clisp.org/impnotes/syscalls.html#wait
    instead - it enables SIGCLD when calling wait4().
    I will disable linux:wait.

     
  • Sam Steingold

    Sam Steingold - 2011-03-23
    • assigned_to: haible --> sds
    • status: open --> closed-fixed
     
  • Sam Steingold

    Sam Steingold - 2011-03-23

    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).

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks