[#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:45033] [Backport93 - Backport #6432][Open] Segmentation fault after "linking miniruby"

From: "renton (renton renton)" <renton@...>
Date: 2012-05-14 11:00:44 UTC
List: ruby-core #45033
Issue #6432 has been reported by renton (renton renton).

----------------------------------------
Backport #6432: Segmentation fault after "linking miniruby"
https://bugs.ruby-lang.org/issues/6432

Author: renton (renton renton)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 


=begin
Hi.

It is impossible to compile ruby vers. 1.9. on one of my LAMP servers with the latest Gentoo.
Here how it looks like:

configure:
 ruby-1.9.3-p194 # ./configure
 ...
 .ext/include/x86_64-linux/ruby/config.h updated
 ruby library version = 1.9.1
 configure: creating ./config.status
 config.status: creating Makefile
 config.status: creating ruby-1.9.pc

make:
 ruby-1.9.3-p194 # make
 CC = gcc
 LD = ld
 LDSHARED = gcc -shared
 CFLAGS = -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration 
 XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
 CPPFLAGS =   -I. -I.ext/include/x86_64-linux -I./include -I.
 DLDFLAGS =  
 SOLIBS = 
 ...
 linking miniruby
 make: *** [.rbconfig.time] Segmentation fault

miniruby:
 ruby-1.9.3-p194 # ./miniruby 
 Segmentation fault

gdb:
 ruby-1.9.3-p194 # gdb ./miniruby core
 GNU gdb (Gentoo 7.3.1 p2) 7.3.1
 Copyright (C) 2011 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
 and "show warranty" for details.
 This GDB was configured as "x86_64-pc-linux-gnu".
 For bug reporting instructions, please see:
 <http://bugs.gentoo.org/>...
 Reading symbols from /home/renton/.nobackup/ruby-1.9.3-p194/miniruby...done.
 [New LWP 12025]
 [New LWP 12024]
 
 warning: Can't read pathname for load map: Input/output error.
 [Thread debugging using libthread_db enabled]
 Core was generated by `./miniruby -I./lib -I. -I.ext/common ./tool/mkconfig.rb -timestamp=.rbconfig.ti'.
 Program terminated with signal 11, Segmentation fault.
 #0  rb_threadptr_check_signal (mth=<optimized out>) at thread.c:3002
 3002        if (rb_signal_buff_size() > 0) {
 (gdb) bt fu 
 #0  rb_threadptr_check_signal (mth=<optimized out>) at thread.c:3002
 No locals.
 #1  timer_thread_function (arg=<optimized out>) at thread.c:3017
 No locals.
 #2  thread_timer (p=0x84c368) at thread_pthread.c:1137
 rfds = {fds_bits = {0 <repeats 915 times>, 140680284462666, 0, 140680286645392, 0, 140680269306768, 140680286645392, 
 140680286586408, 2822930839, 140680284464474, 0, 0, 23, 140680286645768, 8, 140680286645744, 140680269311632, 
 140680269334768, 0, 0, 0, 140680286587168, 140680286584832, 140680282226103, 140680269363952, 140680282218320, 21474836480, 
 4294968260, 0, 140680286652848, 140680286645824, 140680286587168, 140680286645864, 2822930839, 140680286651992, 
 140680284465474, 0, 140680286587168, 5, 0, 1, 140680286651992, 0, 0, 0, 0, 0, 140680286652848, 140680286645744, 
 140680286645768, 4294967296, 0, 0, 140680282226103, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 140680269334768, 140680286584832, 0, 
 4294967295, 0, 5, 2195536, 0, 140680286658560, 4096, 140680282210304, 140680284480065, 5, 0, 0, 140680269334768, 0, 
 140680286648064, 0, 140734315039184, 140680286648768, 140680284506213}}
 gvl = 0x84c368
 result = <optimized out>
 timeout = {tv_sec = 0, tv_usec = 140680286648064}
 #3  0x00007ff2ae3ffd0c in start_thread () from /lib64/libpthread.so.0
 No symbol table info available.
 #4  0x00007ff2ad88064d in clone () from /lib64/libc.so.6
 No symbol table info available.

gcc:
 Using built-in specs.
 COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3/gcc
 COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.3/lto-wrapper
 Target: x86_64-pc-linux-gnu
 Configured with: /var/tmp/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --disable-lto --enable-nls --without-included-gettext --with-system-zlib --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/python --enable-checking=release --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu -
 -enable-targets=all --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.5.3-r2 p1.2, pie-0.4.7'
 Thread model: posix
 gcc version 4.5.3 (Gentoo 4.5.3-r2 p1.2, pie-0.4.7)

/lib/libc.so.6
 GNU C Library stable release version 2.14.1, by Roland McGrath et al.
 Copyright (C) 2011 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.
 There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
 PARTICULAR PURPOSE.
 Compiled by GNU CC version 4.5.3.
 Compiled on a Linux 3.1.0 system on 2012-05-02.
 Available extensions:
 C stubs add-on version 2.1.2
 crypt add-on version 2.1 by Michael Glad and others
 Gentoo patchset 8
 GNU Libidn by Simon Josefsson
 Native POSIX Threads Library by Ulrich Drepper et al
 Support for some architectures added on, not maintained in glibc core.
 BIND-8.2.3-T5B
 libc ABIs: UNIQUE IFUNC
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/libc/bugs.html>.

=end



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

In This Thread

Prev Next