ruby-core

Mailing list archive

[#44776] [ruby-trunk - Bug #6385][Open] mtime vie File.stat(filename).utime vs File.open(filename, 'r').mtime in Windows — "kolmanv (Kolman Vornovitsky)" <kolmanv@...>

9 messages 2012/05/01

[#44782] [ruby-trunk - Bug #6387][Open] 1.9.3p194 crashed on require in ubuntu — "ywen (Yi Wen)" <hayafirst@...>

12 messages 2012/05/01

[#44795] [ruby-trunk - Bug #6391][Open] Segment Fault while execute make_encmake.rb for Ruby 1.9.3 P194 ( MinGW64) — "raylinn@... (ray linn)" <raylinn@...>

13 messages 2012/05/02

[#44911] [ruby-trunk - Bug #6408][Open] DelegateClass#eql? and <=> don't work as expected — "tenderlovemaking (Aaron Patterson)" <aaron@...>

11 messages 2012/05/06

[#44951] [ruby-trunk - Feature #6414][Open] Destructuring Assignment — "edtsech (Edward Tsech)" <edtsech@...>

14 messages 2012/05/08

[#44958] [ruby-trunk - Feature #6418][Assigned] Supporing a subset of ANSI escape code on Windows — "usa (Usaku NAKAMURA)" <usa@...>

11 messages 2012/05/09

[#45035] [ruby-trunk - Bug #6433][Open] rb_thread_blocking_region(): ubf() function is executed with GVL — ibc (Iñaki Baz Castillo) <ibc@...>

12 messages 2012/05/14

[#45180] [ruby-trunk - Feature #6478][Open] BasicObject#__class__ — "trans (Thomas Sawyer)" <transfire@...>

14 messages 2012/05/22

[#45193] [ruby-trunk - Feature #6482][Open] Add URI requested to Net::HTTP request and response objects — "drbrain (Eric Hodel)" <drbrain@...7.net>

16 messages 2012/05/23

[#45198] [ruby-trunk - Feature #6483][Open] parametric map — "prijutme4ty (Ilya Vorontsov)" <prijutme4ty@...>

14 messages 2012/05/23

[#45222] [ruby-trunk - Feature #6492][Open] Inflate all HTTP Content-Encoding: deflate, gzip, x-gzip responses by default — "drbrain (Eric Hodel)" <drbrain@...7.net>

23 messages 2012/05/24

[#45252] [ruby-trunk - Feature #6499][Open] Array::zip — "prijutme4ty (Ilya Vorontsov)" <prijutme4ty@...>

14 messages 2012/05/26

[#45272] [ruby-trunk - Feature #6503][Open] Support for the NPN extension to TLS/SSL — "igrigorik (Ilya Grigorik)" <ilya@...>

13 messages 2012/05/27

[#45316] [ruby-trunk - Feature #6515][Open] array.c: added method that verifies if an Array is part of another — "lellisga (Li Ellis Galardo)" <lellisga@...>

14 messages 2012/05/30

[ruby-core:44808] [ruby-trunk - Bug #6391][Feedback] Segment Fault while execute make_encmake.rb for Ruby 1.9.3 P194 ( MinGW64)

From: "luislavena (Luis Lavena)" <luislavena@...>
Date: 2012-05-02 13:03:50 UTC
List: ruby-core #44808
Issue #6391 has been updated by luislavena (Luis Lavena).

Category set to build
Status changed from Open to Feedback
Assignee set to luislavena (Luis Lavena)

Hello,

Are you trying to build trunk? GCC 4.7.0 changes hasn't been backported yet to ruby_1_9_3 branch

There is no mention of revision against you tested it.

Please confirm.
----------------------------------------
Bug #6391: Segment Fault while execute make_encmake.rb for Ruby 1.9.3 P194 ( MinGW64)
https://bugs.ruby-lang.org/issues/6391#change-26383

Author: raylinn@gmail.com (ray linn)
Status: Feedback
Priority: Normal
Assignee: luislavena (Luis Lavena)
Category: build
Target version: 
ruby -v: ruby 1.9.3p194 (2012-04-20) [x64-mingw32]


The Ruby is compiled by MinGW64 (GCC 4.7.0 ), configure script is :

./configure --build=x86_64-w64-mingw32 CFLAGS="-O2 -mieee-fp -I/usr/local/include" LDFLAGS="-L/usr/local/include"

when miniruby executing, error occurs with the following message:


        CC = gcc
        LD = ld
        LDSHARED = gcc -shared
        CFLAGS = -O2 -mieee-fp -I/usr/local/include
        XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hi
dden -DRUBY_EXPORT
        CPPFLAGS =   -I. -I.ext/include/x64-mingw32 -I./include -I.
        DLDFLAGS = -Wl,--enable-auto-image-base,--enable-auto-import -Wl,--out-i
mplib=libx64-msvcrt-ruby191.dll.a x64-msvcrt-ruby191.def
        SOLIBS = x64-msvcrt-ruby191.res.o -lshell32 -lws2_32 -limagehlp
generating enc.mk
C:/msys/1.0/home/beta/ruby-1.9.3-p194/lib/mkmf.rb:5: [BUG] Segmentation fault
ruby 1.9.3p194 (2012-04-20) [x64-mingw32]

-- Control frame information -----------------------------------------------
c:td p:---- s:td b:td l:td d:td CFUNC  :require
c:td p:td s:td b:td l:td d:td TOP    C:/msys/1.0/home/beta/ruby-1.9.3-p194/lib/m
kmf.rb:5
c:td p:---- s:td b:td l:td d:td FINISH
c:td p:---- s:td b:td l:td d:td CFUNC  :load
c:td p:td s:td b:td l:tx d:tx EVAL   ./enc/make_encmake.rb:8
c:td p:---- s:td b:td l:td d:td FINISH
c:td p:td s:td b:td l:tx d:tx TOP

-- Ruby level backtrace information ----------------------------------------
./enc/make_encmake.rb:8:in `<main>'
./enc/make_encmake.rb:8:in `load'
C:/msys/1.0/home/beta/ruby-1.9.3-p194/lib/mkmf.rb:5:in `<top (required)>'
C:/msys/1.0/home/beta/ruby-1.9.3-p194/lib/mkmf.rb:5:in `require'

-- C level backtrace information -------------------------------------------
C:\windows\SYSTEM32\ntdll.dll(NtWaitForSingleObject+0xa) [0x0000000076EE135A]
C:\windows\system32\KERNELBASE.dll(WaitForSingleObjectEx+0x9c) [0x000007FEFD5710
DC]
 [0x000000000051FA34]
 [0x000000000042EBD7]
 [0x000000000042F076]
 [0x00000000004C3BD4]
 [0x0000000000533F25]
C:\windows\SYSTEM32\ntdll.dll(_C_specific_handler+0x9c) [0x0000000076EA85A8]
C:\windows\SYSTEM32\ntdll.dll(RtlDecodePointer+0xbd) [0x0000000076EB9D0D]
C:\windows\SYSTEM32\ntdll.dll(RtlUnwindEx+0xbbf) [0x0000000076EA91AF]
C:\windows\SYSTEM32\ntdll.dll(KiUserExceptionDispatcher+0x2e) [0x0000000076EE127
8]
 [0x0000000000441810]
 [0x0000000000441713]
 [0x0000000000507685]
 [0x00000000004412FA]
 [0x0000000000441713]
 [0x0000000000507685]
 [0x00000000004412FA]
 [0x0000000000441713]
 [0x0000000000507685]
 [0x00000000004412FA]
 [0x000000000050D095]
 [0x00000000004412FA]
 [0x000000000050BB59]
 [0x00000000004CB35E]
 [0x000000000050BC3A]
 [0x00000000004412FA]
 [0x000000000044305D]
 [0x0000000000443AFF]
 [0x00000000004CE7D1]
 [0x00000000004D04AE]
 [0x0000000000477792]
 [0x0000000000486445]
 [0x000000000048E5F5]
 [0x0000000000521068]
 [0x0000000000525890]
 [0x000000000047BFB2]
 [0x00000000004C218B]
 [0x0000000000432D67]
 [0x00000000004C294B]
 [0x0000000000434556]
 [0x000000000043574C]
 [0x000000000051B50A]
 [0x0000000000510F7F]
 [0x0000000000515EA0]
 [0x000000000051DABC]
 [0x00000000004345C0]
 [0x00000000004346D1]
 [0x000000000051B50A]
 [0x0000000000510F7F]
 [0x0000000000515EA0]
 [0x000000000051DB88]
 [0x0000000000431AF7]
 [0x00000000004325AD]
 [0x0000000000433F50]
 [0x0000000000538627]
 [0x00000000004013C9]
 [0x00000000004014E8]
C:\windows\system32\kernel32.dll(BaseThreadInitThunk+0xd) [0x0000000076C2652D]

-- Other runtime information -----------------------------------------------

* Loaded script: ./enc/make_encmake.rb

* Loaded features:

    0 enumerator.so
    1 mkmf.rb

[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


This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
make: *** [enc.mk] Error 3


-----------------------------------------------------------------------------------

Once changed the "-O2" to "-Ofast -fno-finite-math-only" , issue disappeared. 


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

In This Thread