#227: csc segfaults with certain recursive sources
---------------------------------------------+------------------------------
Reporter: Dan Muresan <address@hidden> | Type: defect
Status: new | Priority: minor
Milestone: | Component: compiler
Version: 2.6 | Keywords:
---------------------------------------------+------------------------------
This is Chicken 2.6 on Linux built from tarball with automake.
$ cat x.scm
(require 'y)
(module x (fx)
(define fx 10)
)
$ cat y.scm
(require 'x) (require-for-syntax 'x) (import x)
(define fy 20)
$ csc -R syntax-case -s x.scm
$ csc -R syntax-case -s y.scm
Error: (open-input-file) can not open file - Too many open files: "./x.so"
Segmentation fault (core dumped)
*** Shell command terminated with exit status 139:
/opt/chicken/bin/chicken y.scm -output-file y.c -dynamic -feature
chicken-compile-shared -quiet -require-extension syntax-case
If I try to compile x.scm first,
$ cat x.scm
Error: (open-input-file) can not open file - Too many open files:
"./x.scm"
(no segfault)