Actions
Bug #17665
closedMake failed on x86_64-cygwin (miniruby.exe segmentation fault)
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.1.0dev (2021-02-27T16:42:49Z master 5c9079759d) [x86_64-cygwin]
Description
Make failed on x86_64-cygwin (miniruby.exe segmentation fault)
$ git clone https://github.com/ruby/ruby.git
$ cd ruby
$ autoreconf -fiv && ./configure && make V=1
(snip)
./miniruby.exe -I./lib -I. -I.ext/common ./tool/generic_erb.rb -c -o encdb.h ./template/encdb.h.tmpl ./enc enc
make: *** [uncommon.mk:1098: encdb.h] Segmentation fault (core dumped)
$
This problem seems to have occurred since 1e13548953659bd12c28625d45998322449f3be8.
Segmentation faults can be avoided by not using mmap.
Files
Updated by xtkoba (Tee KOBAYASHI) over 3 years ago
fd0 (Daisuke Fujimura) Would you please try the patch in #17652#note-5 ?
Updated by xtkoba (Tee KOBAYASHI) over 3 years ago
Not using mmap(2)
may be a workaround, but there is a drawback of GC compaction being not usable.
Updated by fd0 (Daisuke Fujimura) over 3 years ago
Would you please try the patch in #17652#note-5 ?
Applying the patch, I have confirmed that segmentation fault does not occur.
$ ./miniruby.exe -v
ruby 3.1.0dev (2021-02-28T11:24:42Z master 80e2c45f55) [x86_64-cygwin]
Updated by peterzhu2118 (Peter Zhu) over 3 years ago
Thanks for reporting the issue in cygwin. I've proposed a patch that should solve the issue.
Updated by peterzhu2118 (Peter Zhu) over 3 years ago
- Status changed from Open to Closed
Actions
Like0
Like0Like0Like0Like0Like0