From: peter@... Date: 2021-03-02T15:44:30+00:00 Subject: [ruby-core:102720] [Ruby master Bug#17665] Make failed on x86_64-cygwin (miniruby.exe segmentation fault) Issue #17665 has been updated by peterzhu2118 (Peter Zhu). Thanks for reporting the issue in cygwin. I've [proposed a patch](https://github.com/ruby/ruby/pull/4235) that should solve the issue. ---------------------------------------- Bug #17665: Make failed on x86_64-cygwin (miniruby.exe segmentation fault) https://bugs.ruby-lang.org/issues/17665#change-90716 * Author: fd0 (Daisuke Fujimura) * Status: Open * Priority: Normal * ruby -v: ruby 3.1.0dev (2021-02-27T16:42:49Z master 5c9079759d) [x86_64-cygwin] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- 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. - https://github.com/ruby/ruby/commit/1e13548953659bd12c28625d45998322449f3be8 Segmentation faults can be avoided by not using mmap. ---Files-------------------------------- not-use-mmap-on-cygwin.patch (858 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: