Issue #9802 has been updated by hake huang.


it can on reproduced on the 2.0.0P451 build for windows, it is the latest, and I can reproduce it on all 2013 releases.

The whole project is bigger, so I am trying to reduce them to be easily reproduced.

----------------------------------------
Backport #9802: hash with array process seems has problems for ruby2.0.0p451 windows build
https://bugs.ruby-lang.org/issues/9802#change-46538

* Author: hake huang
* Status: Feedback
* Priority: Normal
* Assignee: 
----------------------------------------
when I write a hash parser, like below:

~~~
test:
  - path: a.c
  ....
  - path: b.c
~~~

 and I can see below error when the parser finish.

~~~
?.u1A^?f@E'`?f??( z?f0??f: [BUG] Segmentation fault
ruby 2.0.0p451 (2014-02-24) [i386-mingw32]

-- Control frame information -----------------------------------------------
c:0001 p:7964620 s:0002 E:001bbc TOP    [FINISH]


-- C level backtrace information -------------------------------------------
C:\Windows\SYSTEM32\ntdll.dll(KiFastSystemCallRet+0x0) [0x779E70B4]
C:\Windows\system32\kernel32.dll(WaitForSingleObjectEx+0x43) [0x7635C2F3]
C:\Windows\system32\kernel32.dll(WaitForSingleObject+0x12) [0x7635C2A2]
C:\Ruby200\bin\msvcrt-ruby200.dll(rb_vm_bugreport+0xa7) [0x668F7FA7]
C:\Ruby200\bin\msvcrt-ruby200.dll(rb_name_err_mesg_new+0x69d) [0x667BE36D]
C:\Ruby200\bin\msvcrt-ruby200.dll(rb_bug+0x2e) [0x667BF16E]
C:\Ruby200\bin\msvcrt-ruby200.dll(rb_check_safe_str+0x180) [0x6687E3B0]
 [0x00401866]
C:\Windows\SYSTEM32\ntdll.dll(EtwReplyNotification+0x366) [0x77A17F1A]
~~~



-- 
https://bugs.ruby-lang.org/