ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:71112] [Ruby trunk - Bug #11602] [Open] Compile error on CentOS: Segmentation fault after "linking miniruby"
       [not found] <redmine.issue-11602.20151019140915@ruby-lang.org>
@ 2015-10-19 14:09 ` kanonir
  2015-10-19 14:15 ` [ruby-core:71113] [Ruby trunk - Bug #11602] " nobu
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: kanonir @ 2015-10-19 14:09 UTC (permalink / raw)
  To: ruby-core

Issue #11602 has been reported by Ruben Ambarcumyanc.

----------------------------------------
Bug #11602: Compile error on CentOS: Segmentation fault after "linking miniruby"
https://bugs.ruby-lang.org/issues/11602

* Author: Ruben Ambarcumyanc
* Status: Open
* Priority: Normal
* Assignee: Motohiro KOSAKI
* ruby -v: 2.1.7
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Hi,
I can't to compile Ruby 2.1.7 on the one of our servers:

configure:
ruby-2.1.7 # ./configure
...
checking for nroff... /usr/bin/nroff
.ext/include/x86_64-linux/ruby/config.h updated
ruby library version = 2.1.0
configure: creating ./config.status
config.status: creating GNUmakefile
config.status: creating Makefile
config.status: creating ruby-2.1.pc

make:
ruby-2.1.7 #make
	CC = gcc
	LD = ld
	LDSHARED = gcc -shared
	CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -std=iso9899:1999 
	XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fvisibility=hidden -DRUBY_EXPORT -fPIE
	CPPFLAGS =   -I. -I.ext/include/x86_64-linux -I./include -I.
	DLDFLAGS = -fstack-protector -pie  
	SOLIBS = 
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-55)
compiling main.c
...
compiling addr2line.c
compiling dmyext.c
linking miniruby
make: *** [.rbconfig.time] Segmentation fault (core dumped)

Server OS: CentOS 5.11 x86_64
Core dump and config.log were attached.

Ruby 2.1.6 compiled successfully at the same server.

---Files--------------------------------
core.30886 (532 KB)
config.log (864 KB)


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [ruby-core:71113] [Ruby trunk - Bug #11602] Compile error on CentOS: Segmentation fault after "linking miniruby"
       [not found] <redmine.issue-11602.20151019140915@ruby-lang.org>
  2015-10-19 14:09 ` [ruby-core:71112] [Ruby trunk - Bug #11602] [Open] Compile error on CentOS: Segmentation fault after "linking miniruby" kanonir
@ 2015-10-19 14:15 ` nobu
  2015-10-20 10:27 ` [ruby-core:71123] " kanonir
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: nobu @ 2015-10-19 14:15 UTC (permalink / raw)
  To: ruby-core

Issue #11602 has been updated by Nobuyoshi Nakada.


Can't you show gdb backtrace?

----------------------------------------
Bug #11602: Compile error on CentOS: Segmentation fault after "linking miniruby"
https://bugs.ruby-lang.org/issues/11602#change-54483

* Author: Ruben Ambarcumyanc
* Status: Open
* Priority: Normal
* Assignee: Motohiro KOSAKI
* ruby -v: 2.1.7
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Hi,
I can't to compile Ruby 2.1.7 on the one of our servers:

configure:
ruby-2.1.7 # ./configure
...
checking for nroff... /usr/bin/nroff
.ext/include/x86_64-linux/ruby/config.h updated
ruby library version = 2.1.0
configure: creating ./config.status
config.status: creating GNUmakefile
config.status: creating Makefile
config.status: creating ruby-2.1.pc

make:
ruby-2.1.7 #make
	CC = gcc
	LD = ld
	LDSHARED = gcc -shared
	CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -std=iso9899:1999 
	XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fvisibility=hidden -DRUBY_EXPORT -fPIE
	CPPFLAGS =   -I. -I.ext/include/x86_64-linux -I./include -I.
	DLDFLAGS = -fstack-protector -pie  
	SOLIBS = 
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-55)
compiling main.c
...
compiling addr2line.c
compiling dmyext.c
linking miniruby
make: *** [.rbconfig.time] Segmentation fault (core dumped)

Server OS: CentOS 5.11 x86_64
Core dump and config.log were attached.

Ruby 2.1.6 compiled successfully at the same server.

---Files--------------------------------
core.30886 (532 KB)
config.log (864 KB)


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [ruby-core:71123] [Ruby trunk - Bug #11602] Compile error on CentOS: Segmentation fault after "linking miniruby"
       [not found] <redmine.issue-11602.20151019140915@ruby-lang.org>
  2015-10-19 14:09 ` [ruby-core:71112] [Ruby trunk - Bug #11602] [Open] Compile error on CentOS: Segmentation fault after "linking miniruby" kanonir
  2015-10-19 14:15 ` [ruby-core:71113] [Ruby trunk - Bug #11602] " nobu
@ 2015-10-20 10:27 ` kanonir
  2015-10-20 10:41 ` [ruby-core:71124] " kanonir
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: kanonir @ 2015-10-20 10:27 UTC (permalink / raw)
  To: ruby-core

Issue #11602 has been updated by Ruben Ambarcumyanc.


(gdb) backtrace
#0  0x00002b3705f71947 in ?? ()
(gdb)

----------------------------------------
Bug #11602: Compile error on CentOS: Segmentation fault after "linking miniruby"
https://bugs.ruby-lang.org/issues/11602#change-54492

* Author: Ruben Ambarcumyanc
* Status: Open
* Priority: Normal
* Assignee: Motohiro KOSAKI
* ruby -v: 2.1.7
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Hi,
I can't to compile Ruby 2.1.7 on the one of our servers:

configure:
ruby-2.1.7 # ./configure
...
checking for nroff... /usr/bin/nroff
.ext/include/x86_64-linux/ruby/config.h updated
ruby library version = 2.1.0
configure: creating ./config.status
config.status: creating GNUmakefile
config.status: creating Makefile
config.status: creating ruby-2.1.pc

make:
ruby-2.1.7 #make
	CC = gcc
	LD = ld
	LDSHARED = gcc -shared
	CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -std=iso9899:1999 
	XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fvisibility=hidden -DRUBY_EXPORT -fPIE
	CPPFLAGS =   -I. -I.ext/include/x86_64-linux -I./include -I.
	DLDFLAGS = -fstack-protector -pie  
	SOLIBS = 
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-55)
compiling main.c
...
compiling addr2line.c
compiling dmyext.c
linking miniruby
make: *** [.rbconfig.time] Segmentation fault (core dumped)

Server OS: CentOS 5.11 x86_64
Core dump and config.log were attached.

Ruby 2.1.6 compiled successfully at the same server.

---Files--------------------------------
core.30886 (532 KB)
config.log (864 KB)


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [ruby-core:71124] [Ruby trunk - Bug #11602] Compile error on CentOS: Segmentation fault after "linking miniruby"
       [not found] <redmine.issue-11602.20151019140915@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2015-10-20 10:27 ` [ruby-core:71123] " kanonir
@ 2015-10-20 10:41 ` kanonir
  2015-10-20 12:42 ` [ruby-core:71125] " kanonir
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: kanonir @ 2015-10-20 10:41 UTC (permalink / raw)
  To: ruby-core

Issue #11602 has been updated by Ruben Ambarcumyanc.


# gdb miniruby core.17835
GNU gdb (GDB) CentOS (7.0.1-45.el5.centos)
Copyright (C) 2009 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-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/src/ruby-2.1.7/miniruby...done.
[New Thread 17835]
Reading symbols from /lib64/libpthread.so.0...Reading symbols from /usr/lib/debug/lib64/libpthread-2.5.so.debug...done.
[Thread debugging using libthread_db enabled]
done.
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /lib64/librt.so.1...Reading symbols from /usr/lib/debug/lib64/librt-2.5.so.debug...done.
done.
Loaded symbols for /lib64/librt.so.1
Reading symbols from /lib64/libdl.so.2...Reading symbols from /usr/lib/debug/lib64/libdl-2.5.so.debug...done.
done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /lib64/libcrypt.so.1...Reading symbols from /usr/lib/debug/lib64/libcrypt-2.5.so.debug...done.
done.
Loaded symbols for /lib64/libcrypt.so.1
Reading symbols from /lib64/libm.so.6...Reading symbols from /usr/lib/debug/lib64/libm-2.5.so.debug...done.
done.
Loaded symbols for /lib64/libm.so.6
Reading symbols from /lib64/libc.so.6...Reading symbols from /usr/lib/debug/lib64/libc-2.5.so.debug...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib64/ld-2.5.so.debug...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2

warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff455fd000
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  0x00002b739984f0bb in reserve_stack (limit=0x7fff44a7b0c0 <Address 0x7fff44a7b0c0 out of bounds>, size=10481408) at thread_pthread.c:685
685		    limit[0] = 0;
warning: not using untrusted file "/usr/src/ruby-2.1.7/.gdbinit"
(gdb) 

----------------------------------------
Bug #11602: Compile error on CentOS: Segmentation fault after "linking miniruby"
https://bugs.ruby-lang.org/issues/11602#change-54493

* Author: Ruben Ambarcumyanc
* Status: Open
* Priority: Normal
* Assignee: Motohiro KOSAKI
* ruby -v: 2.1.7
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Hi,
I can't to compile Ruby 2.1.7 on the one of our servers:

configure:
ruby-2.1.7 # ./configure
...
checking for nroff... /usr/bin/nroff
.ext/include/x86_64-linux/ruby/config.h updated
ruby library version = 2.1.0
configure: creating ./config.status
config.status: creating GNUmakefile
config.status: creating Makefile
config.status: creating ruby-2.1.pc

make:
ruby-2.1.7 #make
	CC = gcc
	LD = ld
	LDSHARED = gcc -shared
	CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -std=iso9899:1999 
	XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fvisibility=hidden -DRUBY_EXPORT -fPIE
	CPPFLAGS =   -I. -I.ext/include/x86_64-linux -I./include -I.
	DLDFLAGS = -fstack-protector -pie  
	SOLIBS = 
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-55)
compiling main.c
...
compiling addr2line.c
compiling dmyext.c
linking miniruby
make: *** [.rbconfig.time] Segmentation fault (core dumped)

Server OS: CentOS 5.11 x86_64
Core dump and config.log were attached.

Ruby 2.1.6 compiled successfully at the same server.

---Files--------------------------------
core.30886 (532 KB)
config.log (864 KB)


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [ruby-core:71125] [Ruby trunk - Bug #11602] Compile error on CentOS: Segmentation fault after "linking miniruby"
       [not found] <redmine.issue-11602.20151019140915@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2015-10-20 10:41 ` [ruby-core:71124] " kanonir
@ 2015-10-20 12:42 ` kanonir
  2015-11-19 13:39 ` [ruby-core:71587] " yuri
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: kanonir @ 2015-10-20 12:42 UTC (permalink / raw)
  To: ruby-core

Issue #11602 has been updated by Ruben Ambarcumyanc.


Some additional information. Version 2.2.3 didn't compiled with the same error message. But Ruby from stable snapshot (https://ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz) compiled successfully:

stable-snapshot# make
...
Parsing sources...
100% [967/967]  vsnprintf.c                                                

Generating RI format into /usr/src/stable-snapshot/.ext/rdoc...

  Files:        967

  Classes:     1411 ( 581 undocumented)
  Modules:      280 ( 108 undocumented)
  Constants:   2160 ( 594 undocumented)
  Attributes:  1156 ( 255 undocumented)
  Methods:    10488 (2187 undocumented)

  Total:      15495 (3725 undocumented)
   75.96% documented

  Elapsed: 64.9s

stable-snapshot# ./ruby -v
ruby 2.2.4p180 (2015-10-06 revision 52046) [x86_64-linux]

----------------------------------------
Bug #11602: Compile error on CentOS: Segmentation fault after "linking miniruby"
https://bugs.ruby-lang.org/issues/11602#change-54494

* Author: Ruben Ambarcumyanc
* Status: Open
* Priority: Normal
* Assignee: Motohiro KOSAKI
* ruby -v: 2.1.7
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Hi,
I can't to compile Ruby 2.1.7 on the one of our servers:

configure:
ruby-2.1.7 # ./configure
...
checking for nroff... /usr/bin/nroff
.ext/include/x86_64-linux/ruby/config.h updated
ruby library version = 2.1.0
configure: creating ./config.status
config.status: creating GNUmakefile
config.status: creating Makefile
config.status: creating ruby-2.1.pc

make:
ruby-2.1.7 #make
	CC = gcc
	LD = ld
	LDSHARED = gcc -shared
	CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -std=iso9899:1999 
	XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fvisibility=hidden -DRUBY_EXPORT -fPIE
	CPPFLAGS =   -I. -I.ext/include/x86_64-linux -I./include -I.
	DLDFLAGS = -fstack-protector -pie  
	SOLIBS = 
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-55)
compiling main.c
...
compiling addr2line.c
compiling dmyext.c
linking miniruby
make: *** [.rbconfig.time] Segmentation fault (core dumped)

Server OS: CentOS 5.11 x86_64
Core dump and config.log were attached.

Ruby 2.1.6 compiled successfully at the same server.

---Files--------------------------------
core.30886 (532 KB)
config.log (864 KB)


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [ruby-core:71587] [Ruby trunk - Bug #11602] Compile error on CentOS: Segmentation fault after "linking miniruby"
       [not found] <redmine.issue-11602.20151019140915@ruby-lang.org>
                   ` (4 preceding siblings ...)
  2015-10-20 12:42 ` [ruby-core:71125] " kanonir
@ 2015-11-19 13:39 ` yuri
  2015-11-21 22:22 ` [ruby-core:71626] " robb
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: yuri @ 2015-11-19 13:39 UTC (permalink / raw)
  To: ruby-core

Issue #11602 has been updated by Y A.


This is **always** reproducible on centos 5.x latest, running XEN kernel domU. No issues on regular centos 5.x (KVM or not). 

Exact same stack trace.

Anybody care to fix this? 

----------------------------------------
Bug #11602: Compile error on CentOS: Segmentation fault after "linking miniruby"
https://bugs.ruby-lang.org/issues/11602#change-54970

* Author: Ruben Ambarcumyanc
* Status: Open
* Priority: Normal
* Assignee: Motohiro KOSAKI
* ruby -v: 2.1.7
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Hi,
I can't to compile Ruby 2.1.7 on the one of our servers:

configure:
ruby-2.1.7 # ./configure
...
checking for nroff... /usr/bin/nroff
.ext/include/x86_64-linux/ruby/config.h updated
ruby library version = 2.1.0
configure: creating ./config.status
config.status: creating GNUmakefile
config.status: creating Makefile
config.status: creating ruby-2.1.pc

make:
ruby-2.1.7 #make
	CC = gcc
	LD = ld
	LDSHARED = gcc -shared
	CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -std=iso9899:1999 
	XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fvisibility=hidden -DRUBY_EXPORT -fPIE
	CPPFLAGS =   -I. -I.ext/include/x86_64-linux -I./include -I.
	DLDFLAGS = -fstack-protector -pie  
	SOLIBS = 
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-55)
compiling main.c
...
compiling addr2line.c
compiling dmyext.c
linking miniruby
make: *** [.rbconfig.time] Segmentation fault (core dumped)

Server OS: CentOS 5.11 x86_64
Core dump and config.log were attached.

Ruby 2.1.6 compiled successfully at the same server.

---Files--------------------------------
core.30886 (532 KB)
config.log (864 KB)


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [ruby-core:71626] [Ruby trunk - Bug #11602] Compile error on CentOS: Segmentation fault after "linking miniruby"
       [not found] <redmine.issue-11602.20151019140915@ruby-lang.org>
                   ` (5 preceding siblings ...)
  2015-11-19 13:39 ` [ruby-core:71587] " yuri
@ 2015-11-21 22:22 ` robb
  2015-11-25 13:06 ` [ruby-core:71684] " kanonir
  2019-01-19 10:37 ` [ruby-core:91177] [Ruby trunk Bug#11602] " hsbt
  8 siblings, 0 replies; 9+ messages in thread
From: robb @ 2015-11-21 22:22 UTC (permalink / raw)
  To: ruby-core

Issue #11602 has been updated by Robb Kidd.


Ruben Ambarcumyanc wrote:
> Some additional information. Version 2.2.3 didn't compiled with the same error message. But Ruby from the stable snapshot (https://ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz) compiled successfully:
> 
> stable-snapshot# make
> ...
> stable-snapshot# ./ruby -v
> ruby 2.2.4p180 (2015-10-06 revision 52046) [x86_64-linux]

The fix in r51626 for Bug #11457 applied directly to my working copy of 2.2.3 fixed the segfault on the CentOS 5 node I'd seen the error on in my environment. 

----------------------------------------
Bug #11602: Compile error on CentOS: Segmentation fault after "linking miniruby"
https://bugs.ruby-lang.org/issues/11602#change-55027

* Author: Ruben Ambarcumyanc
* Status: Open
* Priority: Normal
* Assignee: Motohiro KOSAKI
* ruby -v: 2.1.7
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Hi,
I can't to compile Ruby 2.1.7 on the one of our servers:

configure:
ruby-2.1.7 # ./configure
...
checking for nroff... /usr/bin/nroff
.ext/include/x86_64-linux/ruby/config.h updated
ruby library version = 2.1.0
configure: creating ./config.status
config.status: creating GNUmakefile
config.status: creating Makefile
config.status: creating ruby-2.1.pc

make:
ruby-2.1.7 #make
	CC = gcc
	LD = ld
	LDSHARED = gcc -shared
	CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -std=iso9899:1999 
	XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fvisibility=hidden -DRUBY_EXPORT -fPIE
	CPPFLAGS =   -I. -I.ext/include/x86_64-linux -I./include -I.
	DLDFLAGS = -fstack-protector -pie  
	SOLIBS = 
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-55)
compiling main.c
...
compiling addr2line.c
compiling dmyext.c
linking miniruby
make: *** [.rbconfig.time] Segmentation fault (core dumped)

Server OS: CentOS 5.11 x86_64
Core dump and config.log were attached.

Ruby 2.1.6 compiled successfully at the same server.

---Files--------------------------------
core.30886 (532 KB)
config.log (864 KB)


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [ruby-core:71684] [Ruby trunk - Bug #11602] Compile error on CentOS: Segmentation fault after "linking miniruby"
       [not found] <redmine.issue-11602.20151019140915@ruby-lang.org>
                   ` (6 preceding siblings ...)
  2015-11-21 22:22 ` [ruby-core:71626] " robb
@ 2015-11-25 13:06 ` kanonir
  2019-01-19 10:37 ` [ruby-core:91177] [Ruby trunk Bug#11602] " hsbt
  8 siblings, 0 replies; 9+ messages in thread
From: kanonir @ 2015-11-25 13:06 UTC (permalink / raw)
  To: ruby-core

Issue #11602 has been updated by Ruben Ambarcumyanc.


Robb Kidd wrote:
> The fix in r51626 for Bug #11457 applied directly to my working copy of 2.2.3 fixed the segfault on the CentOS 5 node I'd seen the error on in my environment.
> 
> UPDATE: And fixes the segfault when applied directly to a checkout of 2.1.7.
> 
> UPDATE2: After reviewing the history and a few test compiles of earlier versions, problem appeared with the solution to #11030. 2.1.7 and 2.2.3 are the affected release versions.

Thanks for your reply. This solution is works for me and I'm able to compile ruby 2.1.7 on the my CentOS 5 server.

----------------------------------------
Bug #11602: Compile error on CentOS: Segmentation fault after "linking miniruby"
https://bugs.ruby-lang.org/issues/11602#change-55087

* Author: Ruben Ambarcumyanc
* Status: Open
* Priority: Normal
* Assignee: Motohiro KOSAKI
* ruby -v: 2.1.7
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Hi,
I can't to compile Ruby 2.1.7 on the one of our servers:

configure:
ruby-2.1.7 # ./configure
...
checking for nroff... /usr/bin/nroff
.ext/include/x86_64-linux/ruby/config.h updated
ruby library version = 2.1.0
configure: creating ./config.status
config.status: creating GNUmakefile
config.status: creating Makefile
config.status: creating ruby-2.1.pc

make:
ruby-2.1.7 #make
	CC = gcc
	LD = ld
	LDSHARED = gcc -shared
	CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -std=iso9899:1999 
	XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fvisibility=hidden -DRUBY_EXPORT -fPIE
	CPPFLAGS =   -I. -I.ext/include/x86_64-linux -I./include -I.
	DLDFLAGS = -fstack-protector -pie  
	SOLIBS = 
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-55)
compiling main.c
...
compiling addr2line.c
compiling dmyext.c
linking miniruby
make: *** [.rbconfig.time] Segmentation fault (core dumped)

Server OS: CentOS 5.11 x86_64
Core dump and config.log were attached.

Ruby 2.1.6 compiled successfully at the same server.

---Files--------------------------------
core.30886 (532 KB)
config.log (864 KB)


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [ruby-core:91177] [Ruby trunk Bug#11602] Compile error on CentOS: Segmentation fault after "linking miniruby"
       [not found] <redmine.issue-11602.20151019140915@ruby-lang.org>
                   ` (7 preceding siblings ...)
  2015-11-25 13:06 ` [ruby-core:71684] " kanonir
@ 2019-01-19 10:37 ` hsbt
  8 siblings, 0 replies; 9+ messages in thread
From: hsbt @ 2019-01-19 10:37 UTC (permalink / raw)
  To: ruby-core

Issue #11602 has been updated by hsbt (Hiroshi SHIBATA).

Status changed from Open to Rejected

CentOS 5 and Ruby 2.1 are EOL.

----------------------------------------
Bug #11602: Compile error on CentOS: Segmentation fault after "linking miniruby"
https://bugs.ruby-lang.org/issues/11602#change-76408

* Author: Ruben_r (Ruben Ambarcumyanc)
* Status: Rejected
* Priority: Normal
* Assignee: kosaki (Motohiro KOSAKI)
* Target version: 
* ruby -v: 2.1.7
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Hi,
I can't to compile Ruby 2.1.7 on the one of our servers:

configure:
ruby-2.1.7 # ./configure
...
checking for nroff... /usr/bin/nroff
.ext/include/x86_64-linux/ruby/config.h updated
ruby library version = 2.1.0
configure: creating ./config.status
config.status: creating GNUmakefile
config.status: creating Makefile
config.status: creating ruby-2.1.pc

make:
ruby-2.1.7 #make
	CC = gcc
	LD = ld
	LDSHARED = gcc -shared
	CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -std=iso9899:1999 
	XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fvisibility=hidden -DRUBY_EXPORT -fPIE
	CPPFLAGS =   -I. -I.ext/include/x86_64-linux -I./include -I.
	DLDFLAGS = -fstack-protector -pie  
	SOLIBS = 
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-55)
compiling main.c
...
compiling addr2line.c
compiling dmyext.c
linking miniruby
make: *** [.rbconfig.time] Segmentation fault (core dumped)

Server OS: CentOS 5.11 x86_64
Core dump and config.log were attached.

Ruby 2.1.6 compiled successfully at the same server.

---Files--------------------------------
core.30886 (532 KB)
config.log (864 KB)


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-01-19 10:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-11602.20151019140915@ruby-lang.org>
2015-10-19 14:09 ` [ruby-core:71112] [Ruby trunk - Bug #11602] [Open] Compile error on CentOS: Segmentation fault after "linking miniruby" kanonir
2015-10-19 14:15 ` [ruby-core:71113] [Ruby trunk - Bug #11602] " nobu
2015-10-20 10:27 ` [ruby-core:71123] " kanonir
2015-10-20 10:41 ` [ruby-core:71124] " kanonir
2015-10-20 12:42 ` [ruby-core:71125] " kanonir
2015-11-19 13:39 ` [ruby-core:71587] " yuri
2015-11-21 22:22 ` [ruby-core:71626] " robb
2015-11-25 13:06 ` [ruby-core:71684] " kanonir
2019-01-19 10:37 ` [ruby-core:91177] [Ruby trunk Bug#11602] " hsbt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).