Hello,

In message "Re: Segmentation fault: Ruby 1.8.5 Under VC++ express 2005"
    on Feb.10,2007 14:16:14, <zhimin.wen / gmail.com> wrote:
| > No. I checked that `nmake test' works fine.
| >
| > My environment is VC++8 (VC++ 2005 Express Edition) and
| > Platform SDK for Windows Server 2003 SP1.
| > And the ruby version I have checked is
| >
| > ruby 1.8.5 (2007-02-10 patchlevel 5000) [i386-mswin32_80]
| > ruby 1.8.5 (2007-02-10 patchlevel 19) [i386-mswin32_80]
| >
| >   Regards,
| >   Masaki Suketa
| >
| >
| In fact, I was using the VC++8 (VC++ 2005 Express Edition) and Platform SDK
| for windows fine without problem. Until I upgrade to the VC++8 SP1.
| Regards

Thank you, Suketa-san and wen-san.

Perhaps, I discovered the solution.
Suketa-san, could you test attached code with VC++8 and tell
me the result?

how to test:
  C:\> cl -MD test.c version.lib
  ...
  C:\> test

my sample result:
* with VC++6
MSVCRT version : 7.0.2600.2180
dummy test fd: 3
fd:0 adrs:00381F20 handle:00000003 flag:c1
fd:1 adrs:00381F44 handle:00000007 flag:c1
fd:2 adrs:00381F68 handle:0000000B flag:c1
fd:3 adrs:00381F8C handle:000007E8 flag:c1
fd:4 adrs:00381FB0 handle:FFFFFFFF flag:00
fd:5 adrs:00381FD4 handle:FFFFFFFF flag:00
fd:6 adrs:00381FF8 handle:FFFFFFFF flag:00
fd:7 adrs:0038201C handle:FFFFFFFF flag:00
fd:8 adrs:00382040 handle:FFFFFFFF flag:00
fd:9 adrs:00382064 handle:FFFFFFFF flag:00

* with VC++7.1
MSVCRT version : 7.10.6030.0
dummy test fd: 3
fd:0 adrs:00381F28 handle:00000003 flag:c1
fd:1 adrs:00381F4C handle:00000007 flag:c1
fd:2 adrs:00381F70 handle:0000000B flag:c1
fd:3 adrs:00381F94 handle:000007F4 flag:c1
fd:4 adrs:00381FB8 handle:FFFFFFFF flag:00
fd:5 adrs:00381FDC handle:FFFFFFFF flag:00
fd:6 adrs:00382000 handle:FFFFFFFF flag:00
fd:7 adrs:00382024 handle:FFFFFFFF flag:00
fd:8 adrs:00382048 handle:FFFFFFFF flag:00
fd:9 adrs:0038206C handle:FFFFFFFF flag:00

* with VC++8 SP1
MSVCRT version : 8.0.50727.762
dummy test fd: 3
fd:0 adrs:003A20B0 handle:00000003 flag:c1
fd:1 adrs:003A20E8 handle:00000007 flag:c1
fd:2 adrs:003A2120 handle:0000000B flag:c1
fd:3 adrs:003A2158 handle:000007DC flag:c1
fd:4 adrs:003A2190 handle:FFFFFFFF flag:00
fd:5 adrs:003A21C8 handle:FFFFFFFF flag:00
fd:6 adrs:003A2200 handle:FFFFFFFF flag:00
fd:7 adrs:003A2238 handle:FFFFFFFF flag:00
fd:8 adrs:003A2270 handle:FFFFFFFF flag:00
fd:9 adrs:003A22A8 handle:FFFFFFFF flag:00

Regards,
-- 
U.Nakamura <usa / garbagecollect.jp>