Bug #12631
closedCannot build Ruby 2.4 preview 1 with MSVC 2015 update 3 ( crashes in miniruby )
Description
D:\Ruby24Build\ruby-2.4.0-preview1\ruby-2.4.0-preview1>win32\configure.bat --enable-debug-env --prefix=%ID%
Creating verconf.mk
Creating Makefile.new
type `nmake' to make ruby.
D:\Ruby24Build\ruby-2.4.0-preview1\ruby-2.4.0-preview1>nmake
Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation. All rights reserved.
CC = cl -nologo
LD = cl -nologo
LDSHARED = cl -nologo -LD
CFLAGS = -MD -Zi -W2 -wd4100 -wd4127 -wd4210 -wd4214 -wd4255 -wd4574 -wd4668 -wd4710 -wd4711 -wd4820 -wd4996 -
we4028 -we4142 -O2sy- -Zm600
XCFLAGS = -DRUBY_EXPORT -I. -I.ext/include/i386-mswin32_140 -I./include -I. -I./missing
CPPFLAGS = -D_WIN32_WINNT=0x0600
DLDFLAGS = -incremental:no -debug -opt:ref -opt:icf -dll
SOLIBS =
Creating config.h
.ext\include\i386-mswin32_140\ruby\config.h updated
Creating config.status
compiling main.c
main.c
compiling dmydln.c
dmydln.c
compiling miniruby.rc
compiling miniinit.c
miniinit.c
compiling dmyext.c
dmyext.c
compiling miniprelude.c
miniprelude.c
making dummy probes.h
compiling array.c
array.c
compiling bignum.c
bignum.c
compiling class.c
class.c
compiling compar.c
compar.c
compiling compile.c
compile.c
compiling complex.c
complex.c
compiling cont.c
cont.c
compiling debug.c
debug.c
compiling dir.c
dir.c
compiling dln_find.c
dln_find.c
compiling encoding.c
encoding.c
compiling enum.c
enum.c
compiling enumerator.c
enumerator.c
compiling error.c
error.c
compiling eval.c
eval.c
compiling file.c
file.c
compiling gc.c
gc.c
compiling hash.c
hash.c
compiling inits.c
inits.c
compiling io.c
io.c
compiling iseq.c
iseq.c
compiling load.c
load.c
compiling marshal.c
marshal.c
compiling math.c
math.c
compiling node.c
node.c
compiling numeric.c
numeric.c
compiling object.c
object.c
compiling pack.c
pack.c
compiling parse.c
parse.c
compiling proc.c
proc.c
compiling process.c
process.c
compiling random.c
random.c
compiling range.c
range.c
compiling rational.c
rational.c
compiling re.c
re.c
compiling regcomp.c
regcomp.c
compiling regenc.c
regenc.c
compiling regerror.c
regerror.c
compiling regexec.c
regexec.c
compiling regparse.c
regparse.c
compiling regsyntax.c
regsyntax.c
compiling ruby.c
ruby.c
compiling safe.c
safe.c
compiling signal.c
signal.c
compiling sprintf.c
sprintf.c
compiling st.c
st.c
compiling strftime.c
strftime.c
compiling string.c
string.c
compiling struct.c
struct.c
compiling symbol.c
symbol.c
compiling thread.c
thread.c
compiling time.c
time.c
compiling transcode.c
transcode.c
compiling util.c
util.c
compiling variable.c
variable.c
compiling version.c
version.c
compiling vm.c
vm.c
compiling vm_backtrace.c
vm_backtrace.c
compiling vm_dump.c
vm_dump.c
C:\Program Files (x86)\Windows Kits\8.1\include\um\imagehlp.h(1873): warning C4091: 'typedef ': ignored on left of '' wh
en no variable is declared
C:\Program Files (x86)\Windows Kits\8.1\include\um\imagehlp.h(3519): warning C4091: 'typedef ': ignored on left of '' wh
en no variable is declared
compiling vm_trace.c
vm_trace.c
compiling enc/ascii.c
ascii.c
compiling enc/us_ascii.c
us_ascii.c
compiling enc/unicode.c
unicode.c
compiling enc/utf_8.c
utf_8.c
compiling enc/trans/newline.c
newline.c
compiling ./missing/crypt.c
crypt.c
compiling ./missing/ffs.c
ffs.c
compiling ./missing/langinfo.c
langinfo.c
compiling ./missing/lgamma_r.c
lgamma_r.c
compiling ./missing/strlcat.c
strlcat.c
compiling ./missing/strlcpy.c
strlcpy.c
compiling win32/win32.c
win32.c
compiling win32/file.c
file.c
compiling ./missing/setproctitle.c
setproctitle.c
compiling ./missing/explicit_bzero.c
explicit_bzero.c
compiling dmyenc.c
dmyenc.c
user32.lib advapi32.lib shell32.lib ws2_32.lib iphlpapi.lib imagehlp.lib shlwapi.lib
linking miniruby.exe
ruby 2.4.0preview1 (2016-06-20 trunk 55466) [i386-mswin32_140]
generating encdb.h
.\miniruby.exe: [BUG] Segmentation fault
ruby 2.4.0preview1 (2016-06-20 trunk 55466) [i386-mswin32_140]
-- Control frame information -----------------------------------------------
c:0001 p:0000 s:0002 E:002068 (none) [FINISH]
-- C level backtrace information -------------------------------------------
C:\Windows\SysWOW64\ntdll.dll(NtWaitForSingleObject+0x15) [0x7781F971]
C:\Windows\syswow64\kernel32.dll(WaitForSingleObjectEx+0x43) [0x753F1194]
C:\Windows\syswow64\kernel32.dll(WaitForSingleObject+0x12) [0x753F1148]
D:\Ruby24Build\ruby-2.4.0-preview1\ruby-2.4.0-preview1\miniruby.exe(rb_print_backtrace+0x2f) [0x008EB198] d:\ruby24build
\ruby-2.4.0-preview1\ruby-2.4.0-preview1\vm_dump.c:707
D:\Ruby24Build\ruby-2.4.0-preview1\ruby-2.4.0-preview1\miniruby.exe(rb_vm_bugreport+0x5a) [0x008EB1F6] d:\ruby24build\ru
by-2.4.0-preview1\ruby-2.4.0-preview1\vm_dump.c:1000
D:\Ruby24Build\ruby-2.4.0-preview1\ruby-2.4.0-preview1\miniruby.exe(rb_bug_context+0x45) [0x0083FC96] d:\ruby24build\rub
y-2.4.0-preview1\ruby-2.4.0-preview1\error.c:408
D:\Ruby24Build\ruby-2.4.0-preview1\ruby-2.4.0-preview1\miniruby.exe(sigsegv+0x41) [0x008AC374] d:\ruby24build\ruby-2.4.0
-preview1\ruby-2.4.0-preview1\signal.c:896
C:\Windows\system32\ucrtbase.DLL(seh_filter_exe+0x1cb) [0x5B88322B]
D:\Ruby24Build\ruby-2.4.0-preview1\ruby-2.4.0-preview1\miniruby.exe(__scrt_common_main_seh+0x13d) [0x008F8B87] f:\dd\vct
ools\crt\vcstartup\src\startup\exe_common.inl:269
C:\Windows\system32\VCRUNTIME140.dll(seh_longjmp_unwind4+0x3a) [0x5B8FACD0]
C:\Windows\syswow64\kernel32.dll(BaseThreadInitThunk+0x12) [0x753F338A]
C:\Windows\SysWOW64\ntdll.dll(RtlInitializeExceptionChain+0x63) [0x77839A02]
-- Other runtime information -----------------------------------------------
-
Loaded script: .\miniruby.exe
-
Loaded features:
0 enumerator.so
1 thread.rb
2 rational.so
3 complex.so
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
NMAKE : fatal error U1077: '.\miniruby.exe' : return code '0xc0000005'
Stop.
Updated by grrussel (George Russell) over 8 years ago
Note: This also occurs in MSVC 2015 Update 1
Updated by usa (Usaku NAKAMURA) over 8 years ago
- Status changed from Open to Closed
Applied in changeset r55792.
- win32/win32.c (set_pioinfo_extra): use more reliable way to search
the position of pioinfo of VC14, and also support debug library of it.
patched by davispuh AT gmail.com
[ruby-core:76644] [Bug #12644]
this fixes also [Bug #12631]
Updated by usa (Usaku NAKAMURA) over 8 years ago
- Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED