From: "renton (renton renton)" Date: 2012-05-14T20:00:44+09:00 Subject: [ruby-core:45033] [Backport93 - Backport #6432][Open] Segmentation fault after "linking miniruby" 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 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: ... 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=) at thread.c:3002 3002 if (rb_signal_buff_size() > 0) { (gdb) bt fu #0 rb_threadptr_check_signal (mth=) at thread.c:3002 No locals. #1 timer_thread_function (arg=) at thread.c:3017 No locals. #2 thread_timer (p=0x84c368) at thread_pthread.c:1137 rfds = {fds_bits = {0 , 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 = 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: . =end -- http://bugs.ruby-lang.org/