Summary
file-copy in compiled code causes segfaults
Metadata
- Id: 733217beddabe950bdd235776aea4ea09159b485
- Trac id: 1442
- Type: defect
- Reporter: sjamaan
- Owner: sjamaan
- Cc: sirkmatija@gmail.com
- Status: closed
- Component: core libraries
- Estimated difficulty: easy
- Resolution: fixed
- Priority: major
- Milestone: 5.1
- Version: 4.13.0
- Changetime: 2019-03-29 21:05:04 UTC
- Created: 2018-01-31 09:59:41 UTC
- Keywords: segfault, file-copy
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