Summary
srfi-41 segfaults on non-stream cdr
Metadata
- Id: aba6d96684cfe27cf3110b85eb2ac206b075c22b
- Trac id: 610
- Type: defect
- Reporter: zbigniew
- Owner: kon
- Cc:
- Status: closed
- Component: extensions
- Estimated difficulty:
- Resolution: fixed
- Priority: minor
- Milestone: 4.9.0
- Version: 4.7.x
- Changetime: 2012-09-24 21:47:48 UTC
- Created: 2011-06-18 03:25:05 UTC
- Keywords:
Description
Quickest way I can reproduce this:
(use srfi-41) (stream-null? (stream-cdr (stream-cons 1 2)) Process scheme segmentation fault
(stream-cons 1 2) is illegal but should not segfault when dereferenced.
Changes and comments
[2011-07-21 00:28:47 UTC] kon changed status from new to closed
[2011-07-21 00:28:47 UTC] kon set resolution to fixed
[2011-07-21 00:28:47 UTC] kon wrote:
Fixed in 1.2.2.
#;2> (stream-null? (stream-cdr (stream-cons 1 2)))
Error: bad argument type - not a stream: 2
Report will potentially be very "far" from point of actual error. Since lazy execution of tail will not discover type mismatch until forced.
[2012-09-24 21:47:48 UTC] felix changed milestone from 4.8.0 to 4.9.0
[2012-09-24 21:47:48 UTC] felix wrote:
Milestone 4.8.0 deleted