Opened 3 weeks ago

Last modified 8 days ago

#1442 new defect

file-copy in compiled code causes segfaults

Reported by: sjamaan Owned by: sjamaan
Priority: major Milestone: 4.14.0
Component: core libraries Version: 4.13.0
Keywords: segfault, file-copy Cc: sirkmatija@…
Estimated difficulty: easy


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.

Change History (2)

comment:1 Changed 3 weeks ago by sjamaan

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)

comment:2 Changed 8 days ago by LemonBoy

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

Note: See TracTickets for help on using tickets.