Issue #7264 has been updated by naruse (Yui NARUSE).

Status changed from Assigned to Third Party's Issue

The gcc-4.2 is llvm-gcc, use clang.
If rbenv forces to use llvm-gcc, this issue should be reported to rbenv.
----------------------------------------
Bug #7264: Error running miniruby: "vm_base_ptr: unreachable" on Mac OS X 10.7.4
https://bugs.ruby-lang.org/issues/7264#change-32358

Author: lambda (Brian Campbell)
Status: Third Party's Issue
Priority: Normal
Assignee: ko1 (Koichi Sasada)
Category: core
Target version: 2.0.0
ruby -v: 2.0.0-preview1


=begin
I tried installing ruby-2.0.0-preview1 using rbenv install on Mac OS X 10.7.4. It crashed in miniruby while generating encdb.h

	CC = gcc-4.2
	LD = ld
	LDSHARED = gcc-4.2 -dynamic -bundle
	CFLAGS = -O3 -fno-fast-math -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   -pipe 
	XCFLAGS = -include ruby/config.h -include ruby/missing.h -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT -fPIE
	CPPFLAGS = -I'/Users/lambda/.rbenv/versions/2.0.0-preview1/include'  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -I. -I.ext/include/x86_64-darwin11.4.0 -I./include -I.
	DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-u,_objc_msgSend  
	SOLIBS = 

...snip...

     linking miniruby
     generating encdb.h
     bp_check: 8, bp: 6
     <internal:prelude>:26: [BUG] vm_base_ptr: unreachable
     ruby 2.0.0dev (2012-11-01 trunk 37411) [x86_64-darwin11.4.0]
     
     -- Control frame information -----------------------------------------------
     c:0003 p:0031 s:0008 e:000007 CLASS  <internal:prelude>:26
     c:0002 p:0012 s:0004 e:000003 TOP    <internal:prelude>:17 [FINISH]
     c:0001 p:0000 s:0002 e:000438 TOP    [FINISH]
     
     <internal:prelude>:17:in `<compiled>'
     <internal:prelude>:26:in `<class:Thread>'
     
     bp_check: 8, bp: 6
     e information -------------------------------------------
     
     <internal:prelude>:26:  file under ~/Library/Logs/CrashReporter,
     /Library/Logs/CrashR[BUG] r, or /Library/Logs/DiagnosticReports, for
     the more detail of.
     
     m_base_ptr: unreachable-- Other runtime information ------------------------------------ Control frame information -----------------------------------------------
     * Loaded script: ./miniruby
     
     :0003 p:0031 d features:
     
     s:0008 numerator.so
     e[NOTE]
     YoCLASS 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>:26
     c:0002 p:0012 s:0004 e:000003 TOP    <internal:prelude>:17 [FINISH]
     c:0001 p:0000 s:0002 e:002208 TOP    [FINISH]
     
     <internal:prelude>:17:in `<compiled>'
     <internal:prelude>:26:in `<class:Thread>'
     
     -- C level backtrace information -------------------------------------------
     
     See Crash Report log file under ~/Library/Logs/CrashReporter,
     /Library/Logs/CrashReporter, or /Library/Logs/DiagnosticReports, for
     the more detail of.
     
     -- 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
    
=end


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