Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault when starting rubyfmt #200

Closed
wadetandy opened this issue Jun 3, 2020 · 12 comments
Closed

Segfault when starting rubyfmt #200

wadetandy opened this issue Jun 3, 2020 · 12 comments

Comments

@wadetandy
Copy link
Contributor

  • Ruby version: 2.5.5, 2.6.0, 2.6.3, 2.7.0
  • Rubyfmt git sha: dd30aed

Input file

Breaks on any input file (or just running rubyfmt.rb with no arguments)

Issue

Breaks when loading up the native shared object build (debug or release) at the top of rubyfmt.rb. I have successfully built and run this same sha on the same version of ruby on a different machine. Rubyfmt was built after freshly installing rust/cargo and clean installing ruby (via rvm).

I will keep investigating this on my end, as I'm sure there's something weird going on with my machine, but wanted to capture this in case A) you'd seen it before and have any tips, or B) anyone else stumbles across this issue in the future, by which time I will hopefully have found the problem.

Rubyfmt's output

$ /Users/wadetandy/.rvm/rubies/ruby-2.6.3/bin/ruby --disable=all ~/rubyfmt/rubyfmt.rb 
/Users/wadetandy/rubyfmt/target/rubyfmt_release.bundle: [BUG] Segmentation fault at 0x0000000000000000
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18]

-- Crash Report log information --------------------------------------------
   See Crash Report log file under the one of following:                    
     * ~/Library/Logs/DiagnosticReports                                     
     * /Library/Logs/DiagnosticReports                                      
   for more details.                                                        
Don't forget to include the above Crash Report log file in bug reports.     

-- Control frame information -----------------------------------------------
c:0004 p:-17581048873554 s:0017 e:000016 TOP    [FINISH]
c:0003 p:---- s:0014 e:000013 CFUNC  :require_relative
c:0002 p:0019 s:0009 E:002018 EVAL   /Users/wadetandy/rubyfmt/rubyfmt.rb:2 [FINISH]
c:0001 p:0000 s:0003 E:001b50 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
/Users/wadetandy/rubyfmt/rubyfmt.rb:2:in `<main>'
/Users/wadetandy/rubyfmt/rubyfmt.rb:2:in `require_relative'

-- Machine register context ------------------------------------------------
 rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x0000000000000018
 rdx: 0x0000000100ac6960 rdi: 0x0000000100ac6790 rsi: 0x0000000100ac68f8
 rbp: 0x00007ffeef94bfb0 rsp: 0x00007ffeef94bd80  r8: 0x0000000100ac68c8
  r9: 0x0000000100ac68d8 r10: 0x00007feb41438950 r11: 0x0000000100ac67b8
 r12: 0x0000000100ac67b8 r13: 0x0000000101400980 r14: 0x00007ffeef94bd80
 r15: 0xffff8014bebc76b0 rip: 0x00000001008b7b4d rfl: 0x0000000000010206

-- C level backtrace information -------------------------------------------
/Users/wadetandy/.rvm/rubies/ruby-2.6.3/lib/libruby.2.6.dylib(rb_vm_bugreport+0x82) [0x1004fc182]
/Users/wadetandy/.rvm/rubies/ruby-2.6.3/lib/libruby.2.6.dylib(rb_bug_context+0x1d3) [0x1003481f3]
/Users/wadetandy/.rvm/rubies/ruby-2.6.3/lib/libruby.2.6.dylib(sigsegv+0x51) [0x100460591]
/usr/lib/system/libsystem_platform.dylib(_sigtramp+0x1d) [0x7fff7245a5fd]
/Users/wadetandy/rubyfmt/target/rubyfmt_release.bundle(_rjem_je_tcache_bin_flush_small+0x2ad) [0x1008b7b4d]
/Users/wadetandy/rubyfmt/target/rubyfmt_release.bundle(tcache_flush_cache+0x22) [0x1008b99d2]
/Users/wadetandy/rubyfmt/target/rubyfmt_release.bundle(tcache_destroy+0x21) [0x1008b9df1]
/Users/wadetandy/rubyfmt/target/rubyfmt_release.bundle(_rjem_je_tsd_cleanup+0x41) [0x1008bb0d1]
/Users/wadetandy/rubyfmt/target/rubyfmt_release.bundle(_rjem_je_malloc_tsd_boot1+0x36) [0x1008bb426]
/Users/wadetandy/rubyfmt/target/rubyfmt_release.bundle(jemalloc_constructor+0x296) [0x100882676]

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

* Loaded script: /Users/wadetandy/rubyfmt/rubyfmt.rb

* Loaded features:

    0 enumerator.so
    1 thread.rb
    2 rational.so
    3 complex.so
    4 /Users/wadetandy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/x86_64-darwin18/enc/encdb.bundle
    5 /Users/wadetandy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/x86_64-darwin18/enc/trans/transdb.bundle

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: https://www.ruby-lang.org/bugreport.html

[IMPORTANT]
Don't forget to include the Crash Report log file under
DiagnosticReports directory in bug reports.

Abort trap: 6
23:07:57 wadetandy@wades-mbp:~/rubyfmt (git:master:dd30aed) 
$ vim /Users/wadetandy/.bashrc.d/personal 
23:08:42 wadetandy@wades-mbp:~/rubyfmt (git:master:dd30aed) 
$ rubyfmt rubyfmt.rb 
/Users/wadetandy/rubyfmt/target/rubyfmt_release.bundle: [BUG] Segmentation fault at 0x0000000000000000
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18]

-- Crash Report log information --------------------------------------------
   See Crash Report log file under the one of following:                    
     * ~/Library/Logs/DiagnosticReports                                     
     * /Library/Logs/DiagnosticReports                                      
   for more details.                                                        
Don't forget to include the above Crash Report log file in bug reports.     

-- Control frame information -----------------------------------------------
c:0004 p:-17552211761788 s:0017 e:000016 TOP    [FINISH]
c:0003 p:---- s:0014 e:000013 CFUNC  :require_relative
c:0002 p:0019 s:0009 E:000ff8 EVAL   /Users/wadetandy/rubyfmt/rubyfmt.rb:2 [FINISH]
c:0001 p:0000 s:0003 E:000460 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
/Users/wadetandy/rubyfmt/rubyfmt.rb:2:in `<main>'
/Users/wadetandy/rubyfmt/rubyfmt.rb:2:in `require_relative'

-- Machine register context ------------------------------------------------
 rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x0000000000000018
 rdx: 0x0000000103ffa960 rdi: 0x0000000103ffa790 rsi: 0x0000000103ffa8f8
 rbp: 0x00007ffeec413fb0 rsp: 0x00007ffeec413d80  r8: 0x0000000103ffa8c8
  r9: 0x0000000103ffa8d8 r10: 0x00007fb59ad04590 r11: 0x0000000103ffa7b8
 r12: 0x0000000103ffa7b8 r13: 0x0000000104800980 r14: 0x00007ffeec413d80
 r15: 0xffff804a652fba70 rip: 0x0000000103debb4d rfl: 0x0000000000010206

-- C level backtrace information -------------------------------------------
/Users/wadetandy/.rvm/rubies/ruby-2.6.3/lib/libruby.2.6.dylib(rb_vm_bugreport+0x82) [0x103a2e182]
/Users/wadetandy/.rvm/rubies/ruby-2.6.3/lib/libruby.2.6.dylib(rb_bug_context+0x1d3) [0x10387a1f3]
/Users/wadetandy/.rvm/rubies/ruby-2.6.3/lib/libruby.2.6.dylib(sigsegv+0x51) [0x103992591]
/usr/lib/system/libsystem_platform.dylib(_sigtramp+0x1d) [0x7fff7245a5fd]
/Users/wadetandy/rubyfmt/target/rubyfmt_release.bundle(_rjem_je_tcache_bin_flush_small+0x2ad) [0x103debb4d]
/Users/wadetandy/rubyfmt/target/rubyfmt_release.bundle(tcache_flush_cache+0x22) [0x103ded9d2]
/Users/wadetandy/rubyfmt/target/rubyfmt_release.bundle(tcache_destroy+0x21) [0x103deddf1]
/Users/wadetandy/rubyfmt/target/rubyfmt_release.bundle(_rjem_je_tsd_cleanup+0x41) [0x103def0d1]
/Users/wadetandy/rubyfmt/target/rubyfmt_release.bundle(_rjem_je_malloc_tsd_boot1+0x36) [0x103def426]
/Users/wadetandy/rubyfmt/target/rubyfmt_release.bundle(jemalloc_constructor+0x296) [0x103db6676]

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

* Loaded script: /Users/wadetandy/rubyfmt/rubyfmt.rb

* Loaded features:

    0 enumerator.so
    1 thread.rb
    2 rational.so
    3 complex.so
    4 /Users/wadetandy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/x86_64-darwin18/enc/encdb.bundle
    5 /Users/wadetandy/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/x86_64-darwin18/enc/trans/transdb.bundle

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: https://www.ruby-lang.org/bugreport.html

[IMPORTANT]
Don't forget to include the Crash Report log file under
DiagnosticReports directory in bug reports.

OSX Crash Report

Process:               ruby [32883]
Path:                  /Users/USER/*/ruby
Identifier:            ruby
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        bash [31629]
Responsible:           Terminal [8956]
User ID:               501

Date/Time:             2020-06-02 23:08:47.721 -0400
OS Version:            Mac OS X 10.15.5 (19F96)
Report Version:        12
Bridge OS Version:     4.5 (17P5290)
Anonymous UUID:        CF219698-B484-6EFD-FE5B-73D586051C86

Sleep/Wake UUID:       05B9DD2B-B814-4AA9-8BFB-7094B50D7DDB

Time Awake Since Boot: 55000 seconds
Time Since Wake:       8500 seconds

System Integrity Protection: enabled

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

Exception Type:        EXC_BAD_ACCESS (SIGABRT)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

VM Regions Near 0:
--> 
    __TEXT                 00000001037e9000-00000001037ea000 [    4K] r-x/rwx SM=COW  /Users/USER/*

Application Specific Information:
/Users/wadetandy/rubyfmt/target/rubyfmt_release.bundle
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff723a933a __pthread_kill + 10
1   libsystem_pthread.dylib       	0x00007fff72465e60 pthread_kill + 430
2   libsystem_c.dylib             	0x00007fff72330808 abort + 120
3   libruby.2.6.dylib             	0x000000010387a019 die + 9
4   libruby.2.6.dylib             	0x000000010387a254 rb_bug_context + 564
5   libruby.2.6.dylib             	0x0000000103992591 sigsegv + 81
6   libsystem_platform.dylib      	0x00007fff7245a5fd _sigtramp + 29
7   ???                           	000000000000000000 0 + 0
8   rubyfmt_release.bundle        	0x0000000103ded9d2 tcache_flush_cache + 34
9   rubyfmt_release.bundle        	0x0000000103deddf1 tcache_destroy + 33
10  rubyfmt_release.bundle        	0x0000000103def0d1 _rjem_je_tsd_cleanup + 65 (tsd.c:234)
11  rubyfmt_release.bundle        	0x0000000103def426 _rjem_je_malloc_tsd_boot1 + 54 (tsd.c:273)
12  rubyfmt_release.bundle        	0x0000000103db6676 jemalloc_constructor + 662 (jemalloc.c:3184)
13  dyld                          	0x00000001071101e3 ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 535
14  dyld                          	0x00000001071105ee ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 40
15  dyld                          	0x000000010710b00b ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 493
16  dyld                          	0x0000000107109014 ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 188
17  dyld                          	0x00000001071090b4 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 82
18  dyld                          	0x00000001070fae30 dyld::runInitializers(ImageLoader*) + 82
19  dyld                          	0x0000000107104dfb dlopen_internal + 609
20  libdyld.dylib                 	0x00007fff7224cd8a dlopen + 171
21  libruby.2.6.dylib             	0x00000001037edd8f dln_load + 175 (dln.c:1341)
22  libruby.2.6.dylib             	0x0000000103a1bd55 rb_vm_call_cfunc + 277 (vm.c:2192)
23  libruby.2.6.dylib             	0x00000001038d8b3b rb_require_internal + 715 (load.c:1035)
24  libruby.2.6.dylib             	0x00000001038d82e9 rb_f_require_relative + 57 (load.c:840)
25  libruby.2.6.dylib             	0x0000000103a20c41 vm_call_cfunc + 353 (vm_insnhelper.c:1924)
26  libruby.2.6.dylib             	0x0000000103a0750f vm_exec_core + 13535 (insns.def:765)
27  libruby.2.6.dylib             	0x0000000103a1b6a0 rb_vm_exec + 2656
28  libruby.2.6.dylib             	0x0000000103885296 ruby_exec_internal + 230 (eval.c:266)
29  libruby.2.6.dylib             	0x0000000103885109 ruby_run_node + 73 (eval.c:318)
30  ruby                          	0x00000001037e9f0d main + 93 (main.c:42)
31  libdyld.dylib                 	0x00007fff72261cc9 start + 1

Thread 1:
0   libsystem_kernel.dylib        	0x00007fff723a93d6 poll + 10
1   libruby.2.6.dylib             	0x00000001039d8e90 timer_pthread_fn + 112 (thread_pthread.c:2191)
2   libsystem_pthread.dylib       	0x00007fff72466109 _pthread_start + 148
3   libsystem_pthread.dylib       	0x00007fff72461b8b thread_start + 15

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x00000001071bfdc0  rcx: 0x00007fb59e0339e8  rdx: 0x0000000000000000
  rdi: 0x0000000000000307  rsi: 0x0000000000000006  rbp: 0x00007fb59e033a10  rsp: 0x00007fb59e0339e8
   r8: 0x00000000000130a8   r9: 0x0000000000000000  r10: 0x00000001071bfdc0  r11: 0x0000000000000246
  r12: 0x0000000000000307  r13: 0x0000000000000038  r14: 0x0000000000000006  r15: 0x0000000000000016
  rip: 0x00007fff723a933a  rfl: 0x0000000000000246  cr2: 0x0000700001eeeff8
  
Logical CPU:     0
Error Code:      0x020000e6
Trap Number:     133


Binary Images:
       0x1037e9000 -        0x1037e9ff3 +ruby (0) <21700D1D-EBA6-351C-B9CA-9727C082370A> /Users/USER/*/ruby
       0x1037ed000 -        0x103ad0ff7 +libruby.2.6.dylib (0) <69341252-7707-3A55-BE6D-5BB0B6E8E866> /Users/USER/*/libruby.2.6.dylib
       0x103bb9000 -        0x103c14fff +libgmp.10.dylib (0) <FF1577B7-A7A8-3522-9CDA-25515AEEC22A> /usr/local/opt/gmp/lib/libgmp.10.dylib
       0x103c82000 -        0x103c83ff7 +encdb.bundle (0) <25871247-2859-3633-9018-C9313F34C05E> /Users/USER/*/encdb.bundle
       0x103c86000 -        0x103c87fff +transdb.bundle (0) <56743B4D-1B53-3E66-A78D-F84E462D155B> /Users/USER/*/transdb.bundle
       0x103c8a000 -        0x103fc9fff +rubyfmt_release.bundle (0) <3E4B23DC-DA83-3C82-BBFE-8680A993F0B1> /Users/USER/*/rubyfmt_release.bundle
       0x1043f4000 -        0x10468aff3 +libruby.2.5.dylib (0) <CEE3926C-D84B-37D3-BE77-1F6923A464C5> /Users/USER/*/libruby.2.5.dylib
       0x1070f5000 -        0x107186eff  dyld (750.5) <26346F4C-B18E-31A1-9964-30736214F1BF> /usr/lib/dyld
    0x7fff33e6e000 -     0x7fff33e6efff  com.apple.Accelerate (1.11 - Accelerate 1.11) <56DFF715-6A4E-3231-BDCC-A348BCB05047> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x7fff33e86000 -     0x7fff344dcfff  com.apple.vImage (8.1 - 524.2.1) <17C93AB9-1625-3FDB-9851-C5E77BBE3428> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
    0x7fff344dd000 -     0x7fff34744ff7  libBLAS.dylib (1303.60.1) <CBC28BE4-3C78-3AED-9565-0D625251D121> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
    0x7fff34745000 -     0x7fff34c18fef  libBNNS.dylib (144.100.2) <8D653678-1F9B-3670-AAE2-46DFB8D37643> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib
    0x7fff34c19000 -     0x7fff34fb4fff  libLAPACK.dylib (1303.60.1) <F8E9D081-7C60-32EC-A47D-2D30CAD73C5F> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
    0x7fff34fb5000 -     0x7fff34fcafec  libLinearAlgebra.dylib (1303.60.1) <D2C1ACEA-2B6A-339A-9EEB-62A76CC92CBE> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
    0x7fff34fcb000 -     0x7fff34fd0ff3  libQuadrature.dylib (7) <3112C977-8306-3190-8313-01A952B7F3CF> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib
    0x7fff34fd1000 -     0x7fff35041fff  libSparse.dylib (103) <40510BF9-99A7-3155-A81D-6DE5A0C73EDC> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib
    0x7fff35042000 -     0x7fff35054fef  libSparseBLAS.dylib (1303.60.1) <3C1066AB-20D5-38D2-B1F2-70A03DE76D0B> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
    0x7fff35055000 -     0x7fff3522cfd7  libvDSP.dylib (735.121.1) <74702E2E-ED05-3765-B18C-64BEFF62B517> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
    0x7fff3522d000 -     0x7fff352effef  libvMisc.dylib (735.121.1) <137558BF-503D-3A6E-96DC-A181E3FB31FF> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
    0x7fff352f0000 -     0x7fff352f0fff  com.apple.Accelerate.vecLib (3.11 - vecLib 3.11) <D7E8E400-35C8-3174-9956-8D1B483620DA> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
    0x7fff36a55000 -     0x7fff36de3ffd  com.apple.CFNetwork (1126 - 1126) <BB8F4C63-10B8-3ACD-84CF-D4DCFA9245DD> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x7fff381e3000 -     0x7fff38662ffb  com.apple.CoreFoundation (6.9 - 1676.105) <6AF8B3CC-BC3F-3869-B9FB-1D881422364E> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff395ca000 -     0x7fff395cafff  com.apple.CoreServices (1069.24 - 1069.24) <D9F6AB40-10EC-3682-A969-85560E2E4768> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x7fff395cb000 -     0x7fff39650fff  com.apple.AE (838.1 - 838.1) <5F26DA9B-FB2E-3AF8-964B-63BD6671CF12> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
    0x7fff39651000 -     0x7fff39932ff7  com.apple.CoreServices.CarbonCore (1217 - 1217) <8022AF47-AA99-3786-B086-141D84F00387> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
    0x7fff39933000 -     0x7fff39980ffd  com.apple.DictionaryServices (1.2 - 323.6) <C0F3830C-A4C6-3046-9A6A-DE1B5D448C2C> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
    0x7fff39981000 -     0x7fff39989ff7  com.apple.CoreServices.FSEvents (1268.100.1 - 1268.100.1) <E4B2CAF2-1203-335F-9971-1278CB6E2AE0> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
    0x7fff3998a000 -     0x7fff39bc4ff6  com.apple.LaunchServices (1069.24 - 1069.24) <2E0AD228-B1CC-3645-91EE-EB7F46F2147B> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
    0x7fff39bc5000 -     0x7fff39c5dff1  com.apple.Metadata (10.7.0 - 2076.6) <C8034E84-7DD4-34B9-9CDF-16A05032FF39> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
    0x7fff39c5e000 -     0x7fff39c8bfff  com.apple.CoreServices.OSServices (1069.24 - 1069.24) <72FDEA52-7607-3745-AC43-630D80962099> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
    0x7fff39c8c000 -     0x7fff39cf3fff  com.apple.SearchKit (1.4.1 - 1.4.1) <086EB5DF-A2EC-3342-8028-CA7996BE5CB2> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
    0x7fff39cf4000 -     0x7fff39d18ff5  com.apple.coreservices.SharedFileList (131.4 - 131.4) <AE333DA2-C279-3751-8C15-B963E58EE61E> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList
    0x7fff3a55e000 -     0x7fff3a564fff  com.apple.DiskArbitration (2.7 - 2.7) <52E7D181-2A18-37CD-B24F-AA32E93F7A69> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x7fff3a89d000 -     0x7fff3ac62fff  com.apple.Foundation (6.9 - 1676.105) <1FA28BAB-7296-3A09-8E1E-E62A7D233DB8> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff3afd6000 -     0x7fff3b07aff3  com.apple.framework.IOKit (2.0.2 - 1726.121.1) <A0F54725-036F-3279-A46E-C2ABDBFD479B> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x7fff3eb7b000 -     0x7fff3eb87ffe  com.apple.NetFS (6.0 - 4.0) <AC74E6A4-6E9B-3AB1-9577-8277F8A3EDE0> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
    0x7fff41769000 -     0x7fff41785fff  com.apple.CFOpenDirectory (10.15 - 220.40.1) <BFC32EBE-D95C-3267-B95C-5CEEFD189EA6> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
    0x7fff41786000 -     0x7fff41791ffd  com.apple.OpenDirectory (10.15 - 220.40.1) <76A20BBA-775F-3E17-AB0F-FEDFCDCE0716> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
    0x7fff44b2b000 -     0x7fff44e74ff1  com.apple.security (7.0 - 59306.120.7) <AEA33464-1507-36F1-8CAE-A86EB787F9B5> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff44e75000 -     0x7fff44efdffb  com.apple.securityfoundation (6.0 - 55236.60.1) <79289FE1-CB5F-3BEF-A33F-11A29A93A681> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
    0x7fff44f2c000 -     0x7fff44f30ff8  com.apple.xpc.ServiceManagement (1.0 - 1) <4194D29D-F0D4-33F8-839A-D03C6C62D8DB> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
    0x7fff45bdc000 -     0x7fff45c4aff7  com.apple.SystemConfiguration (1.19 - 1.19) <0CF8726A-BE41-3E07-B895-FBC44B75450E> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fff49bab000 -     0x7fff49c70ff7  com.apple.APFS (1412.120.2 - 1412.120.2) <1E8FD511-FDC4-31A2-ACDE-EB5192032BC6> /System/Library/PrivateFrameworks/APFS.framework/Versions/A/APFS
    0x7fff4baf8000 -     0x7fff4bb07fd7  com.apple.AppleFSCompression (119.100.1 - 1.0) <2E75CF51-B693-3275-9A4F-40571D48745E> /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression
    0x7fff4d2c7000 -     0x7fff4d2d0ff7  com.apple.coreservices.BackgroundTaskManagement (1.0 - 104) <F070F440-27AB-3FCF-9602-F278C332CA01> /System/Library/PrivateFrameworks/BackgroundTaskManagement.framework/Versions/A/BackgroundTaskManagement
    0x7fff500cd000 -     0x7fff500ddff3  com.apple.CoreEmoji (1.0 - 107.1) <CDCCB4B0-B98F-38E8-9568-C81320E756EB> /System/Library/PrivateFrameworks/CoreEmoji.framework/Versions/A/CoreEmoji
    0x7fff5071d000 -     0x7fff50787ff0  com.apple.CoreNLP (1.0 - 213) <40FC46D2-844C-3282-A8E4-69DD827F05C5> /System/Library/PrivateFrameworks/CoreNLP.framework/Versions/A/CoreNLP
    0x7fff51602000 -     0x7fff51630ffd  com.apple.CSStore (1069.24 - 1069.24) <C96E5CE8-D604-3F13-B079-B2BA33B90081> /System/Library/PrivateFrameworks/CoreServicesStore.framework/Versions/A/CoreServicesStore
    0x7fff5d890000 -     0x7fff5d95effd  com.apple.LanguageModeling (1.0 - 215.1) <A6FAA215-9A01-3EE1-B304-2238801C5883> /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
    0x7fff5d95f000 -     0x7fff5d9a7fff  com.apple.Lexicon-framework (1.0 - 72) <6AE1872C-0352-36FE-90CC-7303F13A5BEF> /System/Library/PrivateFrameworks/Lexicon.framework/Versions/A/Lexicon
    0x7fff5d9ae000 -     0x7fff5d9b3ff3  com.apple.LinguisticData (1.0 - 353.18) <686E7B7C-640F-3D7B-A9C1-31E2DFACD457> /System/Library/PrivateFrameworks/LinguisticData.framework/Versions/A/LinguisticData
    0x7fff5ed1a000 -     0x7fff5ed66fff  com.apple.spotlight.metadata.utilities (1.0 - 2076.6) <C3AEA22D-1FEB-3E38-9821-1FA447C8AF9D> /System/Library/PrivateFrameworks/MetadataUtilities.framework/Versions/A/MetadataUtilities
    0x7fff5f81d000 -     0x7fff5f827fff  com.apple.NetAuth (6.2 - 6.2) <D660F2CB-5A49-3DD0-9DB3-86EF0797828C> /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
    0x7fff68aa2000 -     0x7fff68ab2ff3  com.apple.TCC (1.0 - 1) <FD146B21-6DC0-3B66-BB95-57A5016B1365> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
    0x7fff6c184000 -     0x7fff6c186ff3  com.apple.loginsupport (1.0 - 1) <31F02734-1ECF-37D9-9DF6-7C3BC3A324FE> /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport
    0x7fff6eca4000 -     0x7fff6ecd8fff  libCRFSuite.dylib (48) <02C52318-C537-3FD8-BBC4-E5BD25430652> /usr/lib/libCRFSuite.dylib
    0x7fff6ecdb000 -     0x7fff6ece5fff  libChineseTokenizer.dylib (34) <04A7CB5A-FD68-398A-A206-33A510C115E7> /usr/lib/libChineseTokenizer.dylib
    0x7fff6ed71000 -     0x7fff6ed73ff7  libDiagnosticMessagesClient.dylib (112) <27220E98-6CE2-33E3-BD48-3CC3CE4AA036> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff6f247000 -     0x7fff6f248fff  libSystem.B.dylib (1281.100.1) <DC04B185-E3C9-33AF-B450-EF3ED07FB021> /usr/lib/libSystem.B.dylib
    0x7fff6f2d5000 -     0x7fff6f2d6fff  libThaiTokenizer.dylib (3) <97DC10ED-3C11-3C89-B366-299A644035E7> /usr/lib/libThaiTokenizer.dylib
    0x7fff6f2ee000 -     0x7fff6f304fff  libapple_nghttp2.dylib (1.39.2) <B99D7150-D4E2-31A2-A594-36DA4B90D558> /usr/lib/libapple_nghttp2.dylib
    0x7fff6f339000 -     0x7fff6f3abff7  libarchive.2.dylib (72.100.1) <20B70252-0C4B-3AFD-8C8D-F51921E9D324> /usr/lib/libarchive.2.dylib
    0x7fff6f449000 -     0x7fff6f449ff3  libauto.dylib (187) <85383E24-1592-36BC-BB39-308B7F1C826E> /usr/lib/libauto.dylib
    0x7fff6f50f000 -     0x7fff6f51fffb  libbsm.0.dylib (60.100.1) <B2331E11-3CBB-3BCF-93A6-12627AE444D0> /usr/lib/libbsm.0.dylib
    0x7fff6f520000 -     0x7fff6f52cfff  libbz2.1.0.dylib (44) <BF40E193-8856-39B7-98F8-7A17B328B1E9> /usr/lib/libbz2.1.0.dylib
    0x7fff6f52d000 -     0x7fff6f57ffff  libc++.1.dylib (902.1) <AD0805FE-F98B-3E2F-B072-83782B22DAC9> /usr/lib/libc++.1.dylib
    0x7fff6f580000 -     0x7fff6f595ffb  libc++abi.dylib (902) <771E9263-E832-3985-9477-8F1B2D73B771> /usr/lib/libc++abi.dylib
    0x7fff6f596000 -     0x7fff6f596fff  libcharset.1.dylib (59) <FF23D4ED-A5AD-3592-9574-48486C7DF85B> /usr/lib/libcharset.1.dylib
    0x7fff6f597000 -     0x7fff6f5a8fff  libcmph.dylib (8) <296A51E6-9661-3AC2-A1C9-F1E3510F91AA> /usr/lib/libcmph.dylib
    0x7fff6f5a9000 -     0x7fff6f5c0fd7  libcompression.dylib (87) <21F37C2E-B9AA-38CE-9023-B763C8828AC6> /usr/lib/libcompression.dylib
    0x7fff6f89a000 -     0x7fff6f8b0ff7  libcoretls.dylib (167) <9E5D1E0C-03F8-37B6-82A1-0D0597021CB8> /usr/lib/libcoretls.dylib
    0x7fff6f8b1000 -     0x7fff6f8b2fff  libcoretls_cfhelpers.dylib (167) <C23BE09B-85D1-3744-9E7B-E2B11ACD5442> /usr/lib/libcoretls_cfhelpers.dylib
    0x7fff6ffd8000 -     0x7fff6ffd8fff  libenergytrace.dylib (21) <DBF8BDEE-7229-3F06-AC10-A28DCC4243C0> /usr/lib/libenergytrace.dylib
    0x7fff6ffff000 -     0x7fff70001fff  libfakelink.dylib (149.1) <122F530F-F10E-3DD5-BBEA-91796BE583F3> /usr/lib/libfakelink.dylib
    0x7fff70010000 -     0x7fff70015fff  libgermantok.dylib (24) <DD279BF6-E906-30D3-A69E-DC797E95F147> /usr/lib/libgermantok.dylib
    0x7fff70020000 -     0x7fff70110fff  libiconv.2.dylib (59) <F58FED71-6CCA-30E8-9A51-13E9B46E568D> /usr/lib/libiconv.2.dylib
    0x7fff70111000 -     0x7fff70368fff  libicucore.A.dylib (64260.0.1) <7B9204AC-EA14-3FF3-B6B9-4C85B37EED79> /usr/lib/libicucore.A.dylib
    0x7fff70382000 -     0x7fff70383fff  liblangid.dylib (133) <36581D30-1C7B-3A58-AA07-36237BD75E0E> /usr/lib/liblangid.dylib
    0x7fff70384000 -     0x7fff7039cff3  liblzma.5.dylib (16) <4DB30730-DBD1-3503-957A-D604049B98F9> /usr/lib/liblzma.5.dylib
    0x7fff703b4000 -     0x7fff7045bff7  libmecab.dylib (883.11) <66AD729B-2BCC-3347-B9B3-FD88570E884D> /usr/lib/libmecab.dylib
    0x7fff7045c000 -     0x7fff706beff1  libmecabra.dylib (883.11) <2AE744D2-AC95-3720-8E66-4F9C7A79384C> /usr/lib/libmecabra.dylib
    0x7fff70b8a000 -     0x7fff71006ff5  libnetwork.dylib (1880.120.4) <715FB943-BA01-351C-BEA6-121970472985> /usr/lib/libnetwork.dylib
    0x7fff710a7000 -     0x7fff710dafde  libobjc.A.dylib (787.1) <CA836D3E-4595-33F1-B70C-7E39A3FBBE16> /usr/lib/libobjc.A.dylib
    0x7fff710ed000 -     0x7fff710f1fff  libpam.2.dylib (25.100.1) <732E8D8E-C630-3EC2-B6C3-A1564E3B68B8> /usr/lib/libpam.2.dylib
    0x7fff710f4000 -     0x7fff7112aff7  libpcap.A.dylib (89.120.1) <CF2ADF15-2D44-3A35-94B4-DD24052F9B23> /usr/lib/libpcap.A.dylib
    0x7fff71222000 -     0x7fff7140cff7  libsqlite3.dylib (308.5) <AF518115-4AD1-39F2-9B82-E2640E2221E1> /usr/lib/libsqlite3.dylib
    0x7fff7165d000 -     0x7fff71660ffb  libutil.dylib (57) <D33B63D2-ADC2-38BD-B8F2-24056C41E07B> /usr/lib/libutil.dylib
    0x7fff71661000 -     0x7fff7166eff7  libxar.1.dylib (425.2) <943A4CBB-331B-3A04-A11F-A2301189D40B> /usr/lib/libxar.1.dylib
    0x7fff71674000 -     0x7fff71756ff7  libxml2.2.dylib (33.3) <262EF7C6-7D83-3C01-863F-36E97F5ACD34> /usr/lib/libxml2.2.dylib
    0x7fff7175a000 -     0x7fff71782fff  libxslt.1.dylib (16.9) <86FE4382-BD77-3C19-A678-11EBCD70685A> /usr/lib/libxslt.1.dylib
    0x7fff71783000 -     0x7fff71795ff3  libz.1.dylib (76) <DB120508-3BED-37A8-B439-5235EAB4618A> /usr/lib/libz.1.dylib
    0x7fff72043000 -     0x7fff72048ff3  libcache.dylib (83) <A5ECC751-A681-30D8-B33C-D192C15D25C8> /usr/lib/system/libcache.dylib
    0x7fff72049000 -     0x7fff72054fff  libcommonCrypto.dylib (60165.120.1) <C321A74A-AA91-3785-BEBF-BEDC6975026C> /usr/lib/system/libcommonCrypto.dylib
    0x7fff72055000 -     0x7fff7205cfff  libcompiler_rt.dylib (101.2) <652A6012-7E5C-3F4F-9438-86BC094526F3> /usr/lib/system/libcompiler_rt.dylib
    0x7fff7205d000 -     0x7fff72066ff7  libcopyfile.dylib (166.40.1) <40113A69-A81C-3397-ADC6-1D16B9A22C3E> /usr/lib/system/libcopyfile.dylib
    0x7fff72067000 -     0x7fff720f9fe3  libcorecrypto.dylib (866.120.3) <5E4B0E50-24DD-3E04-9374-EDA9FFD6257B> /usr/lib/system/libcorecrypto.dylib
    0x7fff72206000 -     0x7fff72246ff0  libdispatch.dylib (1173.100.2) <201EDBF3-0B36-31BA-A7CB-443CE35C05D4> /usr/lib/system/libdispatch.dylib
    0x7fff72247000 -     0x7fff7227dfff  libdyld.dylib (750.5) <7E711A46-5E4D-393C-AEA6-440E2A5CCD0C> /usr/lib/system/libdyld.dylib
    0x7fff7227e000 -     0x7fff7227effb  libkeymgr.dylib (30) <52662CAA-DB1F-30A3-BE13-D6274B1A6D7B> /usr/lib/system/libkeymgr.dylib
    0x7fff7227f000 -     0x7fff7228bff3  libkxld.dylib (6153.121.1) <F4434EE5-E521-3481-83FC-62D57DEB6B3D> /usr/lib/system/libkxld.dylib
    0x7fff7228c000 -     0x7fff7228cff7  liblaunch.dylib (1738.120.8) <07CF647B-F9DC-3907-AD98-2F85FCB34A72> /usr/lib/system/liblaunch.dylib
    0x7fff7228d000 -     0x7fff72292ff7  libmacho.dylib (959.0.1) <D91DFF00-E22F-3796-8A1C-4C1F5F8FA03C> /usr/lib/system/libmacho.dylib
    0x7fff72293000 -     0x7fff72295ff3  libquarantine.dylib (110.40.3) <D3B7D02C-7646-3FB4-8529-B36DCC2419EA> /usr/lib/system/libquarantine.dylib
    0x7fff72296000 -     0x7fff72297ff7  libremovefile.dylib (48) <B5E88D9B-C2BE-3496-BBB2-C996317E18A3> /usr/lib/system/libremovefile.dylib
    0x7fff72298000 -     0x7fff722afff3  libsystem_asl.dylib (377.60.2) <1170348D-2491-33F1-AA79-E2A05B4A287C> /usr/lib/system/libsystem_asl.dylib
    0x7fff722b0000 -     0x7fff722b0ff7  libsystem_blocks.dylib (74) <7AFBCAA6-81BE-36C3-8DB0-AAE0A4ACE4C5> /usr/lib/system/libsystem_blocks.dylib
    0x7fff722b1000 -     0x7fff72338fff  libsystem_c.dylib (1353.100.2) <935DDCE9-4ED0-3F79-A05A-A123DDE399CC> /usr/lib/system/libsystem_c.dylib
    0x7fff72339000 -     0x7fff7233cffb  libsystem_configuration.dylib (1061.120.2) <EA9BC2B1-5001-3463-9FAF-39FF61CAC87C> /usr/lib/system/libsystem_configuration.dylib
    0x7fff7233d000 -     0x7fff72340fff  libsystem_coreservices.dylib (114) <3D0A3AA8-8415-37B2-AAE3-66C03BCE8B55> /usr/lib/system/libsystem_coreservices.dylib
    0x7fff72341000 -     0x7fff72349fff  libsystem_darwin.dylib (1353.100.2) <6EEC9975-EE3B-3C95-AA5B-030FD10587BC> /usr/lib/system/libsystem_darwin.dylib
    0x7fff7234a000 -     0x7fff72351fff  libsystem_dnssd.dylib (1096.100.3) <0115092A-E61B-317D-8670-41C7C34B1A82> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff72352000 -     0x7fff72353ffb  libsystem_featureflags.dylib (17) <AFDB5095-0472-34AC-BA7E-497921BF030A> /usr/lib/system/libsystem_featureflags.dylib
    0x7fff72354000 -     0x7fff723a1ff7  libsystem_info.dylib (538) <851693E9-C079-3547-AD41-353F8C248BE8> /usr/lib/system/libsystem_info.dylib
    0x7fff723a2000 -     0x7fff723ceff7  libsystem_kernel.dylib (6153.121.1) <84D09AE3-2DA8-3F6D-ACEC-DC4990B1A2FF> /usr/lib/system/libsystem_kernel.dylib
    0x7fff723cf000 -     0x7fff72416fff  libsystem_m.dylib (3178) <436CFF76-6A99-36F2-A3B6-8D017396A050> /usr/lib/system/libsystem_m.dylib
    0x7fff72417000 -     0x7fff7243efff  libsystem_malloc.dylib (283.100.6) <D4BA7DF2-57AC-33B0-B948-A688EE43C799> /usr/lib/system/libsystem_malloc.dylib
    0x7fff7243f000 -     0x7fff7244cffb  libsystem_networkextension.dylib (1095.120.6) <6DE86DB0-8CD2-361E-BD6A-A34282B47847> /usr/lib/system/libsystem_networkextension.dylib
    0x7fff7244d000 -     0x7fff72456ff7  libsystem_notify.dylib (241.100.2) <7E9E2FC8-DF26-340C-B196-B81B11850C46> /usr/lib/system/libsystem_notify.dylib
    0x7fff72457000 -     0x7fff7245ffef  libsystem_platform.dylib (220.100.1) <736920EA-6AE0-3B1B-BBDA-7DCDF0C229DF> /usr/lib/system/libsystem_platform.dylib
    0x7fff72460000 -     0x7fff7246afff  libsystem_pthread.dylib (416.100.3) <77488669-19A3-3993-AD65-CA5377E2475A> /usr/lib/system/libsystem_pthread.dylib
    0x7fff7246b000 -     0x7fff7246fff3  libsystem_sandbox.dylib (1217.120.7) <20C93D69-6452-3C82-9521-8AE54345C66F> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff72470000 -     0x7fff72472fff  libsystem_secinit.dylib (62.100.2) <E851113D-D5B1-3FB0-9D29-9C7647A71961> /usr/lib/system/libsystem_secinit.dylib
    0x7fff72473000 -     0x7fff7247affb  libsystem_symptoms.dylib (1238.120.1) <25C3866B-004E-3621-9CD3-B1E9C4D887EB> /usr/lib/system/libsystem_symptoms.dylib
    0x7fff7247b000 -     0x7fff72491ff2  libsystem_trace.dylib (1147.120) <A1ED1D3A-5FAD-3559-A1D6-1BE4E1C5756A> /usr/lib/system/libsystem_trace.dylib
    0x7fff72493000 -     0x7fff72498ff7  libunwind.dylib (35.4) <253A12E2-F88F-3838-A666-C5306F833CB8> /usr/lib/system/libunwind.dylib
    0x7fff72499000 -     0x7fff724ceffe  libxpc.dylib (1738.120.8) <68D433B6-DCFF-385D-8620-F847FB7D4A5A> /usr/lib/system/libxpc.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: 73218
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=469.0M resident=0K(0%) swapped_out_or_unallocated=469.0M(100%)
Writable regions: Total=333.3M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=333.3M(100%)
 
                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
Kernel Alloc Once                    8K        1 
MALLOC                            76.1M       17 
MALLOC guard page                   24K        4 
MALLOC_MEDIUM (reserved)         240.0M        2         reserved VM address space (unallocated)
STACK GUARD                          4K        1 
Stack                             8712K        2 
Stack Guard                       56.0M        1 
VM_ALLOCATE                       6208K        3 
__DATA                            8265K      128 
__DATA_CONST                       232K        3 
__LINKEDIT                       391.9M        9 
__OBJC_RO                         32.2M        1 
__OBJC_RW                         1892K        2 
__TEXT                            77.1M      130 
__UNICODE                          564K        1 
mapped file                       3956K        2 
shared memory                       12K        3 
===========                     =======  ======= 
TOTAL                            902.7M      311 
TOTAL, minus reserved VM space   662.7M      311 
@wadetandy
Copy link
Contributor Author

wadetandy commented Jun 3, 2020

Strangely enough I found a potential clue in an HN comment thread. I'm having the issues with OSX Catalina but the other machine that I successfully ran was Mojave. https://news.ycombinator.com/item?id=23062435

Following that a bit further led me to this issue filed against jemallocator: gnzlbg/jemallocator#136

@fables-tales
Copy link
Owner

you may need to reinstall your rust toolchain for catalina and rebuild rubyfmt

@wadetandy
Copy link
Contributor Author

wadetandy commented Jun 3, 2020

I actually installed rust/cargo specifically (using these instructions) to build this last night, so I don't think that's it. No previous experience with rust though, so might be doing something wrong.

@fables-tales
Copy link
Owner

fables-tales commented Jun 3, 2020 via email

@wadetandy
Copy link
Contributor Author

Yeah. Steps taken:

$ git clone https://github.com/penelopezone/rubyfmt
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$ cd rubyfmt
$ rvm use 2.6.3
$ make all
$ /Users/wadetandy/.rvm/rubies/ruby-2.6.3/bin/ruby --disable=all rubyfmt.rb
<explode>

@fables-tales
Copy link
Owner

Your crash is occuring when rubyfmt tries to enable Jemalloc, are you using jemalloc otherwise on your sysetm?

@wadetandy
Copy link
Contributor Author

If by using it you mean "have I written code against jemalloc?", then no, as I mostly work in ruby and js. But I don't know whether other installed software might use jemalloc if that's your question.

@sgrif
Copy link
Collaborator

sgrif commented Jun 3, 2020

It's worth noting that the Rust crate compiles jemalloc and statically links it, so jemalloc being on the system wouldn't affect it

@wadetandy
Copy link
Contributor Author

It seems updating OSX from Catalina 10.15.4 to 10.15.5 fixed the issue on the debug build, but the problem persists on the release build. Neat.

@dgodd
Copy link

dgodd commented Jun 14, 2020

I'm on OSX 10.15.3 and also using rvm for ruby (2.7.1) and receive the same strange behavior that the debug build works, and the release build crashes. (log attached).

Process:               ruby [99276]
Path:                  /Users/USER/*/ruby
Identifier:            ruby
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        zsh [45195]
Responsible:           iTerm2 [18490]
User ID:               501

Date/Time:             2020-06-14 17:50:13.093 +1000
OS Version:            Mac OS X 10.15.3 (19D76)
Report Version:        12
Anonymous UUID:        92D6EB54-E5EF-8603-1967-BD99A008CD18

Sleep/Wake UUID:       F0DA2419-24B1-455E-A476-D275BF14FF29

Time Awake Since Boot: 76000 seconds
Time Since Wake:       420 seconds

System Integrity Protection: enabled

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

Exception Type:        EXC_BAD_ACCESS (SIGABRT)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

VM Regions Near 0:
--> 
    __TEXT                 000000010112e000-000000010112f000 [    4K] r-x/r-x SM=COW  /Users/USER/*

Application Specific Information:
/Users/davegoddard/workspace/rubyfmt/target/rubyfmt_release.bundle
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff690967fa __pthread_kill + 10
1   libsystem_pthread.dylib       	0x00007fff69153bc1 pthread_kill + 432
2   libsystem_c.dylib             	0x00007fff6901da1c abort + 120
3   libruby.2.7.dylib             	0x00000001011d55e9 die + 9
4   libruby.2.7.dylib             	0x00000001011d5820 rb_bug_for_fatal_signal + 560
5   libruby.2.7.dylib             	0x0000000101303ceb sigsegv + 91
6   libsystem_platform.dylib      	0x00007fff6914842d _sigtramp + 29
7   ???                           	000000000000000000 0 + 0
8   rubyfmt_release.bundle        	0x00000001053acd62 tcache_flush_cache + 34
9   rubyfmt_release.bundle        	0x00000001053ad181 tcache_destroy + 33
10  rubyfmt_release.bundle        	0x00000001053ae461 _rjem_je_tsd_cleanup + 65 (tsd.h:187)
11  rubyfmt_release.bundle        	0x00000001053ae7b6 _rjem_je_malloc_tsd_boot1 + 54 (tsd_generic.h:109)
12  rubyfmt_release.bundle        	0x0000000105375a06 jemalloc_constructor + 662 (tsd_generic.h:63)
13  dyld                          	0x000000010515c15d ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 539
14  dyld                          	0x000000010515c582 ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 40
15  dyld                          	0x0000000105156dc7 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 493
16  dyld                          	0x0000000105154e58 ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 188
17  dyld                          	0x0000000105154ef8 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 82
18  dyld                          	0x0000000105146f87 dyld::runInitializers(ImageLoader*) + 82
19  dyld                          	0x0000000105150ad7 dlopen_internal + 609
20  libdyld.dylib                 	0x00007fff68f3aa7f dlopen + 171
21  libruby.2.7.dylib             	0x00000001011398c1 dln_load + 177 (dln.c:1341)
22  libruby.2.7.dylib             	0x00000001013905e6 rb_vm_call_cfunc + 278 (vm.c:2225)
23  libruby.2.7.dylib             	0x00000001012397a2 require_internal + 818 (load.c:1021)
24  libruby.2.7.dylib             	0x0000000101238d75 rb_f_require_relative + 69 (load.c:1106)
25  libruby.2.7.dylib             	0x00000001013950c0 vm_call_cfunc + 368 (vm_insnhelper.c:2514)
26  libruby.2.7.dylib             	0x000000010137af9f vm_exec_core + 14527 (vm_insnhelper.c:4025)
27  libruby.2.7.dylib             	0x000000010138fedc rb_vm_exec + 2780
28  libruby.2.7.dylib             	0x00000001011e0d96 rb_ec_exec_node + 198 (eval.c:282)
29  libruby.2.7.dylib             	0x00000001011e0c75 ruby_run_node + 85 (eval.c:336)
30  ruby                          	0x000000010112ef0d main + 93 (main.c:50)
31  libdyld.dylib                 	0x00007fff68f4f7fd start + 1

Thread 1:
0   libsystem_kernel.dylib        	0x00007fff69096896 poll + 10
1   libruby.2.7.dylib             	0x000000010134b521 timer_pthread_fn + 113 (thread_pthread.c:2132)
2   libsystem_pthread.dylib       	0x00007fff69153e65 _pthread_start + 148
3   libsystem_pthread.dylib       	0x00007fff6914f83b thread_start + 15

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x000000010520adc0  rcx: 0x00007f8c018d2be8  rdx: 0x0000000000000000
  rdi: 0x0000000000000307  rsi: 0x0000000000000006  rbp: 0x00007f8c018d2c10  rsp: 0x00007f8c018d2be8
   r8: 0x00000000000130a8   r9: 0x0000000000000000  r10: 0x000000010520adc0  r11: 0x0000000000000246
  r12: 0x0000000000000307  r13: 0x00007f8c018d3348  r14: 0x0000000000000006  r15: 0x0000000000000016
  rip: 0x00007fff690967fa  rfl: 0x0000000000000246  cr2: 0x000000012b797000
  
Logical CPU:     0
Error Code:      0x02000148
Trap Number:     133


Binary Images:
       0x10112e000 -        0x10112eff3 +ruby (0) <2ADDE4F1-400C-3597-8931-93FDA8E8D4BC> /Users/USER/*/ruby
       0x101138000 -        0x101453ff7 +libruby.2.7.dylib (0) <A975FD32-9BE2-3603-980C-EFB35C7D175E> /Users/USER/*/libruby.2.7.dylib
       0x104b98000 -        0x104b99ffb +encdb.bundle (0) <1D6F261F-1B07-3009-A747-8CB9B8EB2A15> /Users/USER/*/encdb.bundle
       0x104b9d000 -        0x104b9eff3 +transdb.bundle (0) <80413187-D6A2-3D47-A187-84D097750F64> /Users/USER/*/transdb.bundle
       0x104c1f000 -        0x104c1fff7 +monitor.bundle (0) <CB44E4E3-312A-3A81-9AEA-CD093EF9C4A8> /Users/USER/*/monitor.bundle
       0x105141000 -        0x1051d1cb7  dyld (733.8) <EBC07CB6-870A-3A8E-B48A-67F62EA161F3> /usr/lib/dyld
       0x105245000 -        0x105588fef +rubyfmt_release.bundle (0) <C4EFBA81-691A-3601-8275-1ADD1300DCFE> /Users/USER/*/rubyfmt_release.bundle
    0x7fff2d5ce000 -     0x7fff2d5cefff  com.apple.Accelerate (1.11 - Accelerate 1.11) <EEBE6680-1AAB-3192-AA7C-450537B07F27> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x7fff2d5e6000 -     0x7fff2dc51fef  com.apple.vImage (8.1 - 524.2) <33B60C65-1E08-3490-ADC7-6C75AA3EA022> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
    0x7fff2dc52000 -     0x7fff2debbfff  libBLAS.dylib (1303.60.1) <0FE82DB0-0E71-300A-BF0B-70BF3478FE79> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
    0x7fff2debc000 -     0x7fff2e1abff7  libBNNS.dylib (144.40.3) <86C8FBB0-19D3-355B-99A3-6B094BB98C06> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib
    0x7fff2e1ad000 -     0x7fff2e552fff  libLAPACK.dylib (1303.60.1) <DCC36295-FF39-35A1-8DF1-1E8A714E2265> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
    0x7fff2e553000 -     0x7fff2e568ff8  libLinearAlgebra.dylib (1303.60.1) <0E47C269-832E-3B55-A6B6-855648BD206E> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
    0x7fff2e569000 -     0x7fff2e56eff3  libQuadrature.dylib (7) <E0534024-B7E7-3382-830C-71E7BD9D3DE4> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib
    0x7fff2e56f000 -     0x7fff2e5dffff  libSparse.dylib (103) <533DFAE8-8458-31F4-8AE2-B73C3869CED2> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib
    0x7fff2e5e0000 -     0x7fff2e5f2fef  libSparseBLAS.dylib (1303.60.1) <7CECC6DF-B4A8-38A7-B4E9-0CDDC6EA2510> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
    0x7fff2e5f3000 -     0x7fff2e7ccffb  libvDSP.dylib (735.40.1) <BD49856D-39CE-397F-A069-63B2F0D79529> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
    0x7fff2e7cd000 -     0x7fff2e888fd7  libvMisc.dylib (735.40.1) <F3C565E5-8571-3E16-BC22-7687D1A756BD> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
    0x7fff2e889000 -     0x7fff2e889fff  com.apple.Accelerate.vecLib (3.11 - vecLib 3.11) <A8B35A80-7217-38B1-8A20-E8B4F73124F0> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
    0x7fff2ffc4000 -     0x7fff30350ff6  com.apple.CFNetwork (1121.1.2 - 1121.1.2) <4E539AC8-A995-3BA8-AAD6-31D97DAE734B> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x7fff31827000 -     0x7fff31ca7fe7  com.apple.CoreFoundation (6.9 - 1674.114) <5810CC45-FB5D-3A78-861F-7BE03F9B2FDD> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff32c17000 -     0x7fff32c17fff  com.apple.CoreServices (1069.11 - 1069.11) <3BBDA17B-6F86-35F4-B785-AFA2A14B6F51> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x7fff32c18000 -     0x7fff32c9dfff  com.apple.AE (838 - 838) <877C7270-575A-3D5F-B768-4724037F025D> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
    0x7fff32c9e000 -     0x7fff32f7fff7  com.apple.CoreServices.CarbonCore (1217 - 1217) <DDC45E79-973C-3FB0-92EC-392A654179F5> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
    0x7fff32f80000 -     0x7fff32fcdff5  com.apple.DictionaryServices (1.2 - 323.3.1) <A21D442C-E7B7-3A6C-BEEC-44B323AF9CB2> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
    0x7fff32fce000 -     0x7fff32fd6fff  com.apple.CoreServices.FSEvents (1268.60.1 - 1268.60.1) <8C772593-A2BA-33A7-BB43-49B9FCDD37CE> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
    0x7fff32fd7000 -     0x7fff33210ff0  com.apple.LaunchServices (1069.11 - 1069.11) <7189EED9-9252-3030-AB32-6704AD9AEBAE> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
    0x7fff33211000 -     0x7fff332a9ff9  com.apple.Metadata (10.7.0 - 2075.7) <AECD1E1F-1C1B-3C42-9ACD-596980F145C2> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
    0x7fff332aa000 -     0x7fff332d7ff7  com.apple.CoreServices.OSServices (1069.11 - 1069.11) <67A2F664-DCA1-3FD6-B88E-CF020EA8C59D> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
    0x7fff332d8000 -     0x7fff3333ffff  com.apple.SearchKit (1.4.1 - 1.4.1) <367BBFA7-F18C-34B6-B4C8-A244A125D5E0> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
    0x7fff33340000 -     0x7fff33364ff5  com.apple.coreservices.SharedFileList (131.4 - 131.4) <EB8F2B1B-B736-373F-B28B-E4E6F33A00C0> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList
    0x7fff33bb4000 -     0x7fff33bbafff  com.apple.DiskArbitration (2.7 - 2.7) <5BE0B036-DEAB-3191-8D44-B489F4D39EE1> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x7fff33eec000 -     0x7fff342b4ffc  com.apple.Foundation (6.9 - 1674.114) <532BBAE7-F2BA-3779-94E0-BFEDF2D7AB38> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff3462c000 -     0x7fff346cfffb  com.apple.framework.IOKit (2.0.2 - 1726.80.1) <B63FE840-8E32-3429-A95D-AB466FE62104> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x7fff37f39000 -     0x7fff37f45ffe  com.apple.NetFS (6.0 - 4.0) <0B2088AE-C16D-3FC3-9445-4EDAD2D51686> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
    0x7fff3ab0b000 -     0x7fff3ab27fff  com.apple.CFOpenDirectory (10.15 - 220.40.1) <FF068FF7-C136-3A71-AD1F-B5170A918423> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
    0x7fff3ab28000 -     0x7fff3ab33ff7  com.apple.OpenDirectory (10.15 - 220.40.1) <9448EC8E-8B76-3142-9540-C0752529762A> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
    0x7fff3de7e000 -     0x7fff3e1d0ffa  com.apple.security (7.0 - 59306.80.4) <FA5EBA16-2B2B-3105-8A17-C8624C4B3BB3> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff3e1d1000 -     0x7fff3e25aff7  com.apple.securityfoundation (6.0 - 55236.60.1) <0129932D-89E5-3608-B22E-DB5F0B3C3DC4> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
    0x7fff3e289000 -     0x7fff3e28dff0  com.apple.xpc.ServiceManagement (1.0 - 1) <2475707B-F909-33C4-AAB7-80DC8D2CB435> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
    0x7fff3f020000 -     0x7fff3f08afff  com.apple.SystemConfiguration (1.19 - 1.19) <61B73150-6D87-3E2F-A935-B957425CC992> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fff42df5000 -     0x7fff42eb9fe7  com.apple.APFS (1412.81.1 - 1412.81.1) <7EC14196-E481-35C0-94F0-09E5B81AD3E5> /System/Library/PrivateFrameworks/APFS.framework/Versions/A/APFS
    0x7fff44b34000 -     0x7fff44b43fef  com.apple.AppleFSCompression (119 - 1.0) <EEDA4040-1835-39A6-AC13-6CE35560C159> /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression
    0x7fff462eb000 -     0x7fff462f4ff3  com.apple.coreservices.BackgroundTaskManagement (1.0 - 104) <D0F2851A-521F-335A-B7C4-B1E39BB42DD7> /System/Library/PrivateFrameworks/BackgroundTaskManagement.framework/Versions/A/BackgroundTaskManagement
    0x7fff490bb000 -     0x7fff490cbff3  com.apple.CoreEmoji (1.0 - 107) <544182E2-893F-3975-AA70-26ADC637B3F1> /System/Library/PrivateFrameworks/CoreEmoji.framework/Versions/A/CoreEmoji
    0x7fff4971f000 -     0x7fff49789ff0  com.apple.CoreNLP (1.0 - 213) <287973D6-1807-3A81-8F57-7BB39209F6C0> /System/Library/PrivateFrameworks/CoreNLP.framework/Versions/A/CoreNLP
    0x7fff4a3a8000 -     0x7fff4a3d6ff7  com.apple.CSStore (1069.11 - 1069.11) <26602CC8-0080-3E85-A588-79CEF78D21E5> /System/Library/PrivateFrameworks/CoreServicesStore.framework/Versions/A/CoreServicesStore
    0x7fff564f0000 -     0x7fff565beff5  com.apple.LanguageModeling (1.0 - 215.1) <B47A62F3-7F45-3A84-A856-C674D4613261> /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
    0x7fff565bf000 -     0x7fff56607ff7  com.apple.Lexicon-framework (1.0 - 72) <CD6D3F05-0647-348D-AED0-9566F968A954> /System/Library/PrivateFrameworks/Lexicon.framework/Versions/A/Lexicon
    0x7fff5660e000 -     0x7fff56612ff2  com.apple.LinguisticData (1.0 - 353.6.1) <91C3132C-EB52-32D6-9009-DE4B207ACE72> /System/Library/PrivateFrameworks/LinguisticData.framework/Versions/A/LinguisticData
    0x7fff5796d000 -     0x7fff579b9fff  com.apple.spotlight.metadata.utilities (1.0 - 2075.7) <F7FA0F68-7E46-3461-9DA6-C55FBB85C799> /System/Library/PrivateFrameworks/MetadataUtilities.framework/Versions/A/MetadataUtilities
    0x7fff5846d000 -     0x7fff58477fff  com.apple.NetAuth (6.2 - 6.2) <A400CD55-B3EA-371A-8BAB-FDDA87660AE4> /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
    0x7fff611ff000 -     0x7fff6120fff3  com.apple.TCC (1.0 - 1) <A8308EDB-9AF7-3B6B-AAC3-143F91F58F1D> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
    0x7fff65480000 -     0x7fff65482ff3  com.apple.loginsupport (1.0 - 1) <F2EC9213-901A-3657-A36A-DFD80BD8ABBC> /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport
    0x7fff657e3000 -     0x7fff65818ff7  libCRFSuite.dylib (48) <31D98527-9972-3A4B-9868-C9394FAF742E> /usr/lib/libCRFSuite.dylib
    0x7fff6581b000 -     0x7fff65825ff3  libChineseTokenizer.dylib (34) <9E2B02B0-32A5-3245-AC50-F6BEEC34FCEC> /usr/lib/libChineseTokenizer.dylib
    0x7fff658b2000 -     0x7fff658b4ff7  libDiagnosticMessagesClient.dylib (112) <45E85899-039F-3B99-8789-F497DD9916C2> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff65d7a000 -     0x7fff65d7bff3  libSystem.B.dylib (1281) <A2C26908-8802-3CA7-8B74-ED4A74AA152C> /usr/lib/libSystem.B.dylib
    0x7fff65e0a000 -     0x7fff65e0bfff  libThaiTokenizer.dylib (3) <9E5B4E50-E982-387C-AA2F-BB43867322ED> /usr/lib/libThaiTokenizer.dylib
    0x7fff65e23000 -     0x7fff65e39fff  libapple_nghttp2.dylib (1.39.2) <C79E1B79-0BBE-311F-A177-6879D5C4D991> /usr/lib/libapple_nghttp2.dylib
    0x7fff65e6e000 -     0x7fff65ee0ff7  libarchive.2.dylib (72.40.2) <1AE0592D-8451-30D1-AEE8-3F39F46D9DD4> /usr/lib/libarchive.2.dylib
    0x7fff65f7b000 -     0x7fff65f7bff3  libauto.dylib (187) <71A48A59-FE0E-3D86-A219-B79DAF7CF9DD> /usr/lib/libauto.dylib
    0x7fff66042000 -     0x7fff66052ff3  libbsm.0.dylib (60) <5EBEA671-D25B-3425-AC2B-70C2760B8B94> /usr/lib/libbsm.0.dylib
    0x7fff66053000 -     0x7fff6605ffff  libbz2.1.0.dylib (44) <FA7CE29A-2FE3-3107-8693-5D33D5B7E11F> /usr/lib/libbz2.1.0.dylib
    0x7fff66060000 -     0x7fff660b3ff7  libc++.1.dylib (800.7) <1D0CB627-8A78-329F-A679-1B5248FF4C59> /usr/lib/libc++.1.dylib
    0x7fff660b4000 -     0x7fff660c8fff  libc++abi.dylib (800.7) <7AF668FB-901D-3F45-BA0D-710A235A8D1F> /usr/lib/libc++abi.dylib
    0x7fff660c9000 -     0x7fff660c9ffb  libcharset.1.dylib (59) <56F66234-104F-3494-B336-598800CF3F71> /usr/lib/libcharset.1.dylib
    0x7fff660ca000 -     0x7fff660dbffb  libcmph.dylib (8) <9B9AB2BA-75FB-3B70-AAE4-E32B06CF9D69> /usr/lib/libcmph.dylib
    0x7fff660dc000 -     0x7fff660f3fe7  libcompression.dylib (87) <A252D9B2-0D88-3345-94DC-E5D7C8245985> /usr/lib/libcompression.dylib
    0x7fff663c3000 -     0x7fff663d9ff7  libcoretls.dylib (167) <6D32CE15-591C-39AD-9A3E-0C2FFC03C3C1> /usr/lib/libcoretls.dylib
    0x7fff663da000 -     0x7fff663dbfff  libcoretls_cfhelpers.dylib (167) <3CE60FA9-98FC-3EE0-B398-177F3CAA850D> /usr/lib/libcoretls_cfhelpers.dylib
    0x7fff66b04000 -     0x7fff66b04fff  libenergytrace.dylib (21) <8E5C9BB2-14F4-37DF-AAE7-8130EBF466A3> /usr/lib/libenergytrace.dylib
    0x7fff66b2c000 -     0x7fff66b2efff  libfakelink.dylib (149) <7296A5B3-EE44-34E6-810A-2A12C2D3EF68> /usr/lib/libfakelink.dylib
    0x7fff66b3d000 -     0x7fff66b42fff  libgermantok.dylib (24) <7B3FFFFB-5E34-3940-8E0A-B64A2DE42E68> /usr/lib/libgermantok.dylib
    0x7fff66b4d000 -     0x7fff66c3dff7  libiconv.2.dylib (59) <30414773-5E42-3976-B7C3-9BB8883792EE> /usr/lib/libiconv.2.dylib
    0x7fff66c3e000 -     0x7fff66e96ff7  libicucore.A.dylib (64252.0.1) <0F9294A7-6EC0-3279-BF92-3233C89DFA0A> /usr/lib/libicucore.A.dylib
    0x7fff66eb0000 -     0x7fff66eb1fff  liblangid.dylib (133) <EDF945D6-A37D-3DEB-B956-B4745269603D> /usr/lib/liblangid.dylib
    0x7fff66eb2000 -     0x7fff66ecaff3  liblzma.5.dylib (16) <F75FB525-C702-3A7E-9239-28D57E677DD5> /usr/lib/liblzma.5.dylib
    0x7fff66ee2000 -     0x7fff66f89fff  libmecab.dylib (883.1.1) <A2C923A6-D955-3FF1-82AE-7E54947F9566> /usr/lib/libmecab.dylib
    0x7fff66f8a000 -     0x7fff671ecfe1  libmecabra.dylib (883.1.1) <971A30D4-1C27-3DD1-AACF-8337AE059F70> /usr/lib/libmecabra.dylib
    0x7fff676ba000 -     0x7fff67b30ff7  libnetwork.dylib (1880.60.5) <8B4092C3-9F1C-34C3-A73D-A2228C345831> /usr/lib/libnetwork.dylib
    0x7fff67bcf000 -     0x7fff67c00fc6  libobjc.A.dylib (781.2) <7B72F50A-5381-36D7-A616-65D3EA9748A5> /usr/lib/libobjc.A.dylib
    0x7fff67c13000 -     0x7fff67c17fff  libpam.2.dylib (25) <55302451-C2B2-3DB4-9092-B84E236104DA> /usr/lib/libpam.2.dylib
    0x7fff67c1a000 -     0x7fff67c50ff7  libpcap.A.dylib (89.60.2) <FD167BF3-6984-36E1-9D93-E8B98E3E64A1> /usr/lib/libpcap.A.dylib
    0x7fff67d46000 -     0x7fff67f33ff7  libsqlite3.dylib (308.4) <448E300F-0157-3AEA-B199-0DFA914B1547> /usr/lib/libsqlite3.dylib
    0x7fff68185000 -     0x7fff68188ffb  libutil.dylib (57) <6CB26E6D-AD27-3FA8-8A30-4AFC3A2AE3F9> /usr/lib/libutil.dylib
    0x7fff68189000 -     0x7fff68196fff  libxar.1.dylib (420) <317EA455-78EE-35A4-B63F-D85993B8697C> /usr/lib/libxar.1.dylib
    0x7fff6819c000 -     0x7fff6827eff7  libxml2.2.dylib (32.14) <4F4EB304-2AA5-3E5F-AB24-F645E0D16EFC> /usr/lib/libxml2.2.dylib
    0x7fff68282000 -     0x7fff682aafff  libxslt.1.dylib (16.7) <E9BBE609-BA57-368D-95D7-ACA3A8C1AE8B> /usr/lib/libxslt.1.dylib
    0x7fff682ab000 -     0x7fff682bdffb  libz.1.dylib (76) <52250917-039C-3B46-8011-497FEACF3550> /usr/lib/libz.1.dylib
    0x7fff68d21000 -     0x7fff68d26ff3  libcache.dylib (83) <11C19883-6F99-390D-AF2A-A85A99DDFC48> /usr/lib/system/libcache.dylib
    0x7fff68d27000 -     0x7fff68d32fff  libcommonCrypto.dylib (60165) <FEE99884-61F0-3332-852B-B0BB8EFF2288> /usr/lib/system/libcommonCrypto.dylib
    0x7fff68d33000 -     0x7fff68d3afff  libcompiler_rt.dylib (101.2) <D7367E6D-A27D-3209-A3DB-A6F44582E502> /usr/lib/system/libcompiler_rt.dylib
    0x7fff68d3b000 -     0x7fff68d44fff  libcopyfile.dylib (166.40.1) <91670D15-CB30-3277-8AA9-9A299CEAAE27> /usr/lib/system/libcopyfile.dylib
    0x7fff68d45000 -     0x7fff68ddcfdb  libcorecrypto.dylib (866.80.2) <3B110D82-B403-31E8-8109-8BBC79C928CE> /usr/lib/system/libcorecrypto.dylib
    0x7fff68ef3000 -     0x7fff68f34ff0  libdispatch.dylib (1173.60.1) <5EF42E98-AD0D-3FAE-ABD4-46D791B8343F> /usr/lib/system/libdispatch.dylib
    0x7fff68f35000 -     0x7fff68f6aff7  libdyld.dylib (733.8) <8B0DFE8A-42CF-32C8-B121-83C22BF25F69> /usr/lib/system/libdyld.dylib
    0x7fff68f6b000 -     0x7fff68f6bffb  libkeymgr.dylib (30) <7DADC026-70A8-390F-95AF-F3F345760F24> /usr/lib/system/libkeymgr.dylib
    0x7fff68f6c000 -     0x7fff68f78ff7  libkxld.dylib (6153.81.5) <7572CC82-E7E1-3C38-825F-9B34E2EADAD0> /usr/lib/system/libkxld.dylib
    0x7fff68f79000 -     0x7fff68f79ff7  liblaunch.dylib (1738.80.8) <C4EA8803-E506-3514-9839-9BBECC819953> /usr/lib/system/liblaunch.dylib
    0x7fff68f7a000 -     0x7fff68f7fff7  libmacho.dylib (949.0.1) <395ABE7C-D2B1-343D-A451-9CEA98FDC12E> /usr/lib/system/libmacho.dylib
    0x7fff68f80000 -     0x7fff68f82ff7  libquarantine.dylib (110.40.3) <560961FC-1FEF-3F07-8406-17A36558870E> /usr/lib/system/libquarantine.dylib
    0x7fff68f83000 -     0x7fff68f84ff7  libremovefile.dylib (48) <E99833DE-CB1D-31AB-A948-2739AF503599> /usr/lib/system/libremovefile.dylib
    0x7fff68f85000 -     0x7fff68f9cfff  libsystem_asl.dylib (377.60.2) <21A259BC-F892-34EB-9A67-11232AD8913A> /usr/lib/system/libsystem_asl.dylib
    0x7fff68f9d000 -     0x7fff68f9dfff  libsystem_blocks.dylib (74) <8B23F806-8153-3163-B5D8-2C3327E211D8> /usr/lib/system/libsystem_blocks.dylib
    0x7fff68f9e000 -     0x7fff69025ff7  libsystem_c.dylib (1353.60.8) <99202CC3-2E27-3680-A8FF-5C516C485E90> /usr/lib/system/libsystem_c.dylib
    0x7fff69026000 -     0x7fff69029ffb  libsystem_configuration.dylib (1061.80.3) <8A149700-51AA-3205-A9D4-FF2A7BFC5412> /usr/lib/system/libsystem_configuration.dylib
    0x7fff6902a000 -     0x7fff6902dff7  libsystem_coreservices.dylib (114) <CCC076FA-310D-3FC9-950D-41E0F8DDA5D2> /usr/lib/system/libsystem_coreservices.dylib
    0x7fff6902e000 -     0x7fff69036fff  libsystem_darwin.dylib (1353.60.8) <31ACD3CC-6DD9-3F2E-B163-9342BE1D0AB0> /usr/lib/system/libsystem_darwin.dylib
    0x7fff69037000 -     0x7fff6903effb  libsystem_dnssd.dylib (1096.60.2) <BEBB815A-065A-365E-9701-8E05A8CF2040> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff6903f000 -     0x7fff69040ffb  libsystem_featureflags.dylib (17) <340AD606-7C39-3E6A-BAC3-EA1273FC27A4> /usr/lib/system/libsystem_featureflags.dylib
    0x7fff69041000 -     0x7fff6908efff  libsystem_info.dylib (538) <B0EBAE05-01AD-3D8E-92CC-5704394FF94A> /usr/lib/system/libsystem_info.dylib
    0x7fff6908f000 -     0x7fff690bbff7  libsystem_kernel.dylib (6153.81.5) <23909F45-79C3-34C9-A28F-337915925E5E> /usr/lib/system/libsystem_kernel.dylib
    0x7fff690bc000 -     0x7fff69103fcf  libsystem_m.dylib (3178) <7D775039-51B8-356E-82D7-98449065518A> /usr/lib/system/libsystem_m.dylib
    0x7fff69104000 -     0x7fff6912bfff  libsystem_malloc.dylib (283.60.1) <00190446-C6A8-3EA6-92D1-850EA85C84CE> /usr/lib/system/libsystem_malloc.dylib
    0x7fff6912c000 -     0x7fff69139ffb  libsystem_networkextension.dylib (1095.60.2) <1E7A59D0-BBCD-3CB0-8AD1-D442A1A5268E> /usr/lib/system/libsystem_networkextension.dylib
    0x7fff6913a000 -     0x7fff69143ff3  libsystem_notify.dylib (241) <AB3FAC47-A830-3158-8D99-DBC728CED1D6> /usr/lib/system/libsystem_notify.dylib
    0x7fff69144000 -     0x7fff6914dfef  libsystem_platform.dylib (220) <3DAFCC01-B768-3FFC-AC59-47AAE86BBEA1> /usr/lib/system/libsystem_platform.dylib
    0x7fff6914e000 -     0x7fff69158fff  libsystem_pthread.dylib (416.60.2) <AAF506F4-9455-3CC4-8E0B-6791E3C0993C> /usr/lib/system/libsystem_pthread.dylib
    0x7fff69159000 -     0x7fff6915dfff  libsystem_sandbox.dylib (1217.80.1) <C8F3841A-9364-3414-9E3F-9DE3D5FECF0C> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff6915e000 -     0x7fff69160fff  libsystem_secinit.dylib (62.80.1) <32F36517-9A1C-3D30-85C8-611A2F5E2355> /usr/lib/system/libsystem_secinit.dylib
    0x7fff69161000 -     0x7fff69168ffb  libsystem_symptoms.dylib (1238.60.1) <2EDF9CE8-4091-30A8-B125-0F25E579694A> /usr/lib/system/libsystem_symptoms.dylib
    0x7fff69169000 -     0x7fff6917fff2  libsystem_trace.dylib (1147.80.3) <AE11B1AC-352A-37F0-BCA9-055609070104> /usr/lib/system/libsystem_trace.dylib
    0x7fff69181000 -     0x7fff69186ffb  libunwind.dylib (35.4) <E867ACDE-EADE-3C91-A2A4-0C401788FD47> /usr/lib/system/libunwind.dylib
    0x7fff69187000 -     0x7fff691bcffe  libxpc.dylib (1738.80.8) <51E3E807-9133-3605-BB5F-D59ED6404ABF> /usr/lib/system/libxpc.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: 47456
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=429.2M resident=0K(0%) swapped_out_or_unallocated=429.2M(100%)
Writable regions: Total=107.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=107.5M(100%)
 
                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
Kernel Alloc Once                    8K        1 
MALLOC                            70.2M       24 
MALLOC guard page                   16K        3 
STACK GUARD                          4K        1 
Stack                             8712K        2 
Stack Guard                       56.0M        1 
VM_ALLOCATE                       26.3M       68 
__DATA                            8203K      126 
__DATA_CONST                       252K        7 
__LINKEDIT                       356.6M        8 
__OBJC_RO                         32.0M        1 
__OBJC_RW                         1780K        2 
__TEXT                            72.6M      125 
__UNICODE                          564K        1 
mapped file                       4320K        3 
shared memory                       12K        3 
===========                     =======  ======= 
TOTAL                            637.3M      377 

@fables-tales
Copy link
Owner

hi @wadetandy I've just spent a few days completely rewriting Rubyfmt's binary compilation. Could you pull and rebuild (noting that you now do not run 'rubyfmt.rb' to run rubyfmt) and let me know if it works for you now?

@wadetandy
Copy link
Contributor Author

Seems I'm getting a similar result still after pulling latest trunk and running make clean && make all. target/debug/rubyfmt--main works without an issue. target/release/rubyfmt-main fails:

$ target/release/rubyfmt-main rubyfmt.rb 
Segmentation fault: 11

Let me know if you need me to attach any build output files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants