Build failure of ruby-2.0.0-p0.tar.gz under Mac OS X 10.8.3

I’m getting an abort trap (stack consistency error) compiling
ruby-2.0-p0.

FIRST QUESTION: is this the right place to report it? (And my sincere
apologies if not!!)

= Environment:

MacBook Pro
OS X 10.8.3
Xcode version 4.6.1 with command line tools
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build
2336.11.00)

= To replicate:

SANDBOX_PATH=/Users/me/dev
TARBALLS=${SANDBOX_PATH}/tarballs
INSTALL_DIR=${SANDBOX_PATH}/usr

RUBY_TARBALL=${TARBALLS}/ruby-2.0.0-p0.tar.gz
RUBY_SOURCES=${TARBALLS}/ruby-2.0.0-p0
RUBY_TARGET=${INSTALL_DIR}/bin/ruby
RUBY_DISTRO=http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gz

mkdir ${TARBALLS}
cd ${TARBALLS}
wget -O ${RUBY_TARBALL} ${RUBY-DISTRO}
tar xf ${RUBY_TARBALL}

cd ${RUBY_SOURCES}
./configure --prefix=${INSTALL_DIR} --enable-shared
–disable-install-doc --with-opt-dir=${INSTALL_DIR}
make

= Results

… lots of printout…
compiling ./enc/unicode.c
compiling ./enc/utf_8.c
compiling newline.c
compiling ./missing/setproctitle.c
compiling dmyext.c
linking miniruby
/Users/r/Desktop/Beryl/tarballs/ruby-2.0.0-p0/lib/fileutils.rb:111:
[BUG] Stack consistency error (sp: 38, bp: 36)
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.3.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:0006 p:0038 s:0038 e:000037 CLASS
/Users/r/Desktop/Beryl/tarballs/ruby-2.0.0-p0/lib/fileutils.rb:111
c:0005 p:0035 s:0034 e:000033 CLASS
/Users/r/Desktop/Beryl/tarballs/ruby-2.0.0-p0/lib/fileutils.rb:107
c:0004 p:0009 s:0032 e:000031 TOP
/Users/r/Desktop/Beryl/tarballs/ruby-2.0.0-p0/lib/fileutils.rb:85
[FINISH]
c:0003 p:---- s:0030 e:000029 CFUNC :require
c:0002 p:0098 s:0026 E:000608 EVAL ./tool/mkconfig.rb:11 [FINISH]
c:0001 p:0000 s:0002 E:001518 TOP [FINISH]

./tool/mkconfig.rb:11:in <main>' ./tool/mkconfig.rb:11:inrequire’
/Users/r/Desktop/Beryl/tarballs/ruby-2.0.0-p0/lib/fileutils.rb:85:in
<top (required)>' /Users/r/Desktop/Beryl/tarballs/ruby-2.0.0-p0/lib/fileutils.rb:107:inmodule:FileUtils
/Users/r/Desktop/Beryl/tarballs/ruby-2.0.0-p0/lib/fileutils.rb:111:in
`module:NoWrite

– C level backtrace information

0 miniruby 0x00000001056f0e64
rb_vm_bugreport + 164
1 miniruby 0x00000001055c817e report_bug +
302
2 miniruby 0x00000001055c8434 rb_bug + 180
3 miniruby 0x00000001056e6ee0 vm_exec_core

  • 32080
    4 miniruby 0x00000001056e70be vm_exec + 94
    5 miniruby 0x00000001056e7f9a rb_iseq_eval
  • 266
    6 miniruby 0x00000001055ccd92
    rb_load_internal + 306
    7 miniruby 0x00000001055ce4e1
    rb_require_safe + 1313
    8 miniruby 0x00000001056d6ca4 call_cfunc_1
  • 20
    9 miniruby 0x00000001056dd166 vm_call_cfunc
  • 1046
    10 miniruby 0x00000001056ebd20
    vm_call_method + 224
    11 miniruby 0x00000001056e23a3 vm_exec_core
  • 12819
    12 miniruby 0x00000001056e70be vm_exec + 94
    13 miniruby 0x00000001056e7e6e
    rb_iseq_eval_main + 206
    14 miniruby 0x00000001055cb4ff
    ruby_exec_internal + 111
    15 miniruby 0x00000001055cc4e2 ruby_run_node
  • 82
    16 miniruby 0x00000001055925ff main + 79
    17 libdyld.dylib 0x00007fff8896f7e1 start + 0
    18 ??? 0x0000000000000009 0x0 + 9

– Other runtime information

  • Loaded script: ./tool/mkconfig.rb

  • 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: *** [.rbconfig.time] Abort trap: 6
Beryl[~/Desktop/Beryl/tarballs/ruby-2.0.0-p0]$

= and the full crash report:

Process: miniruby [13458]
Path: /Users/USER/Desktop/*/miniruby
Identifier: miniruby
Version: 0
Code Type: X86-64 (Native)
Parent Process: make [12645]
User ID: 501

Date/Time: 2013-03-26 13:00:53.206 -0700
OS Version: Mac OS X 10.8.3 (12D78)
Report Version: 10

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff85c36212 __pthread_kill +
10
1 libsystem_c.dylib 0x00007fff819f3b54 pthread_kill + 90
2 libsystem_c.dylib 0x00007fff81a37dce abort + 143
3 miniruby 0x00000001055c8439 rb_bug + 185
4 miniruby 0x00000001056e6ee0 vm_exec_core +
32080 (insns.def:1539)
5 miniruby 0x00000001056e70be vm_exec + 94
(vm.c:1176)
6 miniruby 0x00000001056e7f9a rb_iseq_eval +
266 (vm.c:1411)
7 miniruby 0x00000001055ccd92 rb_load_internal

  • 306 (load.c:559)
    8 miniruby 0x00000001055ce4e1 rb_require_safe +
    1313 (load.c:917)
    9 miniruby 0x00000001056d6ca4 call_cfunc_1 + 20
    (vm_insnhelper.c:1304)
    10 miniruby 0x00000001056dd166 vm_call_cfunc +
    1046 (vm_insnhelper.c:1438)
    11 miniruby 0x00000001056ebd20 vm_call_method +
    224 (vm_insnhelper.c:1697)
    12 miniruby 0x00000001056e23a3 vm_exec_core +
    12819 (insns.def:1017)
    13 miniruby 0x00000001056e70be vm_exec + 94
    (vm.c:1176)
    14 miniruby 0x00000001056e7e6e rb_iseq_eval_main
  • 206 (vm.c:1424)
    15 miniruby 0x00000001055cb4ff
    ruby_exec_internal + 111 (eval.c:255)
    16 miniruby 0x00000001055cc4e2 ruby_run_node +
    82 (eval.c:315)
    17 miniruby 0x00000001055925ff main + 79
    (main.c:36)
    18 libdyld.dylib 0x00007fff8896f7e1 start + 1

Thread 1:
0 libsystem_kernel.dylib 0x00007fff85c36322 __select + 10
1 miniruby 0x00000001056f6228 thread_timer +
472 (thread_pthread.c:1240)
2 libsystem_c.dylib 0x00007fff819f27a2 _pthread_start +
327
3 libsystem_c.dylib 0x00007fff819df1e1 thread_start + 13

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx:
0x00007fff5a66d728 rdx: 0x0000000000000000
rdi: 0x0000000000000303 rsi: 0x0000000000000006 rbp:
0x00007fff5a66d750 rsp: 0x00007fff5a66d728
r8: 0x00007fff70ae0278 r9: 0x00007fff5a66d5d0 r10:
0x0000000020000000 r11: 0x0000000000000206
r12: 0x0000000000000008 r13: 0x0000000000000002 r14:
0x00007fff70ae1180 r15: 0x00007f8a59534650
rip: 0x00007fff85c36212 rfl: 0x0000000000000206 cr2:
0x00007fff70ad9ff0
Logical CPU: 0

Binary Images:
0x105591000 - 0x1057a4fff +miniruby (0)
<283E1439-5A72-398B-BD29-B86B0C1E636B> /Users/USER/Desktop/*/miniruby
0x7fff65191000 - 0x7fff651c593f dyld (210.2.3)
<6900F2BA-DB48-3B78-B668-58FC0CF6BCB8> /usr/lib/dyld
0x7fff8116b000 - 0x7fff8116dfff libquarantine.dylib (52)
<4BE2E642-A14F-340A-B482-5BD2AEFD9C24>
/usr/lib/system/libquarantine.dylib
0x7fff8152d000 - 0x7fff81533fff libmacho.dylib (829)
/usr/lib/system/libmacho.dylib
0x7fff818d4000 - 0x7fff818dcff7 libsystem_dnssd.dylib (379.37)
<616FC901-151E-38BF-B2C4-24A351C5FAAD>
/usr/lib/system/libsystem_dnssd.dylib
0x7fff819c4000 - 0x7fff819c5ff7 libremovefile.dylib (23.2)
<6763BC8E-18B8-3AD9-8FFA-B43713A7264F>
/usr/lib/system/libremovefile.dylib
0x7fff819de000 - 0x7fff81aaaff7 libsystem_c.dylib (825.26)
<4C9EB006-FE1F-3F8F-8074-DFD94CF2CE7B> /usr/lib/system/libsystem_c.dylib
0x7fff8499a000 - 0x7fff8499ffff libcache.dylib (57)
<65187C6E-3FBF-3EB8-A1AA-389445E2984D> /usr/lib/system/libcache.dylib
0x7fff84ced000 - 0x7fff84cfbfff libcommonCrypto.dylib (60027)

/usr/lib/system/libcommonCrypto.dylib
0x7fff850a5000 - 0x7fff851bd92f libobjc.A.dylib (532.2)
<90D31928-F48D-3E37-874F-220A51FD9E37> /usr/lib/libobjc.A.dylib
0x7fff85981000 - 0x7fff859e9ff7 libc++.1.dylib (65.1)
<20E31B90-19B9-3C2A-A9EB-474E08F9FE05> /usr/lib/libc++.1.dylib
0x7fff85ae8000 - 0x7fff85ae9ff7 libsystem_sandbox.dylib (220.2)
<6838A6FD-8626-3356-BB4F-BB4787216207>
/usr/lib/system/libsystem_sandbox.dylib
0x7fff85c24000 - 0x7fff85c3fff7 libsystem_kernel.dylib
(2050.22.13) <5A961E2A-CFB8-362B-BC43-122704AEB047>
/usr/lib/system/libsystem_kernel.dylib
0x7fff85c40000 - 0x7fff85c76fff libsystem_info.dylib (406.17)
<4FFCA242-7F04-365F-87A6-D4EFB89503C1>
/usr/lib/system/libsystem_info.dylib
0x7fff86d86000 - 0x7fff86dd2ff7 libauto.dylib (185.1)
<73CDC482-16E3-3FC7-9BB4-FBA2DA44DBC2> /usr/lib/libauto.dylib
0x7fff86fbc000 - 0x7fff86fdeff7 libxpc.dylib (140.42)
/usr/lib/system/libxpc.dylib
0x7fff8742c000 - 0x7fff8742dff7 libSystem.B.dylib (169.3)
/usr/lib/libSystem.B.dylib
0x7fff8743a000 - 0x7fff8744fff7 libdispatch.dylib (228.23)
/usr/lib/system/libdispatch.dylib
0x7fff874fc000 - 0x7fff8754bff7 libcorecrypto.dylib (106.2)

/usr/lib/system/libcorecrypto.dylib
0x7fff880a2000 - 0x7fff880a8ff7 libunwind.dylib (35.1)
<21703D36-2DAB-3D8B-8442-EAAB23C060D3> /usr/lib/system/libunwind.dylib
0x7fff886f9000 - 0x7fff8871eff7 libc++abi.dylib (26)
/usr/lib/libc++abi.dylib
0x7fff8871f000 - 0x7fff88727fff liblaunch.dylib (442.26.2)
<2F71CAF8-6524-329E-AC56-C506658B4C0C> /usr/lib/system/liblaunch.dylib
0x7fff888b0000 - 0x7fff888b7fff libcopyfile.dylib (89)
<876573D0-E907-3566-A108-577EAD1B6182> /usr/lib/system/libcopyfile.dylib
0x7fff8892f000 - 0x7fff8893dff7 libsystem_network.dylib (77.10)
<0D99F24E-56FE-380F-B81B-4A4C630EE587>
/usr/lib/system/libsystem_network.dylib
0x7fff8896d000 - 0x7fff88970ff7 libdyld.dylib (210.2.3)
/usr/lib/system/libdyld.dylib
0x7fff8b1fa000 - 0x7fff8b1fcff7 libunc.dylib (25)
<92805328-CD36-34FF-9436-571AB0485072> /usr/lib/system/libunc.dylib
0x7fff8b485000 - 0x7fff8b486ff7 libdnsinfo.dylib (453.19)
<14202FFB-C3CA-3FCC-94B0-14611BF8692D> /usr/lib/system/libdnsinfo.dylib
0x7fff8be8c000 - 0x7fff8be8cfff libkeymgr.dylib (25)
/usr/lib/system/libkeymgr.dylib
0x7fff8c1b9000 - 0x7fff8c1bafff libsystem_blocks.dylib (59)

/usr/lib/system/libsystem_blocks.dylib
0x7fff8d072000 - 0x7fff8d07dfff libsystem_notify.dylib (98.5)

/usr/lib/system/libsystem_notify.dylib
0x7fff8d503000 - 0x7fff8d508fff libcompiler_rt.dylib (30)
<08F8731D-5961-39F1-AD00-4590321D24A9>
/usr/lib/system/libcompiler_rt.dylib
0x7fff8d50e000 - 0x7fff8d53cff7 libsystem_m.dylib (3022.6)
/usr/lib/system/libsystem_m.dylib

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 20982
thread_create: 1
thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=59.2M resident=31.3M(53%)
swapped_out_or_unallocated=28.0M(47%)
Writable regions: Total=83.6M written=2424K(3%) resident=2508K(3%)
swapped_out=0K(0%) unallocated=81.1M(97%)

REGION TYPE VIRTUAL
=========== =======
MALLOC 19.2M
MALLOC guard page 16K
STACK GUARD 8K
Stack 64.0M
__DATA 756K
__LINKEDIT 52.7M
__TEXT 6692K
shared memory 12K
=========== =======
TOTAL 143.2M

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs