From: "hron84 (Gabor Garami)" Date: 2012-06-04T07:52:51+09:00 Subject: [ruby-core:45410] [Ruby 1.8 - Bug #6543][Open] [SEGFAULT] ruby 1.8.7-p358 i386-mingw crashes during Win32API calls Issue #6543 has been reported by hron84 (Gabor Garami). ---------------------------------------- Bug #6543: [SEGFAULT] ruby 1.8.7-p358 i386-mingw crashes during Win32API calls https://bugs.ruby-lang.org/issues/6543 Author: hron84 (Gabor Garami) Status: Open Priority: Normal Assignee: Category: core Target version: Ruby 1.8.7 ruby -v: ruby 1.8.7 (2012-02-08 patchlevel 358) [i386-mingw32] I compiled MRI 1.8.7-p358 for myself on Windows 2003 SP2 system with gcc version 4.6.2 (GCC) (latest stable mingw), and it crashes if ruby code try Win32API call. Steps to reproduce: 1) Compile ruby 1.8.7-p358 with default install MinGW with /configure --enable-install-doc --enable-shared --with-winsock2 2) Install it with make DESTDIR=d:/somewhere/in/a/filesystem 3) Try run attached ruby code Expected result: something like: "C:\\Documents and Settings\\All Users\\Application Data" Actual result: win32test.rb:8: [BUG] Segmentation fault ruby 1.8.7 (2012-02-08 patchlevel 358) [i386-mingw32] This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. -- http://bugs.ruby-lang.org/