Summary

file-copy in compiled code causes segfaults

Metadata

Description

Reported by "sikmatija" on IRC:

 (use files)
 (file-copy "/home/peter/test.txt" "/tmp/lala" #t)

Works in csi, but when compiled, causes a segfault. Wrapping it in eval does not help.

Changes and comments

[2018-01-31 10:05:59 UTC] sjamaan wrote:

Note: It works without issue in CHICKEN 5, but that doesn't mean the underlying bug isn't there (like in CHICKEN 4 it works in csi, which makes no sense either)

[2018-02-10 15:33:25 UTC] LemonBoy wrote:

With my detective hat on I'd say it's because `read-string!` is defined in `extras` but `files` doesn't import it.

[2018-04-26 16:59:48 UTC] evhan wrote:

Patch posted for CHICKEN 4.

It works in csi because csi loads extras implicitly.

It works in CHICKEN 5 because the dependencies are correct.

[2018-04-27 11:54:34 UTC] kooda changed status from new to closed

[2018-04-27 11:54:34 UTC] kooda set resolution to fixed

[2018-04-27 11:54:34 UTC] kooda wrote:

Pushed as 50e934e1df9f2f584f88c9f3477030203b01bb77 in the chicken-4 branch.

[2019-03-29 21:05:04 UTC] sjamaan changed milestone from 4.14.0 to 5.1

[2019-03-29 21:05:04 UTC] sjamaan wrote:

Ticket retargeted after milestone deleted