Backport #7633
closedBuild failure ruby 1.9.3p362 with x64 VC2012
Description
I cannot build ruby 1.9.3p362 with x64 VC2012 on Windows 8.
C:\work\ruby-1.9.3-p362>nmake
Microsoft(R) Program Maintenance Utility 버전 11.00.50727.1
Copyright (c) Microsoft Corporation. All rights reserved.
CC = cl -nologo
LD = cl -nologo
LDSHARED = cl -nologo -LD
CFLAGS = -MD -Zi -W2 -wd4996 -we4028 -we4142 -O2sy- -Zm600
XCFLAGS = -DRUBY_EXPORT -I. -I.ext/include/x64-mswin64_110 -I./include -
I. -I./missing
CPPFLAGS =
DLDFLAGS = -incremental:no -debug -opt:ref -opt:icf -dll
SOLIBS =
Creating config.h
.ext\include\x64-mswin64_110\ruby\config.h unchanged.
Creating config.status
compiling main.c
main.c
compiling dmydln.c
dmydln.c
compiling miniruby.rc
compiling dmyencoding.c
dmyencoding.c
compiling version.c
version.c
compiling dmyversion.c
dmyversion.c
compiling miniprelude.c
miniprelude.c
compiling array.c
array.c
compiling bignum.c
bignum.c
compiling class.c
class.c
compiling compar.c
compar.c
compiling complex.c
complex.c
compiling dir.c
dir.c
compiling dln_find.c
dln_find.c
compiling enum.c
enum.c
compiling enumerator.c
enumerator.c
compiling error.c
error.c
compiling eval.c
eval.c
compiling load.c
load.c
compiling proc.c
proc.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 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 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 time.c
time.c
compiling transcode.c
transcode.c
compiling util.c
util.c
compiling variable.c
variable.c
compiling compile.c
compile.c
compiling debug.c
debug.c
compiling iseq.c
iseq.c
compiling vm.c
vm.c
compiling vm_dump.c
vm_dump.c
compiling thread.c
thread.c
compiling cont.c
cont.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 newline.c
newline.c
compiling ./missing/acosh.c
acosh.c
compiling ./missing/cbrt.c
cbrt.c
compiling ./missing/crypt.c
crypt.c
compiling ./missing/erf.c
erf.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 ./missing/tgamma.c
tgamma.c
compiling win32/win32.c
win32.c
compiling win32/file.c
file.c
compiling ./missing/setproctitle.c
setproctitle.c
compiling dmyext.c
dmyext.c
oldnames.lib user32.lib advapi32.lib shell32.lib ws2_32.lib imagehlp.lib shlwapi.lib
linking miniruby.exe
ruby 1.9.3p362 (2012-12-25 revision 38607) [x64-mswin64_110]
Microsoft(R) Program Maintenance Utility 버전 11.00.50727.1
Copyright (c) Microsoft Corporation. All rights reserved.
./tool/mkconfig.rb:4: [BUG] Segmentation fault
ruby 1.9.3p362 (2012-12-25 revision 38607) [x64-mswin64_110]
-- Control frame information -----------------------------------------------
c:0003 p:0011 s:0027 b:0027 l:000d98 d:001fe0 EVAL ./tool/mkconfig.rb:4
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000d98 d:000d98 TOP
-- Ruby level backtrace information ----------------------------------------
./tool/mkconfig.rb:4:in `'
-- C level backtrace information -------------------------------------------
C:\WINDOWS\SYSTEM32\ntdll.dll(NtWaitForSingleObject+0xa) [0x000007FE12902C2A]
C:\WINDOWS\system32\KERNELBASE.dll(WaitForSingleObjectEx+0x9a) [0x000007FE0FA410EA]
C:\work\ruby-1.9.3-p362\miniruby.exe(rb_vm_bugreport+0xa3) [0x000007F6E51818A7] c:\work\ruby-1.9.3-p362\vm_dump.c:818
C:\work\ruby-1.9.3-p362\miniruby.exe(report_bug+0xe8) [0x000007F6E50C4F90] c:\work\ruby-1.9.3-p362\error.c:260
C:\work\ruby-1.9.3-p362\miniruby.exe(rb_bug+0x49) [0x000007F6E50C42E9] c:\work\ruby-1.9.3-p362\error.c:281
C:\work\ruby-1.9.3-p362\miniruby.exe(sigsegv+0x48) [0x000007F6E5135CCC] c:\work\ruby-1.9.3-p362\signal.c:609
C:\WINDOWS\SYSTEM32\MSVCR110.dll(XcptFilter+0x1a9) [0x000007FDFCACF2B5]
C:\work\ruby-1.9.3-p362\miniruby.exe(__tmainCRTStartup$filt$0+0x16) [0x000007F6E5192EC1] f:\dd\vctools\crt_bld\self_64_amd64\crt\src\crtexe.c:553
C:\WINDOWS\SYSTEM32\MSVCR110.dll(_C_specific_handler+0x93) [0x000007FDFCACE66F]
C:\WINDOWS\SYSTEM32\ntdll.dll(RtlLookupFunctionEntry+0x26d) [0x000007FE1292464D]
C:\WINDOWS\SYSTEM32\ntdll.dll(DbgPrint+0x47c) [0x000007FE1292567C]
C:\WINDOWS\SYSTEM32\ntdll.dll(KiUserExceptionDispatcher+0x2e) [0x000007FE12904BBA]
C:\work\ruby-1.9.3-p362\miniruby.exe(rb_gvar_get+0x0) [0x000007F6E5163670] c:\work\ruby-1.9.3-p362\variable.c:671
C:\work\ruby-1.9.3-p362\miniruby.exe(vm_exec_core+0x579) [0x000007F6E517B519] c:\work\ruby-1.9.3-p362\vm.inc:382
C:\work\ruby-1.9.3-p362\miniruby.exe(vm_exec+0xa6) [0x000007F6E517AB26] c:\work\ruby-1.9.3-p362\vm.c:1228
C:\work\ruby-1.9.3-p362\miniruby.exe(rb_iseq_eval_main+0xa1) [0x000007F6E51768D9] c:\work\ruby-1.9.3-p362\vm.c:1471
C:\work\ruby-1.9.3-p362\miniruby.exe(ruby_exec_internal+0xa1) [0x000007F6E50C769D] c:\work\ruby-1.9.3-p362\eval.c:209
C:\work\ruby-1.9.3-p362\miniruby.exe(ruby_exec_node+0x1d) [0x000007F6E50C76E9] c:\work\ruby-1.9.3-p362\eval.c:252
C:\work\ruby-1.9.3-p362\miniruby.exe(ruby_run_node+0x30) [0x000007F6E50C79F8] c:\work\ruby-1.9.3-p362\eval.c:244
C:\work\ruby-1.9.3-p362\miniruby.exe(main+0x40) [0x000007F6E50A1040] c:\work\ruby-1.9.3-p362\main.c:40
C:\work\ruby-1.9.3-p362\miniruby.exe(__tmainCRTStartup+0x10f) [0x000007F6E5192B5F] f:\dd\vctools\crt_bld\self_64_amd64\crt\src\crtexe.c:536
C:\WINDOWS\system32\KERNEL32.DLL(BaseThreadInitThunk+0x1a) [0x000007FE11B8167E]
-- Other runtime information -----------------------------------------------
-
Loaded script: ./tool/mkconfig.rb
-
Loaded features:
0 enumerator.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' : '0x3' 반환 코드입니다.
Stop.