Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#639 mt: module/readline crash

segfault
open
5
2012-04-23
2012-04-23
Sam Steingold
No

built with --with-debug --with-threads=POSIX_THREADS

non-MT clisp:

$ ./clisp -q -norc ../../bugs/readline-mt.lisp
STACK size: 98222 [0x7f50b13ebe00 0x7f50b132c090]
test
es
2
$

MT clisp:

$ ./clisp -q -norc ../../bugs/readline-mt.lisp
STACK size: 98222 [0x7f6884f52e00 0x7f6884e93090]
test
Segmentation fault
$

actually
$ make base-mod-check
fails (the test case is extracted from the readline module test file)

GNU CLISP 2.49+ (2010-07-17) (built 3544186308) (memory 3544188757)
Software: GNU C 4.6.1
gcc -W -Wswitch -Wcomment -Wpointer-arith -Wreturn-type -Wmissing-declarations -Wimplicit -Wno-sign-compare -Wno-format-nonliteral -falign-functions=4 -pthread -g -O0 -DDEBUG_OS_ERROR -DDEBUG_SPVW -DDEBUG_BYTECODE -DSAFETY=3 -DENABLE_UNICODE -DMULTITHREAD -DPOSIX_THREADS -DDYNAMIC_FFI -DDYNAMIC_MODULES libgnu.a -lreadline -lncurses -ldl -lavcall -lcallback -lsigsegv
SAFETY=3 TYPECODES WIDE_HARD SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY
libsigsegv 2.9
libreadline 6.2
libffcall 1.11
Features:
(READLINE REGEXP WILDCARD SYSCALLS I18N LOOP COMPILER CLOS MOP CLISP ANSI-CL COMMON-LISP LISP=CL INTERPRETER LOGICAL-PATHNAMES MT
SOCKETS GENERIC-STREAMS SCREEN FFI GETTEXT UNICODE BASE-CHAR=CHARACTER WORD-SIZE=64 PC386 UNIX)
C Modules: (clisp i18n syscalls regexp readline)
Installation directory: /home/sds/src/clisp/current/build-mt-g/
User language: ENGLISH
Machine: X86_64 (X86_64) t520sds [127.0.1.1]

Discussion

  • Sam Steingold
    Sam Steingold
    2012-04-23

    the test file

     
    Attachments