Bug #8017
closedGot segmentation fault on attempt to install ruby 2.0.0-p0 on Mac 10.6.8 via RVM
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 -D_FORTIFY_SOURCE=2 -fstack-protector -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -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/x86_64-darwin10.8.0 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,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 -install_name /Users/afilatau/.rvm/rubies/ruby-2.0.0-p0/lib/libruby.2.0.0.dylib -current_version 2.0.0 -compatibility_version 2.0.0 -fstack-protector -Wl,-u,_objc_msgSend -fstack-protector -Wl,-u,_objc_msgSend
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
Files
Updated by nobu (Nobuyoshi Nakada) over 11 years ago
- Status changed from Open to Feedback
What's the clang version?
Updated by adantel (Alex Filatau) over 11 years 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
Updated by defsprite (Christoph Sassenberg) over 11 years ago
- File miniruby_2013-03-08-131850_csassenberg.crash miniruby_2013-03-08-131850_csassenberg.crash added
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
Updated by nobu (Nobuyoshi Nakada) over 11 years ago
- Status changed from Feedback to Rejected
Immature ancient version.
Updated by chrisdb (Christopher de Bruin) over 11 years 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?
Updated by mkarklins (Magnuss Karklins) over 11 years 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
Updated by nobu (Nobuyoshi Nakada) over 11 years ago
- Status changed from Rejected to Third Party's Issue
Updated by knedlsepp (Josef Kemetmüller) over 6 years ago
FYI: I had the same problem and could fix it by setting the stacksize to unlimited ulimit -s unlimited
.