Bug #8017

Got segmentation fault on attempt to install ruby 2.0.0-p0 on Mac 10.6.8 via RVM

Added by Alex Filatau about 1 year ago. Updated about 1 year ago.

[ruby-core:53137]
Status:Third Party's Issue
Priority:Normal
Assignee:-
Category:-
Target version:-
ruby -v:2.0.0-p0 Backport:

Description

Mac OS 10.6.8
rvm rvm 1.18.15 (master)

$ sudo rvm install 2.0.0
Password:
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.6/i386/ruby-2.0.0-p0.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for osx/10.6/i386, might require sudo password
Skipping brew update make sure your formulas are up to date.
Doing /usr/local/etc/openssl
cert.pem => 77ee3751.0
Installing Ruby from source to: /Users/afilatau/.rvm/rubies/ruby-2.0.0-p0, this may take a while depending on your cpu(s)...
ruby-2.0.0-p0 - #downloading ruby-2.0.0-p0, this may take a while depending on your connection...
ruby-2.0.0-p0 - #extracted to /Users/afilatau/.rvm/src/ruby-2.0.0-p0 (already extracted)
ruby-2.0.0-p0 - #configuring.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
ruby-2.0.0-p0 - #compiling.............................................................................
Error running 'make -j2',
please read /Users/afilatau/.rvm/log/ruby-2.0.0-p0/make.log
There has been an error while running make. Halting the installation.

Here is the content of make.log:

[2013-03-04 21:34:50] make
CC = clang
LD = ld
LDSHARED = clang -dynamiclib
CFLAGS = -O3 -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -fno-common -pipe
XCFLAGS = -include ruby/config.h -include ruby/missing.h -DFORTIFYSOURCE=2 -fstack-protector -fvisibility=hidden -DRUBYEXPORT
CPPFLAGS = -D
XOPENSOURCE -DDARWINCSOURCE -DDARWINUNLIMITEDSELECT -DREENTRANT -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libxml2/include -I/usr/local/opt/libxslt/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I. -I.ext/include/x8664-darwin10.8.0 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamic
lookup -Wl,-multiplydefined,suppress -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -installname /Users/afilatau/.rvm/rubies/ruby-2.0.0-p0/lib/libruby.2.0.0.dylib -currentversion 2.0.0 -compatibilityversion 2.0.0 -fstack-protector -Wl,-u,objcmsgSend -fstack-protector -Wl,-u,objcmsgSend

SOLIBS =
linking miniruby
generating encdb.h
internal:prelude:1: [BUG] Segmentation fault
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin10.8.0]

-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
the more detail of.

-- Control frame information -----------------------------------------------
c:0002 p:0002 s:0004 e:000003 TOP internal:prelude:1 [FINISH]
c:0001 p:0000 s:0002 E:0022b8 TOP [FINISH]

internal:prelude:1:in `'

-- C level backtrace information -------------------------------------------

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

  • Loaded script: ./miniruby

  • Loaded features:

    0 enumerator.so

[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

internal:prelude:1: [BUG] Segmentation fault
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin10.8.0]

-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
the more detail of.

-- Control frame information -----------------------------------------------
c:0002 p:0002 s:0004 e:000003 TOP internal:prelude:1 [FINISH]
c:0001 p:0000 s:0002 E:0022b8 TOP [FINISH]

internal:prelude:1:in `'

-- C level backtrace information -------------------------------------------

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

  • Loaded script: ./miniruby

  • Loaded features:

    0 enumerator.so

[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

make: *** [encdb.h] Abort trap
make: *** Waiting for unfinished jobs....
make: *** [.rbconfig.time] Abort trap

Please find attached crash file from /Library/Logs/CrashReporter

miniruby_2013-03-04-213451-1_localhost.crash - crash file (3.48 KB) Alex Filatau, 03/05/2013 02:52 PM

miniruby_2013-03-08-131850_csassenberg.crash (3.5 KB) Christoph Sassenberg, 03/08/2013 10:21 PM


Related issues

Duplicated by ruby-trunk - Bug #8134: Compilation failure for 2.0.0 on 10.6.8 Third Party's Issue 03/21/2013

History

#1 Updated by Nobuyoshi Nakada about 1 year ago

  • Status changed from Open to Feedback

What's the clang version?

#2 Updated by Alex Filatau about 1 year ago

nobu (Nobuyoshi Nakada) wrote:

What's the clang version?

$ clang -v
Apple clang version 1.6 (tags/Apple/clang-70)
Target: x86_64-apple-darwin10
Thread model: posix

#3 Updated by Christoph Sassenberg about 1 year ago

experiencing the same issue.

clang -v
Apple clang version 1.7 (tags/Apple/clang-77) (based on LLVM 2.9svn)
Target: x86_64-apple-darwin10
Thread model: posix

#4 Updated by Nobuyoshi Nakada about 1 year ago

  • Status changed from Feedback to Rejected

Immature ancient version.

#5 Updated by Christopher de Bruin about 1 year ago

nobu (Nobuyoshi Nakada) wrote:

Immature ancient version.

I have the same issue with a newer version:

clang -v
Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix

so, what is the minimum required version?

#6 Updated by Magnuss Karklins about 1 year ago

Same issue, same clang version as chrisdb.

edit: Scratch that, got the latest command line tools, woks flawlessly.

Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.2.1
Thread model: posix

#7 Updated by Nobuyoshi Nakada about 1 year ago

  • Status changed from Rejected to Third Party's Issue

Also available in: Atom PDF