mapcar list truncates argument list!

Bug #1478768 reported by Faré
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
High
Jan Moringen

Bug Description

Using a fairly recent SBCL from git on Linux x64 at commit 31d4aef.

 (apply 'mapcar 'list '((1 2 3) (4 5 6) (7 8 9)))

Expected result:
((1 4 7) (2 5 8) (3 6 9))

Instead I get:
((1 7 NIL) (2 8 NIL) (3 9 NIL))

Something bad happens to the argument list.

Revision history for this message
Jan Moringen (scymtym) wrote :

Seems to be fixed by (arg args (cdr args)) -> (arg args (cdr arg)) in line 1251 of list.lisp

Changed in sbcl:
importance: Undecided → High
status: New → Confirmed
assignee: nobody → Jan Moringen (scymtym)
Revision history for this message
Jan Moringen (scymtym) wrote :
Jan Moringen (scymtym)
Changed in sbcl:
status: Confirmed → Fix Committed
Jan Moringen (scymtym)
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.