Runtime crash on simple funcall/apply code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Using latest from git on x86-64.
Given this code:
(defun fixed-point (fun args &key (test 'equal))
(loop
(let ((result (apply fun args)))
(when (funcall test args result)
(return result))
(setf args result))))
(fixed-point 'list (list 1))
I get an immediate crash on calling FIXED-POINT starting from commit d9037941d42b65a
For example, with the latest from git:
$ ./run-sbcl.sh --no-userinit --no-sysinit --non-interactive --load ~/crasher.lisp
(running SBCL from: .)
This is SBCL 1.4.5.69-950a05b, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
CORRUPTION WARNING in SBCL pid 10869(tid 0x7ffff7fcd740):
Memory fault at (nil) (pc=0x1001c481c4, sp=0x7ffff6ea6f68)
The integrity of this image is possibly compromised.
Continuing with fingers crossed.
While evaluating the form starting at line 9, column 0
of #P"/home/
Unhandled SB-SYS:
Unhandled memory fault at #x0.
Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {10005E85B3}>
0: (FIXED-POINT 0 (1) :TEST 34374566114)
1: ("foreign function: #x2")
2: (SB-INT:
3: (EVAL-TLF (FIXED-POINT (QUOTE LIST) (LIST 1)) 1 NIL)
4: ((LABELS SB-FASL::EVAL-FORM :IN SB-INT:
5: ((LAMBDA (SB-KERNEL:FORM &KEY :CURRENT-INDEX &ALLOW-OTHER-KEYS) :IN SB-INT:
6: (SB-C::
7: (SB-INT:
8: ((FLET SB-FASL::THUNK :IN LOAD))
9: (SB-FASL:
10: ((FLET SB-FASL:
11: (LOAD #P"/home/
12: (SB-IMPL:
13: (SB-IMPL:
14: ((FLET SB-UNIX::BODY :IN SAVE-LISP-AND-DIE))
15: ((FLET "WITHOUT-
16: ((LABELS SB-IMPL:
unhandled condition in --disable-debugger mode, quitting
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
8c7050c6b974087 756fefe58cfea84 65fa656292