jameskilton/rice — Issue #33: SIGSEGV under MinGW with 1.9.3-p0
Author: luislavena
Created: 2011-11-15 21:08:17+00:00
State: open

Hello,

On my attempt to checkout how Rice works under MinGW, decided to run the tests. Everything compile fine (except for some `RbConfig` deprecation warnings)

Anyhow, things blow up with vm_unittest.

Attached is a GDB backtrace of this:

```
Starting program: C:\Users\Luis\Projects\oss\jameskilton\rice\test/vm_unittest.exe
[New Thread 1912.0xf38]
VM:create_object [New Thread 1912.0x1010]

Program received signal SIGSEGV, Segmentation fault.
0x62df492b in st_lookup ()
from C:\Users\Luis\Tools\Ruby\ruby-1.9.3-p0-i386-mingw32\bin\msvcrt-ruby191.dll
(gdb) bt
#0 0x62df492b in st_lookup ()
from C:\Users\Luis\Tools\Ruby\ruby-1.9.3-p0-i386-mingw32\bin\msvcrt-ruby191.dll
#1 0x62e73ee6 in rb_w32_close ()
from C:\Users\Luis\Tools\Ruby\ruby-1.9.3-p0-i386-mingw32\bin\msvcrt-ruby191.dll
#2 0x62d4ffa6 in rb_find_file_safe ()
from C:\Users\Luis\Tools\Ruby\ruby-1.9.3-p0-i386-mingw32\bin\msvcrt-ruby191.dll
#3 0x62d43ef6 in rb_require_safe ()
from C:\Users\Luis\Tools\Ruby\ruby-1.9.3-p0-i386-mingw32\bin\msvcrt-ruby191.dll
#4 0x62d01836 in msvcrt-ruby191!dln_load ()
from C:\Users\Luis\Tools\Ruby\ruby-1.9.3-p0-i386-mingw32\bin\msvcrt-ruby191.dll
#5 0x62d424f8 in rb_protect ()
from C:\Users\Luis\Tools\Ruby\ruby-1.9.3-p0-i386-mingw32\bin\msvcrt-ruby191.dll
#6 0x62d01c96 in rb_locale_charmap ()
from C:\Users\Luis\Tools\Ruby\ruby-1.9.3-p0-i386-mingw32\bin\msvcrt-ruby191.dll
#7 0x62d0397e in rb_enc_find_index ()
from C:\Users\Luis\Tools\Ruby\ruby-1.9.3-p0-i386-mingw32\bin\msvcrt-ruby191.dll
#8 0x62debd47 in ruby_init_loadpath ()
from C:\Users\Luis\Tools\Ruby\ruby-1.9.3-p0-i386-mingw32\bin\msvcrt-ruby191.dll
#9 0x62decd73 in ruby_process_options ()
from C:\Users\Luis\Tools\Ruby\ruby-1.9.3-p0-i386-mingw32\bin\msvcrt-ruby191.dll
#10 0x62d41b23 in ruby_options ()
from C:\Users\Luis\Tools\Ruby\ruby-1.9.3-p0-i386-mingw32\bin\msvcrt-ruby191.dll
#11 0x00404c09 in init (this=0x702af0, args=...) at VM.cpp:90
#12 Rice::VM::VM (this=0x702af0, args=...) at VM.cpp:27
#13 0x00404652 in fixture__VM__setup () at test_VM.cpp:18
#14 0x004031c8 in Test_Suite::run (this=0x702a84, result=...) at unittest.cpp:60
#15 0x00403790 in main () at unittest.cpp:98
```

GCC 4.5.2 (32bits) was used, official RubyInstaller release.