Summary

srfi-41 segfaults on non-stream cdr

Metadata

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