command to find physical memory details of a process in Solaris - memory

How do I find total physical memory and available physical memory of a process(for e.g. sched process) in Solaris. Are there any commands available? Please provide with an example.

To known the total Solaris Available memory use
havoc#h100:~$ prtconf -v|grep Mem
Memory size: 3326 Megabytes
To display "process" memory, you must use the "pmap" command, as man page says
display information about the address space of a process
For example, if we have a process id (pid) for PostgreSQL DB (5057), you can check "eXtended" information using the "-x" flag, as
havoc#h100:~$ pfexec pmap -x 5057
5057: /u01/app/postgres/9.0/db/bin/64/postgres -D /var/postgres/9.0/data
Address Kbytes RSS Anon Locked Mode Mapped File
0000000000400000 5248 3648 - - r-x-- postgres
000000000092F000 52 52 24 - rw--- postgres
000000000093C000 384 40 12 - rw--- postgres
000000000099C000 536 432 304 - rw--- [ heap ]
FFFFFD7FFE320000 112 24 - - r-x-- libz.so.1
FFFFFD7FFE34B000 4 4 - - rw--- libz.so.1
FFFFFD7FFE34D000 12 12 - - r-x-- libpthread.so.1
FFFFFD7FFE350000 188 44 - - r-x-- libgss.so.1
FFFFFD7FFE38F000 4 4 - - rw--- libgss.so.1
FFFFFD7FFE390000 4 - - - rw--- libgss.so.1
FFFFFD7FFE3A0000 1612 484 - - r-x-- libcrypto.so.0.9.8
FFFFFD7FFE543000 144 140 - - rw--- libcrypto.so.0.9.8
FFFFFD7FFE567000 8 - - - rw--- libcrypto.so.0.9.8
FFFFFD7FFE570000 340 132 - - r-x-- libssl.so.0.9.8
FFFFFD7FFE5D5000 24 24 - - rw--- libssl.so.0.9.8
FFFFFD7FFE5E0000 36 16 - - r-x-- libpam.so.1
FFFFFD7FFE5F9000 4 4 - - rw--- libpam.so.1
FFFFFD7FFE600000 1468 252 - - r-x-- libxml2.so.2
FFFFFD7FFE77E000 48 48 - - rw--- libxml2.so.2
FFFFFD7FFE790000 260 64 - - r-x-- libxslt.so.1
FFFFFD7FFE7E0000 8 8 - - rw--- libxslt.so.1
FFFFFD7FFE830000 68 48 - - r-x-- libsocket.so.1
FFFFFD7FFE851000 4 4 - - rw--- libsocket.so.1
FFFFFD7FFE860000 560 436 - - r-x-- libnsl.so.1
FFFFFD7FFE8FC000 12 12 - - rw--- libnsl.so.1
FFFFFD7FFE8FF000 28 20 - - rw--- libnsl.so.1
FFFFFD7FFE940000 60 48 - - r-x-- methods_unicode.so.3
FFFFFD7FFE95E000 8 8 - - rw--- methods_unicode.so.3
FFFFFD7FFE960000 5328 348 - - r-x-- es_ES.UTF-8.so.3
FFFFFD7FFEEA3000 8 8 - - rw--- es_ES.UTF-8.so.3
FFFFFD7FFEEB0000 464 288 - - r-x-- libm.so.2
FFFFFD7FFEF33000 8 8 - - rw--- libm.so.2
FFFFFD7FFF073000 4 4 - - rwxs- [ anon ]
FFFFFD7FFF080000 64 8 - - rwx-- [ anon ]
FFFFFD7FFF0A0000 64 64 - - rwx-- [ anon ]
FFFFFD7FFF0C0000 4 4 - - rwx-- [ anon ]
FFFFFD7FFF0D0000 4 4 - - rwx-- [ anon ]
FFFFFD7FFF0E0000 24 20 4 - rwx-- [ anon ]
FFFFFD7FFF0F0000 4 4 - - rwx-- [ anon ]
FFFFFD7FFF100000 4 4 - - rwx-- [ anon ]
FFFFFD7FFF110000 4 4 - - rwx-- [ anon ]
FFFFFD7FFF120000 1664 1560 - - r-x-- libc.so.1
FFFFFD7FFF2C0000 48 48 24 - rw--- libc.so.1
FFFFFD7FFF2CC000 8 8 8 - rw--- libc.so.1
FFFFFD7FFF2D0000 4 4 - - rwx-- [ anon ]
FFFFFD7FFF2E0000 4 4 - - rwx-- [ anon ]
FFFFFD7FFF2F0000 4 4 - - rwx-- [ anon ]
FFFFFD7FFF300000 4 4 - - rwx-- [ anon ]
FFFFFD7FFF310000 4 4 - - rwx-- [ anon ]
FFFFFD7FFF320000 4 4 - - rwx-- [ anon ]
FFFFFD7FFF330000 4 4 - - rwx-- [ anon ]
FFFFFD7FFF340000 4 4 - - rwx-- [ anon ]
FFFFFD7FFF350000 4 4 - - rwx-- [ anon ]
FFFFFD7FFF360000 4 4 - - rwx-- [ anon ]
FFFFFD7FFF370000 4 4 - - rw--- [ anon ]
FFFFFD7FFF380000 4 4 - - rw--- [ anon ]
FFFFFD7FFF390000 4 4 - - rwx-- [ anon ]
FFFFFD7FFF393000 348 288 - - r-x-- ld.so.1
FFFFFD7FFF3FA000 12 12 4 - rwx-- ld.so.1
FFFFFD7FFF3FD000 8 8 - - rwx-- ld.so.1
FFFFFD7FFFDEB000 84 84 16 - rw--- [ stack ]
---------------- ---------- ---------- ---------- ----------
total Kb 19444 8836 396 -
I hope it will be useful,
Urko,

Total physical memory:
prtconf | head -1
Available physical and virtual memory:
vmstat 2 2
swap -s
By the way, "sched" isn't really a process but the kernel.

Related

Still error trying to run libtorch helloworld pod install on apple silicon m1

When trying to create the cocoapod for ios pytorch helloworld on my mac mini m1 (big sur 11.2.1)
with installed miniconda3, homebrew 3.1.1, ruby 3.0.1.p64, gem 3.2.15, pod 1.10.1
and PATH set to
/opt/homebrew/lib/ruby/gems/3.0.0/bin:/opt/homebrew/opt/ruby/bin:$PATH
according to pod install giving error related to ruby gems and libffi
running pod install dies with a segmentation fault, see the following ruby crash file
So maybe someone can give me an idea how to get ios 14.4 and m1 big sur 11 working together?
Process: ruby [80736]
Path: /opt/homebrew/*/ruby
Identifier: ruby
Version: 0
Code Type: ARM-64 (Native)
Parent Process: bash [70856]
Responsible: Terminal [70854]
User ID: 474179448
Date/Time: 2021-04-15 16:58:57.213 +0200
OS Version: macOS 11.2.1 (20D74)
Report Version: 12
Anonymous UUID: 5893C804-2FF8-FBB1-5889-A883C6E0135A
Sleep/Wake UUID: 0044F30E-9B3E-4B4D-B6D2-B508B271D6B1
Time Awake Since Boot: 85000 seconds
Time Since Wake: 2300 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 0x0000000000000001
Exception Note: EXC_CORPSE_NOTIFY
VM Regions Near 0x1:
-->
__TEXT 10234c000-102350000 [ 16K] r-x/r-x SM=COW /opt/homebrew/*
Application Specific Information:
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x0000000185430cec __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000185461c24 pthread_kill + 292
2 libsystem_c.dylib 0x00000001853a9864 abort + 104
3 libruby.3.0.dylib 0x00000001026923a0 die + 12
4 libruby.3.0.dylib 0x00000001026923f8 rb_bug_for_fatal_signal + 88
5 libruby.3.0.dylib 0x0000000102774490 sigsegv + 96
6 libsystem_platform.dylib 0x00000001854a9c44 _sigtramp + 56
7 ??? 0xffff80019719d8cc 0 + 18446603343051217100
8 libcurl.4.dylib 0x000000019719d8cc curl_easy_getinfo + 40
9 libffi.dylib 0x0000000191ef4050 ffi_call_SYSV + 80
10 libffi.dylib 0x0000000191efc9d8 ffi_call_int + 944
11 ffi_c.bundle 0x00000001042394cc rbffi_CallFunction + 260 (Call.c:400)
12 ffi_c.bundle 0x000000010423d250 attached_method_invoke + 44 (MethodHandle.c:174)
13 libffi.dylib 0x0000000191efce10 ffi_closure_SYSV_inner + 800
14 libffi.dylib 0x0000000191ef41e8 ffi_closure_SYSV + 56
15 libruby.3.0.dylib 0x00000001027e0b84 vm_call_cfunc_with_frame + 228
16 libruby.3.0.dylib 0x00000001027db078 vm_sendish + 1116
17 libruby.3.0.dylib 0x00000001027c7f70 vm_exec_core + 6948
18 libruby.3.0.dylib 0x00000001027d72c8 rb_vm_exec + 1652
19 libruby.3.0.dylib 0x00000001027e3df8 invoke_block_from_c_bh + 616
20 libruby.3.0.dylib 0x00000001027d1bf4 rb_yield + 180
21 libruby.3.0.dylib 0x00000001026359a0 rb_ary_each + 84
22 libruby.3.0.dylib 0x00000001027e0b84 vm_call_cfunc_with_frame + 228
23 libruby.3.0.dylib 0x00000001027db078 vm_sendish + 1116
24 libruby.3.0.dylib 0x00000001027c7f10 vm_exec_core + 6852
25 libruby.3.0.dylib 0x00000001027d72c8 rb_vm_exec + 1652
26 libruby.3.0.dylib 0x00000001027e3df8 invoke_block_from_c_bh + 616
27 libruby.3.0.dylib 0x00000001027d1bf4 rb_yield + 180
28 libruby.3.0.dylib 0x00000001026359a0 rb_ary_each + 84
29 libruby.3.0.dylib 0x00000001027e0b84 vm_call_cfunc_with_frame + 228
30 libruby.3.0.dylib 0x00000001027db078 vm_sendish + 1116
31 libruby.3.0.dylib 0x00000001027c7f10 vm_exec_core + 6852
32 libruby.3.0.dylib 0x00000001027d72c8 rb_vm_exec + 1652
33 libruby.3.0.dylib 0x00000001027e3df8 invoke_block_from_c_bh + 616
34 libruby.3.0.dylib 0x00000001027d1bf4 rb_yield + 180
35 libruby.3.0.dylib 0x0000000102639ca8 rb_ary_collect + 168
36 libruby.3.0.dylib 0x00000001027e0b84 vm_call_cfunc_with_frame + 228
37 libruby.3.0.dylib 0x00000001027db078 vm_sendish + 1116
38 libruby.3.0.dylib 0x00000001027c7f10 vm_exec_core + 6852
39 libruby.3.0.dylib 0x00000001027d72c8 rb_vm_exec + 1652
40 libruby.3.0.dylib 0x00000001026dd2cc load_iseq_eval + 200
41 libruby.3.0.dylib 0x00000001026db528 rb_load_internal + 56
42 libruby.3.0.dylib 0x00000001026dc850 rb_f_load + 180
43 libruby.3.0.dylib 0x00000001027e0b84 vm_call_cfunc_with_frame + 228
44 libruby.3.0.dylib 0x00000001027db078 vm_sendish + 1116
45 libruby.3.0.dylib 0x00000001027c7f70 vm_exec_core + 6948
46 libruby.3.0.dylib 0x00000001027d72c8 rb_vm_exec + 1652
47 libruby.3.0.dylib 0x0000000102698f8c rb_ec_exec_node + 268
48 libruby.3.0.dylib 0x0000000102698e20 ruby_run_node + 96
49 ruby 0x000000010234fec0 main + 92
50 libdyld.dylib 0x000000018547df34 start + 4
Thread 1:
0 libsystem_kernel.dylib 0x0000000185430e04 poll + 8
1 libruby.3.0.dylib 0x00000001027a9530 timer_pthread_fn + 124
2 libsystem_pthread.dylib 0x000000018546206c _pthread_start + 320
3 libsystem_pthread.dylib 0x000000018545cda0 thread_start + 8
Thread 2:: FFI Callback Dispatcher
0 libsystem_kernel.dylib 0x000000018542c488 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x0000000185462568 _pthread_cond_wait + 1192
2 ffi_c.bundle 0x000000010423b80c async_cb_wait + 88 (Function.c:605)
3 libruby.3.0.dylib 0x00000001027a1c48 rb_nogvl + 280
4 ffi_c.bundle 0x000000010423afa0 async_cb_event + 140 (Function.c:545)
5 libruby.3.0.dylib 0x00000001027a86b8 thread_start_func_2 + 1104
6 libruby.3.0.dylib 0x00000001027a8174 thread_start_func_1 + 152
7 libsystem_pthread.dylib 0x000000018546206c _pthread_start + 320
8 libsystem_pthread.dylib 0x000000018545cda0 thread_start + 8
Thread 3:: open3.rb:403
0 libsystem_kernel.dylib 0x000000018542c488 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x0000000185462568 _pthread_cond_wait + 1192
2 libruby.3.0.dylib 0x000000010279f7b0 native_cond_timedwait + 120
3 libruby.3.0.dylib 0x00000001027a81e0 thread_start_func_1 + 260
4 libsystem_pthread.dylib 0x000000018546206c _pthread_start + 320
5 libsystem_pthread.dylib 0x000000018545cda0 thread_start + 8
Thread 0 crashed with ARM Thread State (64-bit):
...
Binary Images:
0x10234c000 - 0x10234ffff +ruby (0) <F0E1ACB6-DADC-3709-A7C9-B20CA91730D9> /opt/homebrew/*/ruby
0x1023ec000 - 0x1023effff +encdb.bundle (0) <0512F22A-C22F-3133-B7DF-C0630FBB7291> /opt/homebrew/*/encdb.bundle
0x102400000 - 0x102403fff +transdb.bundle (0) <0749C9D7-559E-3089-8034-3F04F71589F5> /opt/homebrew/*/transdb.bundle
0x102414000 - 0x102417fff +monitor.bundle (0) <46C2FFE4-EE5B-3C46-98D9-E6FE36564805> /opt/homebrew/*/monitor.bundle
0x102428000 - 0x10242ffff +pathname.bundle (0) <52304C1D-6B1E-3CF4-927D-65D050FB8E7F> /opt/homebrew/*/pathname.bundle
0x102440000 - 0x102443fff +escape.bundle (0) <80C6BFF1-ECCE-3004-96A4-3BC8A836F380> /opt/homebrew/*/escape.bundle
0x102454000 - 0x102483fff +date_core.bundle (0) <5BEB2E2A-A969-3022-91F0-91F2A901D94B> /opt/homebrew/*/date_core.bundle
0x1024a0000 - 0x1024affff +bigdecimal.bundle (0) <1292C18E-90FF-3113-A794-70FC5E7A61E6> /opt/homebrew/*/bigdecimal.bundle
0x1024c0000 - 0x1024c7fff +stringio.bundle (0) <1A3F1181-6690-3E8C-BD5F-27F8A4A2F38D> /opt/homebrew/*/stringio.bundle
0x1024d8000 - 0x1024dbfff +etc.bundle (0) <1E536D8B-A4A9-30F3-84E5-ADF950666B25> /opt/homebrew/*/etc.bundle
0x1024ec000 - 0x1024effff +digest.bundle (0) <F596BA9F-A8BF-3D95-B5EB-6C617E4F0927> /opt/homebrew/*/digest.bundle
0x102500000 - 0x102503fff +strscan.bundle (0) <9548F035-0164-3C07-A923-BE0DC07C4229> /opt/homebrew/*/strscan.bundle
0x102514000 - 0x102517fff +wait.bundle (0) <AFC11C5F-E127-30EF-86C1-9DAD1B8027DA> /opt/homebrew/*/wait.bundle
0x10252c000 - 0x1025a7fff dyld (832.7.3) <4AB185B3-DC20-3C03-A193-67C0E6C589D7> /usr/lib/dyld
0x102630000 - 0x10289bfff +libruby.3.0.dylib (0) <F87CC4ED-8475-3AEE-AD7B-2AF63B4EA539> /opt/homebrew/*/libruby.3.0.dylib
0x103e1c000 - 0x103e3bfff +socket.bundle (0) <278655A9-7512-3AFC-AA68-6A824BA8C2FA> /opt/homebrew/*/socket.bundle
0x103e54000 - 0x103e5ffff +zlib.bundle (0) <34A11F55-C4B0-3781-84CD-7847CC56B29E> /opt/homebrew/*/zlib.bundle
0x103e74000 - 0x103e77fff +windows_31j.bundle (0) <610116E4-A042-3F9E-8CEF-0A0B4A608E4F> /opt/homebrew/*/windows_31j.bundle
0x103e88000 - 0x103e8ffff +parser.bundle (0) <E08CB57E-FA0E-368E-8C2A-988494BD82A6> /opt/homebrew/*/parser.bundle
0x103ea0000 - 0x103ea7fff +generator.bundle (0) <EA3FFFF6-797E-3172-9750-EFA602F9DA15> /opt/homebrew/*/generator.bundle
0x103eb8000 - 0x103ef7fff +openssl.bundle (0) <D2ACCAC6-35B7-365D-A590-DC0A5683A383> /opt/homebrew/*/openssl.bundle
0x103f24000 - 0x103f6ffff +libssl.1.1.dylib (0) <387D1B0F-EE36-3D80-96B0-21BCDA8B4E62> /opt/homebrew/*/libssl.1.1.dylib
0x103fa4000 - 0x104123fff +libcrypto.1.1.dylib (0) <6703626D-9366-31E0-8697-C74FFA806779> /opt/homebrew/*/libcrypto.1.1.dylib
0x1041c4000 - 0x1041c7fff +nonblock.bundle (0) <4285445A-338C-3B5F-9501-8132C66F1367> /opt/homebrew/*/nonblock.bundle
0x1041d8000 - 0x1041dffff +psych.bundle (0) <6E68A386-AEB1-38A8-9AA3-4CB61FFA0439> /opt/homebrew/*/psych.bundle
0x1041f0000 - 0x104207fff +libyaml-0.2.dylib (0) <86720355-4A4B-32E0-8BD0-18AB73A96463> /opt/homebrew/*/libyaml-0.2.dylib
0x104218000 - 0x10421bfff +sha2.bundle (0) <F641AD10-D5E2-3D7D-BBFA-56F8294B442B> /opt/homebrew/*/sha2.bundle
0x10422c000 - 0x104247fff +ffi_c.bundle (0) <6ADCB3BE-9056-33F0-AD30-10DAB38241E2> /opt/homebrew/*/ffi_c.bundle
0x104270000 - 0x104277fff libffi-trampolines.dylib (27) <ADFD2779-8444-3C1E-8AF1-F5BDCFDDA05B> /usr/lib/libffi-trampolines.dylib
0x104280000 - 0x104283fff +sha1.bundle (0) <B63454E5-2319-352D-864B-8CEFF2C94880> /opt/homebrew/*/sha1.bundle
0x1851be000 - 0x1851bffff libsystem_blocks.dylib (78) <9B6D4883-03E9-3785-851E-EA79FA64ADC1> /usr/lib/system/libsystem_blocks.dylib
0x1851c0000 - 0x1851f7fff libxpc.dylib (2038.80.3) <BD0DFD42-0DC3-3F3D-9C04-5A2B3D93794D> /usr/lib/system/libxpc.dylib
0x1851f8000 - 0x18520ffff libsystem_trace.dylib (1277.80.2) <4A466196-D2DD-367B-80AB-988F281EC3B8> /usr/lib/system/libsystem_trace.dylib
0x185210000 - 0x185284fff libcorecrypto.dylib (1000.80.5) <9BD8FED7-2A36-3602-A5A7-0CA87C03FB84> /usr/lib/system/libcorecrypto.dylib
0x185285000 - 0x1852b0fff libsystem_malloc.dylib (317.40.8) <21120432-52C1-34E4-BF01-623722FA3A41> /usr/lib/system/libsystem_malloc.dylib
0x1852b1000 - 0x1852f4fff libdispatch.dylib (1271.40.12) <F5BFBD55-EF70-3659-854D-9061325EB26D> /usr/lib/system/libdispatch.dylib
0x1852f5000 - 0x18532dfff libobjc.A.dylib (818.2) <B03625B0-501E-3AC1-8E16-08B621120EAD> /usr/lib/libobjc.A.dylib
0x18532e000 - 0x185330fff libsystem_featureflags.dylib (28.60.1) <297CC4DD-AFA4-3BA3-B4E1-0DF47E49C21E> /usr/lib/system/libsystem_featureflags.dylib
0x185331000 - 0x1853b1fff libsystem_c.dylib (1439.40.11) <A7147E08-E7C0-3842-916E-F2270A689F47> /usr/lib/system/libsystem_c.dylib
0x1853b2000 - 0x18540dfff libc++.1.dylib (904.4) <B139607F-1E80-3A8E-870D-0AC022069EA1> /usr/lib/libc++.1.dylib
0x18540e000 - 0x185427fff libc++abi.dylib (904.4) <1DD3A1C9-D765-34FB-B8C1-87BF52CE49C0> /usr/lib/libc++abi.dylib
0x185428000 - 0x18545afff libsystem_kernel.dylib (7195.81.3) <55FCA547-4877-3075-8A08-FE1620BFC682> /usr/lib/system/libsystem_kernel.dylib
0x18545b000 - 0x185466fff libsystem_pthread.dylib (454.80.2) <8E907E6C-C227-312E-944C-767093692AFF> /usr/lib/system/libsystem_pthread.dylib
0x185467000 - 0x1854a5fff libdyld.dylib (832.7.3) <EF759BF3-97FA-30EA-A1CA-EDECFEA726FE> /usr/lib/system/libdyld.dylib
0x1854a6000 - 0x1854acfff libsystem_platform.dylib (254.80.2) <8633A39C-10A2-3B44-93F7-617AB09FF640> /usr/lib/system/libsystem_platform.dylib
0x1854ad000 - 0x1854d8fff libsystem_info.dylib (542.40.3) <4CC96CFC-7198-3F26-8C8C-20FB010CDF98> /usr/lib/system/libsystem_info.dylib
0x1854d9000 - 0x185982fff com.apple.CoreFoundation (6.9 - 1774.101) <EA76C90A-23ED-3791-8FBC-8292916F0B16> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x185983000 - 0x185bb5fff com.apple.LaunchServices (1122.11 - 1122.11) <B79A592B-8036-3E24-AD9D-3FB4E7BE2983> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x185bb6000 - 0x185c8efff com.apple.gpusw.MetalTools (1.0 - 1) <ED9E3F77-4900-3B5B-978A-70AA6762DFBA> /System/Library/PrivateFrameworks/MetalTools.framework/Versions/A/MetalTools
0x185c8f000 - 0x185ee9fff libBLAS.dylib (1336.40.1) <96EAD889-D898-3884-A36C-F433DC2C64DD> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x185eea000 - 0x185f34fff com.apple.Lexicon-framework (1.0 - 86.1) <81EA9F2C-6059-322A-B336-56CD7F3AB6C2> /System/Library/PrivateFrameworks/Lexicon.framework/Versions/A/Lexicon
0x185f35000 - 0x185f97fff libSparse.dylib (106) <1A70E696-43E3-3D8B-A3E1-ADB624729BF4> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib
0x185f98000 - 0x18601ffff com.apple.SystemConfiguration (1.20 - 1.20) <DD6AB615-BB7B-3634-9D33-3923E5038BAA> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x186020000 - 0x186053fff libCRFSuite.dylib (50) <79C1501B-B0F6-341A-96CC-F4FE066E3D59> /usr/lib/libCRFSuite.dylib
0x186054000 - 0x18627efff libmecabra.dylib (929.1.1) <29B77781-FA91-3180-AFE8-608A355AE97E> /usr/lib/libmecabra.dylib
0x18627f000 - 0x186610fff com.apple.Foundation (6.9 - 1774.101) <8F7A0D5B-0E89-36F6-AC84-D3BEC2C44792> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x186611000 - 0x186702fff com.apple.LanguageModeling (1.0 - 247.1) <66B05273-1979-3DB2-9F68-C0E3A6CD88B1> /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
0x18728c000 - 0x1875eafff com.apple.security (7.0 - 59754.80.3) <C76855AD-6EE4-3413-9E6E-CC450BDB20E2> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x1875eb000 - 0x18785cfff libicucore.A.dylib (66109) <3CE58F97-7FC3-37D8-BB99-D6BECFC86DD2> /usr/lib/libicucore.A.dylib
0x18785d000 - 0x187867fff libsystem_darwin.dylib (1439.40.11) <B790A863-2D74-300E-9698-A25B5602B32F> /usr/lib/system/libsystem_darwin.dylib
0x187868000 - 0x187b57fff com.apple.CoreServices.CarbonCore (1307 - 1307) <3EC22291-65E5-3EB6-9498-9A1244C90147> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x187b93000 - 0x187bcefff com.apple.CSStore (1122.11 - 1122.11) <52D8D7A1-4879-3488-9D39-5F2C7696EFA8> /System/Library/PrivateFrameworks/CoreServicesStore.framework/Versions/A/CoreServicesStore
0x187bcf000 - 0x187c99fff com.apple.framework.IOKit (2.0.2 - 1845.81.1) <516911DA-18D7-3D17-8646-BBF7C75CD070> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x187c9a000 - 0x187ca5fff libsystem_notify.dylib (279.40.4) <A7B6BDA8-5371-352E-8A36-95D46C4B07F1> /usr/lib/system/libsystem_notify.dylib
0x1890bc000 - 0x1897c6fff libnetwork.dylib (2288.80.2) <07EC53A0-293C-3403-8394-755AE0BDDFA4> /usr/lib/libnetwork.dylib
0x1897c7000 - 0x189c54fff com.apple.CFNetwork (1220.1 - 1220.1) <3C5F5D1E-DB7C-3027-BBB0-91E6DEA3E264> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x189c55000 - 0x189c64fff libsystem_networkextension.dylib (1295.80.3) <B6BD1267-BE59-3E42-B2B5-2BF13F17D02D> /usr/lib/system/libsystem_networkextension.dylib
0x189c65000 - 0x189c66fff libenergytrace.dylib (22) <C5CFEF87-BB69-3351-A0C8-9B601383A45C> /usr/lib/libenergytrace.dylib
0x189c67000 - 0x189cbbfff libMobileGestalt.dylib (978.80.1) <93C6E288-C098-357F-B8A5-3E133DF39ECE> /usr/lib/libMobileGestalt.dylib
0x189cbc000 - 0x189cd3fff libsystem_asl.dylib (385) <31E28E59-1CDD-3B83-8BF0-56C675227FA2> /usr/lib/system/libsystem_asl.dylib
0x189cd4000 - 0x189cedfff com.apple.TCC (1.0 - 1) <C55FE947-0C86-3AAC-9306-9EFA7C033D07> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
0x18aea2000 - 0x18aeb9fff com.apple.ProtocolBuffer (1 - 285.23.11.29.1) <38163CA8-14FF-34A9-8AE4-D7D69B8C8854> /System/Library/PrivateFrameworks/ProtocolBuffer.framework/Versions/A/ProtocolBuffer
0x18aeba000 - 0x18b061fff libsqlite3.dylib (321.1) <8592B35B-9EA3-3C84-8453-9C86FB5C039C> /usr/lib/libsqlite3.dylib
0x18b1c8000 - 0x18b23bfff com.apple.AE (918.0.1 - 918.0.1) <7D13C9B5-D195-3E9E-B6C7-254F95A925C6> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x18b23c000 - 0x18b243fff libdns_services.dylib (1310.80.1) <64D4BA25-C388-3AB8-BDA8-2E81459DA46A> /usr/lib/libdns_services.dylib
0x18b244000 - 0x18b24bfff libsystem_symptoms.dylib (1431.40.36) <0657E539-C0CE-30F8-B630-FBAE36109542> /usr/lib/system/libsystem_symptoms.dylib
0x18b24c000 - 0x18b3a8fff com.apple.Network (1.0 - 1) <486C55B3-900C-3D09-AB0D-F99A152CFB84> /System/Library/Frameworks/Network.framework/Versions/A/Network
0x18b3a9000 - 0x18b3cefff com.apple.analyticsd (1.0 - 1) <E47FE17B-2ED2-3BE2-A5AB-046DB3C02EA0> /System/Library/PrivateFrameworks/CoreAnalytics.framework/Versions/A/CoreAnalytics
0x18b3cf000 - 0x18b3d1fff libDiagnosticMessagesClient.dylib (112) <20AD555E-DF00-3C91-A95B-AB2AD23780AA> /usr/lib/libDiagnosticMessagesClient.dylib
0x18b3d2000 - 0x18b41dfff com.apple.spotlight.metadata.utilities (1.0 - 2150.7.5) <5400DF7A-9249-30E9-B692-AC431C7F74D9> /System/Library/PrivateFrameworks/MetadataUtilities.framework/Versions/A/MetadataUtilities
0x18b41e000 - 0x18b4b7fff com.apple.Metadata (10.7.0 - 2150.7.5) <4B03E6F8-1568-338B-AA75-480F9D824516> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x18b4b8000 - 0x18b4befff com.apple.DiskArbitration (2.7 - 2.7) <7ED2211D-BA3C-37EC-BBA4-4320FBBC8A6A> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x18b4bf000 - 0x18b7ddfff com.apple.vImage (8.1 - 544.2) <B1B84588-8B57-3F98-9D50-AAC142DFF36E> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x18bcda000 - 0x18bce7fff com.apple.OpenDirectory (11.2 - 230.40.1) <C509DC91-F994-34B7-A5C5-A108E7DA5E4E> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
0x18bce8000 - 0x18bd07fff com.apple.CFOpenDirectory (11.2 - 230.40.1) <A5449895-6129-3BDF-864B-49ACA82E3052> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
0x18bd08000 - 0x18bd10fff com.apple.CoreServices.FSEvents (1290.40.2 - 1290.40.2) <72CF142E-3792-318C-B2D6-B60C5E219312> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
0x18bd11000 - 0x18bd35fff com.apple.coreservices.SharedFileList (144 - 144) <E4152CCC-4A03-3959-B788-D7DD1ADFF8A6> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList
0x18bd36000 - 0x18bd38fff libapp_launch_measurement.dylib (14.1) <A5637442-ADCB-30F0-AAB4-72FA1C5E3811> /usr/lib/libapp_launch_measurement.dylib
0x18bd39000 - 0x18bd7cfff com.apple.CoreAutoLayout (1.0 - 21.10.1) <6026D662-F75F-3C82-8C80-F6CEBF6369BF> /System/Library/PrivateFrameworks/CoreAutoLayout.framework/Versions/A/CoreAutoLayout
0x18bd7d000 - 0x18be68fff libxml2.2.dylib (34.9) <E170FFEE-EB9F-3252-9B16-4A47FBAC425A> /usr/lib/libxml2.2.dylib
0x18ccb9000 - 0x18cccafff libsystem_containermanager.dylib (318.80.2) <0B742EA4-AFA2-36B6-AB4B-2F8ACA7211AA> /usr/lib/system/libsystem_containermanager.dylib
0x18cccb000 - 0x18ccdcfff com.apple.IOSurface (289.3 - 289.3) <64E3394D-C908-378C-B5CE-B89C6BE61E9F> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x18ccdd000 - 0x18cce6fff com.apple.IOAccelerator (439.52 - 439.52) <2995471C-4A7A-342A-B702-496519D138E2> /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator
0x18cce7000 - 0x18cdddfff com.apple.Metal (244.32.7 - 244.32.7) <E8BC8E6D-4359-3A04-87CB-6F0D4F8F5C4B> /System/Library/Frameworks/Metal.framework/Versions/A/Metal
0x18d8e4000 - 0x18d93bfff com.apple.MetalPerformanceShaders.MPSCore (1.0 - 1) <F07355C4-C893-3534-B74E-DD5FBCBEC76C> /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Frameworks/MPSCore.framework/Versions/A/MPSCore
0x18d93c000 - 0x18d940fff libsystem_configuration.dylib (1109.60.2) <AEC5E654-A5B8-343E-80B7-27D5D0D856D9> /usr/lib/system/libsystem_configuration.dylib
0x18d941000 - 0x18d945fff libsystem_sandbox.dylib (1441.60.4) <D7CDDE27-978E-3511-AE6F-296D901290B2> /usr/lib/system/libsystem_sandbox.dylib
0x18d946000 - 0x18d947fff com.apple.AggregateDictionary (1.0 - 1) <516D38F6-E0E1-36B4-AC96-E5079ECC6ED4> /System/Library/PrivateFrameworks/AggregateDictionary.framework/Versions/A/AggregateDictionary
0x18d948000 - 0x18d94bfff com.apple.AppleSystemInfo (3.1.5 - 3.1.5) <E6509790-A434-3A6A-AF9E-EA1FDBF15F6A> /System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/AppleSystemInfo
0x18d94c000 - 0x18d94dfff liblangid.dylib (136) <12979BA7-28E3-3E74-AC24-65166A921235> /usr/lib/liblangid.dylib
0x18d94e000 - 0x18d9dcfff com.apple.CoreNLP (1.0 - 245.1) <92E28F08-9AB8-3B02-A889-677A716E393C> /System/Library/PrivateFrameworks/CoreNLP.framework/Versions/A/CoreNLP
0x18d9dd000 - 0x18d9e4fff com.apple.LinguisticData (1.0 - 399) <2B3E7B26-D669-38C0-9B7F-FFB2E94BC23B> /System/Library/PrivateFrameworks/LinguisticData.framework/Versions/A/LinguisticData
0x18d9e5000 - 0x18de9afff libBNNS.dylib (288.80.1) <695BEB14-BA36-3386-8C72-A219A73C9601> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib
0x18de9b000 - 0x18df4dfff libvDSP.dylib (760.40.6) <9FAC0A5B-0CD5-3999-815A-3C663EC71F65> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x18df4e000 - 0x18df60fff com.apple.CoreEmoji (1.0 - 128) <0FCD33E9-8DC4-3FB1-86DC-8ECA2FA10E37> /System/Library/PrivateFrameworks/CoreEmoji.framework/Versions/A/CoreEmoji
0x18df61000 - 0x18df6bfff com.apple.IOMobileFramebuffer (343.0.0 - 343.0.0) <57F4592F-D6FA-3ED9-ACEF-B1D7A7359DC1> /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/Versions/A/IOMobileFramebuffer
0x18e26b000 - 0x18e2f0fff com.apple.securityfoundation (6.0 - 55240.40.4) <6D4E864F-4AAC-31AF-85AF-C308528C0F0B> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
0x18e2f1000 - 0x18e2fafff com.apple.coreservices.BackgroundTaskManagement (1.0 - 104) <8981AD5E-DC12-3B54-BAC0-E9E113C4B1A0> /System/Library/PrivateFrameworks/BackgroundTaskManagement.framework/Versions/A/BackgroundTaskManagement
0x18e2fb000 - 0x18e300fff com.apple.xpc.ServiceManagement (1.0 - 1) <7B4325ED-9CF7-3D9E-A39C-F0AE7819F0C0> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
0x18e301000 - 0x18e303fff libquarantine.dylib (119.40.2) <66942A5C-57B3-3524-BA49-0F2DA4A584D1> /usr/lib/system/libquarantine.dylib
0x18e304000 - 0x18e313fff libCheckFix.dylib (31) <05E93C9D-45F9-3758-95FD-481E5EA2D5EF> /usr/lib/libCheckFix.dylib
0x1913f9000 - 0x19140cfff libsasl2.2.dylib (214) <D2C32F92-0728-3C67-B774-5CFC95F83497> /usr/lib/libsasl2.2.dylib
0x191cb4000 - 0x191cc4fff com.apple.Kerberos (3.0 - 1) <862CCDF8-B5F2-3EDE-B728-B62CE0F158F7> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x191cc5000 - 0x191d0dfff com.apple.GSS (4.0 - 2.0) <F4CC9D06-2046-3621-B654-96E7575115ED> /System/Library/Frameworks/GSS.framework/Versions/A/GSS
0x191d0e000 - 0x191d1dfff com.apple.CommonAuth (4.0 - 2.0) <DEE913BB-9741-3BB8-933A-64623CBCCC70> /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
0x191eea000 - 0x191eeafff liblaunch.dylib (2038.80.3) <327A64BF-8C2C-303D-91E4-70A168C5D87F> /usr/lib/system/liblaunch.dylib
0x191eec000 - 0x191efdfff libffi.dylib (27) <92403FAB-6424-3AA3-ADB4-98FCD46D892A> /usr/lib/libffi.dylib
After ffi has been fixed, I was able to successfully run pod install
without Rosetta
by running sudo gem install ethon with my homebrewn gem that installed ethon-0.13.0
and sudo gem install ffi that installed ffi-1.15.0
Thanks for trying to help
You have to run CocoaPods in Rosetta mode:
arch -x86_64 pod install
Until this issue is closed: https://github.com/CocoaPods/CocoaPods/issues/9907

Unable to convert [UInt8] to String. Error: EXC_BAD_ACCESS

I am trying to convert a UInt8 array to string but it is returning me nil.
func send(data: [UInt8]?) {
if(data == nil || data?.count == 0) { return }
let dataString = String(data: Data(bytes: data!, count: data!.count), encoding : String.Encoding.utf8)
print("DataString: \(dataString ?? "J[]")")
if(self.webSocket != nil) {
self.webSocket!.send(text: dataString ?? "J[]" )
}
}
when this function is called it has the input as
Optional<Array<UInt8>>
▿ some : 471 elements
- 0 : 68
- 1 : 31
- 2 : 139
- 3 : 8
- 4 : 0
- 5 : 0
- 6 : 0
- 7 : 0
- 8 : 0
- 9 : 0
- 10 : 19
- 11 : 117
- 12 : 148
- 13 : 201
- 14 : 82
- 15 : 228
- 16 : 48
- 17 : 12
- 18 : 134
- 19 : 223
- 20 : 197
- 21 : 103
- 22 : 29
- 23 : 108
- 24 : 45
- 25 : 142
- 26 : 211
- 27 : 199
- 28 : 169
- 29 : 225
- 30 : 1
- 31 : 88
- 32 : 102
- 33 : 46
- 34 : 20
- 35 : 135
- 36 : 0
- 37 : 125
- 38 : 27
- 39 : 104
- 40 : 10
- 41 : 194
- 42 : 129
- 43 : 162
- 44 : 120
- 45 : 119
- 46 : 36
- 47 : 47
- 48 : 77
- 49 : 22
- 50 : 79
- 51 : 37
- 52 : 94
- 53 : 218
- 54 : 95
- 55 : 44
- 56 : 75
- 57 : 191
- 58 : 228
- 59 : 190
- 60 : 253
- 61 : 116
- 62 : 243
- 63 : 155
- 64 : 59
- 65 : 4
- 66 : 225
- 67 : 68
- 68 : 126
- 69 : 148
- 70 : 72
- 71 : 41
- 72 : 50
- 73 : 184
- 74 : 199
- 75 : 105
- 76 : 158
- 77 : 220
- 78 : 225
- 79 : 211
- 80 : 221
- 81 : 127
- 82 : 204
- 83 : 71
- 84 : 165
- 85 : 183
- 86 : 40
- 87 : 2
- 88 : 24
- 89 : 34
- 90 : 228
- 91 : 17
- 92 : 5
- 93 : 136
- 94 : 64
- 95 : 16
- 96 : 226
- 97 : 8
- 98 : 1
- 99 : 61
- 100 : 4
- 101 : 47
- 102 : 218
- 103 : 16
- 104 : 188
- 105 : 62
- 106 : 195
- 107 : 96
- 108 : 175
- 109 : 7
- 110 : 46
- 111 : 63
- 112 : 61
- 113 : 36
- 114 : 109
- 115 : 33
- 116 : 128
- 117 : 62
- 118 : 162
- 119 : 179
- 120 : 182
- 121 : 26
- 122 : 235
- 123 : 24
- 124 : 56
- 125 : 26
- 126 : 138
- 127 : 11
- 128 : 52
- 129 : 54
- 130 : 164
- 131 : 7
- 132 : 40
- 133 : 178
- 134 : 253
- 135 : 212
- 136 : 150
- 137 : 106
- 138 : 179
- 139 : 30
- 140 : 109
- 141 : 143
- 142 : 44
- 143 : 64
- 144 : 30
- 145 : 163
- 146 : 237
- 147 : 193
- 148 : 161
- 149 : 135
- 150 : 6
- 151 : 155
- 152 : 179
- 153 : 223
- 154 : 152
- 155 : 195
- 156 : 58
- 157 : 227
- 158 : 113
- 159 : 225
- 160 : 194
- 161 : 112
- 162 : 222
- 163 : 147
- 164 : 20
- 165 : 137
- 166 : 95
- 167 : 32
- 168 : 244
- 169 : 141
- 170 : 37
- 171 : 85
- 172 : 3
- 173 : 194
- 174 : 216
- 175 : 119
- 176 : 143
- 177 : 36
- 178 : 171
- 179 : 162
- 180 : 58
- 181 : 108
- 182 : 220
- 183 : 64
- 184 : 175
- 185 : 1
- 186 : 83
- 187 : 4
- 188 : 26
- 189 : 118
- 190 : 144
- 191 : 33
- 192 : 22
- 193 : 89
- 194 : 36
- 195 : 171
- 196 : 26
- 197 : 117
- 198 : 8
- 199 : 88
- 200 : 154
- 201 : 87
- 202 : 63
- 203 : 124
- 204 : 54
- 205 : 175
- 206 : 70
- 207 : 147
- 208 : 13
- 209 : 172
- 210 : 64
- 211 : 213
- 212 : 9
- 213 : 62
- 214 : 3
- 215 : 66
- 216 : 144
- 217 : 102
- 218 : 44
- 219 : 7
- 220 : 128
- 221 : 155
- 222 : 99
- 223 : 23
- 224 : 11
- 225 : 26
- 226 : 169
- 227 : 70
- 228 : 164
- 229 : 186
- 230 : 115
- 231 : 202
- 232 : 125
- 233 : 209
- 234 : 219
- 235 : 150
- 236 : 82
- 237 : 102
- 238 : 17
- 239 : 36
- 240 : 213
- 241 : 143
- 242 : 116
- 243 : 98
- 244 : 235
- 245 : 163
- 246 : 217
- 247 : 95
- 248 : 33
- 249 : 201
- 250 : 8
- 251 : 219
- 252 : 102
- 253 : 82
- 254 : 79
- 255 : 200
- 256 : 50
- 257 : 198
- 258 : 59
- 259 : 225
- 260 : 209
- 261 : 142
- 262 : 46
- 263 : 112
- 264 : 159
- 265 : 21
- 266 : 204
- 267 : 177
- 268 : 152
- 269 : 26
- 270 : 220
- 271 : 79
- 272 : 139
- 273 : 161
- 274 : 181
- 275 : 194
- 276 : 1
- 277 : 34
- 278 : 215
- 279 : 202
- 280 : 225
- 281 : 85
- 282 : 174
- 283 : 216
- 284 : 252
- 285 : 23
- 286 : 95
- 287 : 29
- 288 : 54
- 289 : 74
- 290 : 251
- 291 : 180
- 292 : 233
- 293 : 129
- 294 : 41
- 295 : 51
- 296 : 238
- 297 : 177
- 298 : 44
- 299 : 51
- 300 : 75
- 301 : 118
- 302 : 224
- 303 : 199
- 304 : 172
- 305 : 214
- 306 : 83
- 307 : 54
- 308 : 85
- 309 : 74
- 310 : 213
- 311 : 244
- 312 : 222
- 313 : 196
- 314 : 16
- 315 : 48
- 316 : 101
- 317 : 136
- 318 : 157
- 319 : 248
- 320 : 44
- 321 : 2
- 322 : 99
- 323 : 212
- 324 : 221
- 325 : 168
- 326 : 142
- 327 : 24
- 328 : 228
- 329 : 46
- 330 : 180
- 331 : 242
- 332 : 87
- 333 : 56
- 334 : 108
- 335 : 148
- 336 : 17
- 337 : 104
- 338 : 247
- 339 : 102
- 340 : 91
- 341 : 122
- 342 : 132
- 343 : 103
- 344 : 20
- 345 : 124
- 346 : 207
- 347 : 151
- 348 : 88
- 349 : 33
- 350 : 242
- 351 : 57
- 352 : 192
- 353 : 96
- 354 : 25
- 355 : 104
- 356 : 184
- 357 : 132
- 358 : 97
- 359 : 10
- 360 : 252
- 361 : 136
- 362 : 195
- 363 : 160
- 364 : 121
- 365 : 211
- 366 : 151
- 367 : 83
- 368 : 51
- 369 : 205
- 370 : 241
- 371 : 191
- 372 : 56
- 373 : 174
- 374 : 175
- 375 : 15
- 376 : 215
- 377 : 146
- 378 : 178
- 379 : 62
- 380 : 149
- 381 : 227
- 382 : 161
- 383 : 123
- 384 : 91
- 385 : 98
- 386 : 49
- 387 : 184
- 388 : 190
- 389 : 14
- 390 : 82
- 391 : 9
- 392 : 237
- 393 : 8
- 394 : 233
- 395 : 181
- 396 : 195
- 397 : 124
- 398 : 215
- 399 : 145
- 400 : 250
- 401 : 117
- 402 : 19
- 403 : 169
- 404 : 36
- 405 : 241
- 406 : 14
- 407 : 220
- 408 : 243
- 409 : 244
- 410 : 116
- 411 : 116
- 412 : 7
- 413 : 247
- 414 : 247
- 415 : 52
- 416 : 31
- 417 : 95
- 418 : 29
- 419 : 184
- 420 : 183
- 421 : 121
- 422 : 122
- 423 : 157
- 424 : 127
- 425 : 233
- 426 : 191
- 427 : 154
- 428 : 59
- 429 : 248
- 430 : 175
- 431 : 51
- 432 : 125
- 433 : 127
- 434 : 249
- 435 : 119
- 436 : 154
- 437 : 30
- 438 : 127
- 439 : 159
- 440 : 30
- 441 : 222
- 442 : 159
- 443 : 142
- 444 : 207
- 445 : 179
- 446 : 126
- 447 : 54
- 448 : 127
- 449 : 188
- 450 : 216
- 451 : 250
- 452 : 213
- 453 : 197
- 454 : 229
- 455 : 159
- 456 : 139
- 457 : 235
- 458 : 27
- 459 : 247
- 460 : 117
- 461 : 247
- 462 : 13
- 463 : 251
- 464 : 171
- 465 : 44
- 466 : 100
- 467 : 39
- 468 : 5
- 469 : 0
- 470 : 0
And when this data is converted to string I am getting dataString as nil . And when I tried to debug I found this log
expression produced error: error: Execution was interrupted, reason:
EXC_BAD_ACCESS (code=2, address=0x16f174000). The process has been
returned to the state before expression evaluation.
My code is using this methods several times before and was working fine.
The reason for the failure is most likely the \0 bytes in the array and the data seems not to be an UTF8 string.
This is a more straightforward syntax. The parameter data is non-optional since when you call this method you want to send data.
if(self.webSocket != nil) { self.webSocket!... is pretty objective-c-ish. In Swift there is Optional chanining
func send(data: [UInt8]) {
guard !data.isEmpty, let dataString = String(data: Data(data), encoding: .utf8) else { return }
print("DataString:", dataString)
self.webSocket?.send(text: dataString)
}

Xcode 6.2 debugger detaches from device on app crash

Xcode 6.2's debugger doesn't seem to be catching a crash from my application. Whenever it crashes, I just get a popup that says:
Restore the connection to "Agile Lab's iPhone 6 Plus" and run "Tag
Beta" again, or if "Tag Beta" is still running, you can attach to it
by selecting Debug > Attach to Process > Tag Beta.
I have breakpoints on and a breakpoint for "All Exceptions." When I go to Window > Devices and hit "View Device Logs" it shows this:
Hardware Model: iPhone7,1
OS Version: iPhone OS 8.1.3 (12B466)
Kernel Version: Darwin Kernel Version 14.0.0: Mon Jan 12 21:30:05 PST 2015; root:xnu-2783.3.26~3/RELEASE_ARM64_T7000
Date: 2015-03-31 15:12:15 -0400
Time since snapshot: 1230 ms
Free pages: 2404
Active pages: 40050
Inactive pages: 18785
Speculative pages: 1206
Throttled pages: 0
Purgeable pages: 524
Wired pages: 147884
File-backed pages: 11282
Anonymous pages: 48760
Compressions: 487127
Decompressions: 189679
Compressor Size: 40449
Uncompressed Pages in Compressor: 103077
Page Size: 16384
Largest process: Tag Beta
Processes
Name | <UUID> | CPU Time| rpages| purgeable| recent_max| lifetime_max| fds | [reason] | (state)
WirelessRadioMan <REMOVED_FOR_PRIVACY> 0.036 295 0 - 889 50 [vm-pageshortage] (daemon) (idle)
nsurlstoraged <REMOVED_FOR_PRIVACY> 0.072 294 0 - 680 50 [vm-pageshortage] (daemon) (idle)
seld <REMOVED_FOR_PRIVACY> 0.052 218 0 - 995 50 [vm-pageshortage] (daemon)
nsurlsessiond <REMOVED_FOR_PRIVACY> 0.285 389 0 - 1326 50 [vm-pageshortage] (daemon)
passd <REMOVED_FOR_PRIVACY> 0.211 623 0 - 2400 50 [vm-pageshortage] (daemon)
nfcd <REMOVED_FOR_PRIVACY> 0.024 192 0 - 634 50 [vm-pageshortage] (daemon)
biometrickitd <REMOVED_FOR_PRIVACY> 0.084 232 0 - 720 50 [vm-pageshortage] (daemon)
debugserver <REMOVED_FOR_PRIVACY> 1.059 212 0 - 703 50 [vm-pageshortage] (daemon)
MobileMail <REMOVED_FOR_PRIVACY> 0.471 1277 0 - 3744 50 [vm-pageshortage] (resume) (continuous)
lsd <REMOVED_FOR_PRIVACY> 0.612 361 0 - 1136 50 [vm-pageshortage] (daemon)
tccd <REMOVED_FOR_PRIVACY> 0.146 281 0 - 968 50 (daemon)
Tag Beta <REMOVED_FOR_PRIVACY> 19.967 97247 524 - 55588 100 (frontmost) (resume)
ptpd <REMOVED_FOR_PRIVACY> 1.226 786 0 - 2356 50 (daemon)
BTServer <REMOVED_FOR_PRIVACY> 0.303 483 0 - 1811 50 (daemon)
wifid <REMOVED_FOR_PRIVACY> 2.303 544 0 - 1786 50 (daemon)
lockdownd <REMOVED_FOR_PRIVACY> 1.481 279 0 - 1007 50 (daemon)
locationd <REMOVED_FOR_PRIVACY> 35.207 2182 0 - 5074 50 (daemon)
discoveryd <REMOVED_FOR_PRIVACY> 4.462 580 0 - 1232 100 (daemon)
mediaserverd <REMOVED_FOR_PRIVACY> 28.952 36002 0 - 5968 50 (daemon)
imagent <REMOVED_FOR_PRIVACY> 0.418 522 0 - 1531 50 (daemon)
iaptransportd <REMOVED_FOR_PRIVACY> 0.333 308 0 - 906 50 (daemon)
identityservices <REMOVED_FOR_PRIVACY> 1.016 724 0 - 2027 50 (daemon)
cfprefsd <REMOVED_FOR_PRIVACY> 1.371 400 0 - 798 50 (daemon)
syslogd <REMOVED_FOR_PRIVACY> 1.376 233 0 - 449 50 (daemon)
powerd <REMOVED_FOR_PRIVACY> 0.608 215 0 - 514 50 (daemon)
apsd <REMOVED_FOR_PRIVACY> 1.141 733 0 - 2076 50 (daemon)
networkd <REMOVED_FOR_PRIVACY> 1.341 650 0 - 1747 50 (daemon)
vmd <REMOVED_FOR_PRIVACY> 0.086 550 0 - 2441 50 (daemon)
dataaccessd <REMOVED_FOR_PRIVACY> 0.571 853 0 - 2657 50 (daemon)
sharingd <REMOVED_FOR_PRIVACY> 0.360 719 0 - 2260 50 (daemon)
searchd <REMOVED_FOR_PRIVACY> 0.402 874 0 - 2886 50 (daemon)
syslog_relay <REMOVED_FOR_PRIVACY> 0.246 113 0 - 237 50 (daemon)
geod <REMOVED_FOR_PRIVACY> 1.152 868 0 - 1847 50 (daemon)
SpringBoard <REMOVED_FOR_PRIVACY> 14.007 6886 0 - 28595 50
backboardd <REMOVED_FOR_PRIVACY> 63.774 13669 524 - 3673 50 (daemon)
UserEventAgent <REMOVED_FOR_PRIVACY> 17.578 916 0 - 2959 100 (daemon)
fseventsd <REMOVED_FOR_PRIVACY> 0.689 387 0 - 629 50 (daemon)
configd <REMOVED_FOR_PRIVACY> 0.729 530 0 - 1544 50 (daemon)
fairplayd.H2 <REMOVED_FOR_PRIVACY> 0.530 149 0 - 1052 50 (daemon)
assertiond <REMOVED_FOR_PRIVACY> 0.319 296 0 - 1012 50 (daemon)
distnoted <REMOVED_FOR_PRIVACY> 0.078 186 0 - 321 50 (daemon)
wirelessproxd <REMOVED_FOR_PRIVACY> 0.068 248 0 - 1065 50 (daemon)
aggregated <REMOVED_FOR_PRIVACY> 23.356 1192 0 - 2375 50 (daemon)
discoveryd_helpe <REMOVED_FOR_PRIVACY> 0.020 153 0 - 752 50 (daemon)
filecoordination <REMOVED_FOR_PRIVACY> 0.030 224 0 - 898 50 (daemon)
DTMobileIS <REMOVED_FOR_PRIVACY> 3.415 642 0 +25 2345 50 (daemon)
gputoolsd <REMOVED_FOR_PRIVACY> 0.285 948 0 - 2340 50 (daemon)
CommCenter <REMOVED_FOR_PRIVACY> 30.132 1626 0 - 5021 50 (daemon)
notifyd <REMOVED_FOR_PRIVACY> 2.168 347 0 - 413 50 (daemon)
ReportCrash <REMOVED_FOR_PRIVACY> 0.043 162 0 - 579 50 (daemon)
**End**
Now if I run the app in production mode, and attach Fabric, it does catch the exception properly:
Fatal Exception: NSInvalidArgumentException
-[TAGFeedJourneyTableViewCell previewImageView]: unrecognized selector sent to instance 0x14271e9d0
Thread : Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x000000018349a59c __exceptionPreprocess + 132
1 libobjc.A.dylib 0x0000000193bec0e4 objc_exception_throw + 60
2 CoreFoundation 0x00000001834a1664 __methodDescriptionForSelector
3 CoreFoundation 0x000000018349e418 ___forwarding___ + 928
4 CoreFoundation 0x00000001833a2b6c _CF_forwarding_prep_0 + 92
5 Tag Beta 0x000000010012ca3c -[TAGFeedViewController tableView:didSelectRowAtIndexPath:] (TAGFeedViewController.m:603)
6 UIKit 0x0000000187d71390 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1280
7 UIKit 0x0000000187e2ecdc -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 276
8 UIKit 0x0000000187ccb564 _applyBlockToCFArrayCopiedToStack + 356
9 UIKit 0x0000000187c3ce78 _afterCACommitHandler + 532
10 CoreFoundation 0x0000000183452a50 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
11 CoreFoundation 0x000000018344f9dc __CFRunLoopDoObservers + 360
12 CoreFoundation 0x000000018344fdbc __CFRunLoopRun + 836
13 CoreFoundation 0x000000018337d0a4 CFRunLoopRunSpecific + 396
14 GraphicsServices 0x000000018c5175a4 GSEventRunModal + 168
15 UIKit 0x0000000187caeaa4 UIApplicationMain + 1488
16 Tag Beta 0x0000000100123f7c main (main.m:14)
17 libdyld.dylib 0x000000019425aa08 start + 4
While it's nice that Fabric is able to catch the issue, It'd be much more helpful if the debugger would catch the exception, so I could see values, stack traces, etc. Is there some setting that I just don't have on or is this an issue with Xcode?

what is VIRT column in HTOP? memory overhead?

What means the column VIRT in this HTOP output? It appears in red color and bolded.
I'm running an elasticsearch cluster with 4 nodes and indexing massive data.
1700 indexes with 3 shards, some with 10 small docs, others with 500k small docs
1 index with 3 shards with 60 million small documents
It shows green health all the time.
This is a DigitalOcean droplet with 4GB RAM and 2 CPU's. I'm setting heapsize to 2gb (-Xms and -Xmx).
Is this an overhead of RAM memory?
1 [||||| 9.4%] Tasks: 26, 122 thr; 2 running
2 [||| 4.3%] Load average: 0.25 0.47 0.65
Mem[||||||||||||||||||||||||||||||2592/3954MB] Uptime: 2 days, 01:05:57
Swp[ 0/0MB]
PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
9629 root 20 0 16.2G 2516M 97360 S 12.0 63.6 27h02:30 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
21564 root 20 0 16.2G 2516M 97360 S 4.0 63.6 1:12.17 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9644 root 20 0 16.2G 2516M 97360 S 1.0 63.6 47:39.34 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
20451 root 20 0 25808 2020 1208 R 0.0 0.0 25:19.48 htop
9654 root 20 0 16.2G 2516M 97360 S 1.0 63.6 5:43.32 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9651 root 20 0 16.2G 2516M 97360 S 0.0 63.6 6:34.53 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9653 root 20 0 16.2G 2516M 97360 S 1.0 63.6 1:46.23 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
21565 root 20 0 16.2G 2516M 97360 S 0.0 63.6 1:12.48 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
21563 root 20 0 16.2G 2516M 97360 S 0.0 63.6 1:11.12 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
21472 root 20 0 16.2G 2516M 97360 S 0.0 63.6 1:15.85 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9652 root 20 0 16.2G 2516M 97360 S 0.0 63.6 5:40.13 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
21562 root 20 0 16.2G 2516M 97360 S 0.0 63.6 1:10.93 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9631 root 20 0 16.2G 2516M 97360 S 0.0 63.6 1h19:18 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9632 root 20 0 16.2G 2516M 97360 S 0.0 63.6 1h19:19 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9633 root 20 0 16.2G 2516M 97360 S 0.0 63.6 7h19:13 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9850 root 20 0 16.2G 2516M 97360 S 0.0 63.6 18:16.00 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9634 root 20 0 16.2G 2516M 97360 S 0.0 63.6 1h29:54 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9722 root 20 0 16.2G 2516M 97360 S 0.0 63.6 50:24.42 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9703 root 20 0 16.2G 2516M 97360 S 0.0 63.6 4h25:50 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9704 root 20 0 16.2G 2516M 97360 S 0.0 63.6 4h26:01 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9662 root 20 0 16.2G 2516M 97360 S 0.0 63.6 1:19.60 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9669 root 20 0 16.2G 2516M 97360 S 0.0 63.6 0:08.13 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9665 root 20 0 16.2G 2516M 97360 S 0.0 63.6 6:39.74 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
385 syslog 20 0 243M 1696 872 S 0.0 0.0 0:13.37 rsyslogd -c5
397 syslog 20 0 243M 1696 872 S 0.0 0.0 0:05.58 rsyslogd -c5
9640 root 20 0 16.2G 2516M 97360 S 0.0 63.6 0:24.60 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9647 root 20 0 16.2G 2516M 97360 S 0.0 63.6 0:10.90 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9635 root 20 0 16.2G 2516M 97360 S 0.0 63.6 0:38.98 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
950 root 20 0 15988 664 488 S 0.0 0.0 0:21.99 /usr/sbin/irqbalance
9645 root 20 0 16.2G 2516M 97360 S 0.0 63.6 0:19.28 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9700 root 20 0 16.2G 2516M 97360 S 0.0 63.6 0:10.25 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
19171 root 20 0 86232 2316 1364 S 0.0 0.1 0:10.56 sshd: root#pts/0
9648 root 20 0 16.2G 2516M 97360 S 0.0 63.6 0:09.37 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9639 root 20 0 16.2G 2516M 97360 S 0.0 63.6 0:32.61 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9642 root 20 0 16.2G 2516M 97360 S 0.0 63.6 3:04.59 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9643 root 20 0 16.2G 2516M 97360 S 0.0 63.6 0:37.35 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9649 root 20 0 16.2G 2516M 97360 S 0.0 63.6 0:55.92 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9650 root 20 0 16.2G 2516M 97360 S 0.0 63.6 0:15.67 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9706 root 20 0 16.2G 2516M 97360 S 0.0 63.6 0:51.00 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9705 root 20 0 16.2G 2516M 97360 S 0.0 63.6 0:38.98 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9667 root 20 0 16.2G 2516M 97360 S 0.0 63.6 0:08.34 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9646 root 20 0 16.2G 2516M 97360 S 0.0 63.6 0:10.10 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9668 root 20 0 16.2G 2516M 97360 S 0.0 63.6 0:07.83 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
9666 root 20 0 16.2G 2516M 97360 S 0.0 63.6 0:08.01 /usr/bin/java -Xms256m -Xmx1g -Xss256k -
398 syslog 20 0 243M 1696 872 S 0.0 0.0 0:01.40 rsyslogd -c5
632 root 20 0 50044 1648 1036 S 0.0 0.0 0:02.10 /usr/sbin/sshd -D
1 root 20 0 24300 1644 740 S 0.0 0.0 0:01.80 /sbin/init
I can buy more machines, but I don't know which is better: another machines VS more RAM.
UPDATE: first and last lines pmap of one process
root#es2:~# pmap -d 3589
3589: /usr/bin/java -Xms256m -Xmx1g -Xss256k -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.foreground=yes -Des.path.home=/root/elasticsearch -cp :/root/elasticsearch/lib/elasticsearch-1.1.1.jar:/root/elasticsearch/lib/*:/root/elasticsearch/lib/sigar/* -Xmx2g -Xms2g -Des.node.name=es2 -Des.node.data=true -Des.node.master=false org.elasticsearch.bootstrap.Elasticsearch
Address Kbytes Mode Offset Device Mapping
0000000000400000 4 r-x-- 0000000000000000 0fd:00000 java
0000000000600000 4 r---- 0000000000000000 0fd:00000 java
0000000000601000 4 rw--- 0000000000001000 0fd:00000 java
000000000188d000 132 rw--- 0000000000000000 000:00000 [ anon ]
0000000775a00000 2118400 rw--- 0000000000000000 000:00000 [ anon ]
00000007f6ec0000 37696 rw--- 0000000000000000 000:00000 [ anon ]
00000007f9390000 111040 rw--- 0000000000000000 000:00000 [ anon ]
00007f6cb0132000 4872 r--s- 0000000000000000 0fd:00000 _8d.fdt
00007f6cb05f4000 5792 r--s- 0000000000000000 0fd:00000 _8d_es090_0.tim
00007f6cb0b9c000 6208 r--s- 0000000000000000 0fd:00000 _8c.fdt
00007f6cb11ac000 6548 r--s- 0000000000000000 0fd:00000 _a0.fdt
00007f6cb1811000 7648 r--s- 0000000000000000 0fd:00000 _a0_es090_0.tim
00007f6cb1f89000 5356 r--s- 0000000000000000 0fd:00000 _78.fdt
00007f6cb24c4000 6236 r--s- 0000000000000000 0fd:00000 _78_es090_0.tim
....
.......
.... (huge text)
....
......
..
00007f703dc6e000 4 rw--- 0000000000007000 0fd:00000 librt-2.15.so
00007f703dc6f000 84 r-x-- 0000000000000000 0fd:00000 libgcc_s.so.1
00007f703dc84000 2044 ----- 0000000000015000 0fd:00000 libgcc_s.so.1
00007f703de83000 4 r---- 0000000000014000 0fd:00000 libgcc_s.so.1
00007f703de84000 4 rw--- 0000000000015000 0fd:00000 libgcc_s.so.1
00007f703de85000 1004 r-x-- 0000000000000000 0fd:00000 libm-2.15.so
00007f703df80000 2044 ----- 00000000000fb000 0fd:00000 libm-2.15.so
00007f703e17f000 4 r---- 00000000000fa000 0fd:00000 libm-2.15.so
00007f703e180000 4 rw--- 00000000000fb000 0fd:00000 libm-2.15.so
00007f703e181000 904 r-x-- 0000000000000000 0fd:00000 libstdc++.so.6.0.16
00007f703e263000 2044 ----- 00000000000e2000 0fd:00000 libstdc++.so.6.0.16
00007f703e462000 32 r---- 00000000000e1000 0fd:00000 libstdc++.so.6.0.16
00007f703e46a000 8 rw--- 00000000000e9000 0fd:00000 libstdc++.so.6.0.16
00007f703e46c000 84 rw--- 0000000000000000 000:00000 [ anon ]
00007f703e481000 10988 r-x-- 0000000000000000 0fd:00000 libjvm.so
00007f703ef3c000 2048 ----- 0000000000abb000 0fd:00000 libjvm.so
00007f703f13c000 608 r---- 0000000000abb000 0fd:00000 libjvm.so
00007f703f1d4000 140 rw--- 0000000000b53000 0fd:00000 libjvm.so
00007f703f1f7000 180 rw--- 0000000000000000 000:00000 [ anon ]
00007f703f224000 88 r-x-- 0000000000000000 0fd:00000 libz.so.1.2.3.4
00007f703f23a000 2044 ----- 0000000000016000 0fd:00000 libz.so.1.2.3.4
00007f703f439000 4 r---- 0000000000015000 0fd:00000 libz.so.1.2.3.4
00007f703f43a000 4 rw--- 0000000000016000 0fd:00000 libz.so.1.2.3.4
00007f703f43b000 96 r-x-- 0000000000000000 0fd:00000 libpthread-2.15.so
00007f703f453000 2044 ----- 0000000000018000 0fd:00000 libpthread-2.15.so
00007f703f652000 4 r---- 0000000000017000 0fd:00000 libpthread-2.15.so
00007f703f653000 4 rw--- 0000000000018000 0fd:00000 libpthread-2.15.so
00007f703f654000 16 rw--- 0000000000000000 000:00000 [ anon ]
00007f703f658000 8 r-x-- 0000000000000000 0fd:00000 libdl-2.15.so
00007f703f65a000 2048 ----- 0000000000002000 0fd:00000 libdl-2.15.so
00007f703f85a000 4 r---- 0000000000002000 0fd:00000 libdl-2.15.so
00007f703f85b000 4 rw--- 0000000000003000 0fd:00000 libdl-2.15.so
00007f703f85c000 1748 r-x-- 0000000000000000 0fd:00000 libc-2.15.so
00007f703fa11000 2048 ----- 00000000001b5000 0fd:00000 libc-2.15.so
00007f703fc11000 16 r---- 00000000001b5000 0fd:00000 libc-2.15.so
00007f703fc15000 8 rw--- 00000000001b9000 0fd:00000 libc-2.15.so
00007f703fc17000 20 rw--- 0000000000000000 000:00000 [ anon ]
00007f703fc1c000 52 r-x-- 0000000000000000 0fd:00000 libjli.so
00007f703fc29000 2044 ----- 000000000000d000 0fd:00000 libjli.so
00007f703fe28000 4 r---- 000000000000c000 0fd:00000 libjli.so
00007f703fe29000 4 rw--- 000000000000d000 0fd:00000 libjli.so
00007f703fe2a000 136 r-x-- 0000000000000000 0fd:00000 ld-2.15.so
00007f703fe4c000 32 r--s- 000000000005a000 0fd:00000 lucene-codecs-4.7.2.jar
00007f703fe54000 16 r--s- 0000000000085000 0fd:00000 localedata.jar
00007f703fe58000 8 r--s- 0000000000012000 0fd:00000 zipfs.jar
00007f703fe5a000 12 r--s- 0000000000032000 0fd:00000 sunjce_provider.jar
00007f703fe5d000 16 r--s- 000000000003b000 0fd:00000 sunpkcs11.jar
00007f703fe61000 556 rw--- 0000000000000000 000:00000 [ anon ]
00007f703feec000 72 rw--- 0000000000000000 000:00000 [ anon ]
00007f703fefe000 220 rw--- 0000000000000000 000:00000 [ anon ]
00007f703ff35000 40 rw--- 0000000000000000 000:00000 [ anon ]
00007f703ff3f000 148 rw--- 0000000000000000 000:00000 [ anon ]
00007f703ff64000 580 rw--- 0000000000000000 000:00000 [ anon ]
00007f703fff5000 32 rw-s- 0000000000000000 0fd:00000 3279
00007f703fffd000 12 ----- 0000000000000000 000:00000 [ anon ]
00007f7040000000 268 rw--- 0000000000000000 000:00000 [ anon ]
00007f7040043000 4 r--s- 0000000000008000 0fd:00000 lucene-memory-4.7.2.jar
00007f7040044000 8 r--s- 000000000000f000 0fd:00000 pulse-java.jar
00007f7040046000 4 r--s- 0000000000007000 0fd:00000 java-atk-wrapper.jar
00007f7040047000 4 r--s- 0000000000002000 0fd:00000 dnsns.jar
00007f7040048000 4 rw--- 0000000000000000 000:00000 [ anon ]
00007f7040049000 4 r---- 0000000000000000 000:00000 [ anon ]
00007f704004a000 8 rw--- 0000000000000000 000:00000 [ anon ]
00007f704004c000 4 r---- 0000000000022000 0fd:00000 ld-2.15.so
00007f704004d000 8 rw--- 0000000000023000 0fd:00000 ld-2.15.so
00007fff9dcbe000 132 rw--- 0000000000000000 000:00000 [ stack ]
00007fff9ddfe000 8 r-x-- 0000000000000000 000:00000 [ anon ]
ffffffffff600000 4 r-x-- 0000000000000000 000:00000 [ anon ]
ffffffffff600000 4 r-x-- 0000000000000000 000:00000 [ anon ]
mapped: 17052740K writeable/private: 2523144K shared: 13562836K
root#es2:~#
I would stop worrying about the VIRT thing.
Virtual Memory Usage from Java under Linux, too much memory used
I suspect the top page is allocated for vsyscall purposes (see What are vdso and vsyscall?). Meaning that whilst your process has a 16Gb range of virtual memory mapped, it certainly isn't using anything like that in terms of physical memory. Go by the RES entry.
Regarding whether you need more machines or more memory... Is it slow? You would need to do more forensics on where your bottlenecks are, but the htop capture there doesn't appear to be under much pressure.

How to resolve consistent segmentation faults with ruby 1.9.3-p125 on MacOS Lion in libsystem_kernel.dylib

Rails 3.1.3 and/or 3.2.2. I am unable to determine the cause, would be grateful for any help. I get these intermittently but inconsistently when using WEBrick 1.3.1, but not if I run Unicorn. I am suspicious that it might be related somehow to the asset pipeline.
Ruby 1.9.3-p125 compiled with CC=/usr/bin/gcc-4.2 ./configure --prefix=$HOME/.rbenv/versions/1.9.3-p125 -C --enable-shared
Any tips of where to begin would be much appreciated.
Contents from Crash Reporter log:
Process: ruby [84846]
Path: /Users/USER/*/ruby
Identifier: ruby
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: zsh [579]
Date/Time: 2012-03-07 18:57:47.019 -0800
OS Version: Mac OS X 10.7.3 (11D50b)
Report Version: 9
Crashed Thread: 3
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000108535f38
VM Regions Near 0x108535f38:
MALLOC_LARGE (reserved 0000000108468000-0000000108528000 [ 768K] rw-/rwx SM=NUL reserved VM address space (unallocated)
-->
__TEXT 000000010853e000-000000010855c000 [ 120K] r-x/rwx SM=COW /Users/USER/*/ffi_c.bundle
Application Specific Information:
objc[84846]: garbage collection is OFF
abort() called
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff8ebebbca __psynch_cvwait + 10
1 libsystem_c.dylib 0x00007fff925ba274 _pthread_cond_wait + 840
2 ruby 0x00000001078e9e4b gvl_acquire + 107
3 ruby 0x00000001078ee298 rb_thread_fd_select + 680
4 ruby 0x00000001077c769f select_call + 1071
5 ruby 0x000000010779e1af rb_ensure + 127
6 ruby 0x00000001077bf5ae rb_f_select + 158
7 ruby 0x00000001078e0717 vm_call_method + 999
8 ruby 0x00000001078ce813 vm_exec_core + 18819
9 ruby 0x00000001078d34d3 vm_exec + 1459
10 ruby 0x00000001078e3280 rb_yield + 640
11 ruby 0x00000001077eebd1 rb_obj_tap + 17
12 ruby 0x00000001078e0717 vm_call_method + 999
13 ruby 0x00000001078ce813 vm_exec_core + 18819
14 ruby 0x00000001078d34d3 vm_exec + 1459
15 ruby 0x00000001078d3960 rb_iseq_eval + 368
16 ruby 0x00000001077a1feb rb_load_internal + 331
17 ruby 0x00000001077a3d09 rb_require_safe + 1145
18 ruby 0x00000001078e0717 vm_call_method + 999
19 ruby 0x00000001078ce813 vm_exec_core + 18819
20 ruby 0x00000001078d34d3 vm_exec + 1459
21 ruby 0x00000001078d37cc rb_iseq_eval_main + 508
22 ruby 0x000000010779e832 ruby_exec_internal + 178
23 ruby 0x00000001077a132c ruby_run_node + 60
24 ruby 0x000000010775f7bf main + 79
25 ruby 0x000000010775f764 start + 52
Thread 1:
0 libsystem_kernel.dylib 0x00007fff8ebebdf2 __select + 10
1 ruby 0x00000001078eabfb thread_timer + 299
2 libsystem_c.dylib 0x00007fff925b68bf _pthread_start + 335
3 libsystem_c.dylib 0x00007fff925b9b75 thread_start + 13
Thread 2:
0 libsystem_kernel.dylib 0x00007fff8ebebbca __psynch_cvwait + 10
1 libsystem_c.dylib 0x00007fff925ba274 _pthread_cond_wait + 840
2 ruby 0x00000001078ea7de native_sleep + 270
3 ruby 0x00000001078eb39a sleep_timeval + 170
4 ruby 0x000000010781f350 rb_f_sleep + 80
5 ruby 0x00000001078e0717 vm_call_method + 999
6 ruby 0x00000001078ce813 vm_exec_core + 18819
7 ruby 0x00000001078d34d3 vm_exec + 1459
8 ruby 0x00000001078d483d rb_vm_invoke_proc + 877
9 ruby 0x00000001078ec649 thread_start_func_2 + 1625
10 ruby 0x00000001078ec776 thread_start_func_1 + 150
11 libsystem_c.dylib 0x00007fff925b68bf _pthread_start + 335
12 libsystem_c.dylib 0x00007fff925b9b75 thread_start + 13
Thread 3 Crashed:
0 libsystem_kernel.dylib 0x00007fff8ebebce2 __pthread_kill + 10
1 libsystem_c.dylib 0x00007fff925b87d2 pthread_kill + 95
2 libsystem_c.dylib 0x00007fff925a9a7a abort + 143
3 ruby 0x0000000107799c04 rb_bug + 212
4 ruby 0x000000010786204f sigsegv + 127
5 libsystem_c.dylib 0x00007fff9260acfa _sigtramp + 26
6 ruby 0x00000001077b6298 gc_marks + 296
7 ruby 0x00000001077b775e rb_newobj + 494
8 ruby 0x00000001077b7f19 rb_node_newnode + 41
9 ruby 0x00000001078c7c7d rb_backref_get + 141
10 ruby 0x0000000107839eef rb_reg_search + 207
11 ruby 0x000000010783a619 rb_reg_match_m + 57
12 ruby 0x00000001078e0717 vm_call_method + 999
13 ruby 0x00000001078ce813 vm_exec_core + 18819
14 ruby 0x00000001078d34d3 vm_exec + 1459
15 ruby 0x00000001078e3280 rb_yield + 640
16 ruby 0x0000000107795b18 find_all_i + 56
17 ruby 0x00000001078e3533 rb_yield + 1331
18 ruby 0x00000001077650ee rb_ary_each + 78
19 ruby 0x00000001078d4c82 vm_call0 + 610
20 ruby 0x00000001078d795e iterate_method + 366
21 ruby 0x00000001078c65ca rb_iterate + 234
22 ruby 0x00000001078c678d rb_block_call + 45
23 ruby 0x0000000107792a63 enum_find_all + 115
24 ruby 0x00000001078e0717 vm_call_method + 999
25 ruby 0x00000001078ce813 vm_exec_core + 18819
26 ruby 0x00000001078d34d3 vm_exec + 1459
27 ruby 0x00000001078d483d rb_vm_invoke_proc + 877
28 ruby 0x00000001078ec649 thread_start_func_2 + 1625
29 ruby 0x00000001078ec776 thread_start_func_1 + 150
30 libsystem_c.dylib 0x00007fff925b68bf _pthread_start + 335
31 libsystem_c.dylib 0x00007fff925b9b75 thread_start + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fff8ebebbca __psynch_cvwait + 10
1 libsystem_c.dylib 0x00007fff925ba274 _pthread_cond_wait + 840
2 ruby 0x00000001078e9e4b gvl_acquire + 107
3 ruby 0x00000001078ede75 rb_thread_blocking_region + 165
4 socket.bundle 0x0000000107eb4868 rsock_ipaddr + 216
5 socket.bundle 0x0000000107ead29d ip_addr + 173
6 ruby 0x00000001078e0717 vm_call_method + 999
7 ruby 0x00000001078ce813 vm_exec_core + 18819
8 ruby 0x00000001078d34d3 vm_exec + 1459
9 ruby 0x00000001078d483d rb_vm_invoke_proc + 877
10 ruby 0x00000001078ec649 thread_start_func_2 + 1625
11 ruby 0x00000001078ec776 thread_start_func_1 + 150
12 libsystem_c.dylib 0x00007fff925b68bf _pthread_start + 335
13 libsystem_c.dylib 0x00007fff925b9b75 thread_start + 13
Thread 5:
0 libsystem_kernel.dylib 0x00007fff8ebebbca __psynch_cvwait + 10
1 libsystem_c.dylib 0x00007fff925ba274 _pthread_cond_wait + 840
2 ruby 0x00000001078e9e4b gvl_acquire + 107
3 ruby 0x00000001078ede75 rb_thread_blocking_region + 165
4 socket.bundle 0x0000000107eb4868 rsock_ipaddr + 216
5 socket.bundle 0x0000000107ead29d ip_addr + 173
6 ruby 0x00000001078e0717 vm_call_method + 999
7 ruby 0x00000001078ce813 vm_exec_core + 18819
8 ruby 0x00000001078d34d3 vm_exec + 1459
9 ruby 0x00000001078d483d rb_vm_invoke_proc + 877
10 ruby 0x00000001078ec649 thread_start_func_2 + 1625
11 ruby 0x00000001078ec776 thread_start_func_1 + 150
12 libsystem_c.dylib 0x00007fff925b68bf _pthread_start + 335
13 libsystem_c.dylib 0x00007fff925b9b75 thread_start + 13
Thread 6:
0 libsystem_kernel.dylib 0x00007fff8ebebbca __psynch_cvwait + 10
1 libsystem_c.dylib 0x00007fff925ba274 _pthread_cond_wait + 840
2 ruby 0x00000001078e9e4b gvl_acquire + 107
3 ruby 0x00000001078ede75 rb_thread_blocking_region + 165
4 socket.bundle 0x0000000107eb4984 rsock_ipaddr + 500
5 socket.bundle 0x0000000107ead3fd ip_peeraddr + 173
6 ruby 0x00000001078e0717 vm_call_method + 999
7 ruby 0x00000001078ce813 vm_exec_core + 18819
8 ruby 0x00000001078d34d3 vm_exec + 1459
9 ruby 0x00000001078d483d rb_vm_invoke_proc + 877
10 ruby 0x00000001078ec649 thread_start_func_2 + 1625
11 ruby 0x00000001078ec776 thread_start_func_1 + 150
12 libsystem_c.dylib 0x00007fff925b68bf _pthread_start + 335
13 libsystem_c.dylib 0x00007fff925b9b75 thread_start + 13
Thread 7:
0 libsystem_kernel.dylib 0x00007fff8ebebbca __psynch_cvwait + 10
1 libsystem_c.dylib 0x00007fff925ba274 _pthread_cond_wait + 840
2 ruby 0x00000001078e9e4b gvl_acquire + 107
3 ruby 0x00000001078ede75 rb_thread_blocking_region + 165
4 socket.bundle 0x0000000107eb4984 rsock_ipaddr + 500
5 socket.bundle 0x0000000107ead3fd ip_peeraddr + 173
6 ruby 0x00000001078e0717 vm_call_method + 999
7 ruby 0x00000001078ce813 vm_exec_core + 18819
8 ruby 0x00000001078d34d3 vm_exec + 1459
9 ruby 0x00000001078d483d rb_vm_invoke_proc + 877
10 ruby 0x00000001078ec649 thread_start_func_2 + 1625
11 ruby 0x00000001078ec776 thread_start_func_1 + 150
12 libsystem_c.dylib 0x00007fff925b68bf _pthread_start + 335
13 libsystem_c.dylib 0x00007fff925b9b75 thread_start + 13
Thread 3 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx: 0x000000010966c938 rdx: 0x0000000000000000
rdi: 0x000000000000345f rsi: 0x0000000000000006 rbp: 0x000000010966c960 rsp: 0x000000010966c938
r8: 0x00007fff7862cfb8 r9: 0x000000010966c4c8 r10: 0x00007fff8ebebd0a r11: 0xffffff80002d8220
r12: 0x00007fab7c9a9840 r13: 0x00007fab7e810eb0 r14: 0x0000000109771000 r15: 0xcccccccccccccccd
rip: 0x00007fff8ebebce2 rfl: 0x0000000000000246 cr2: 0xffffff8112bcad20
Logical CPU: 0
Binary Images:
0x10775e000 - 0x10797fff7 +ruby (??? - ???) <F67A69E6-8F3F-36C0-8128-2E515BC6FB28> /Users/USER/*/ruby
0x107adf000 - 0x107ae0fff +encdb.bundle (??? - ???) <CC2FD16A-6FA9-33CC-98D2-D63F358E6B5E> /Users/USER/*/encdb.bundle
0x107ae3000 - 0x107ae4ff7 +transdb.bundle (??? - ???) <E50EA0BA-488D-3ED7-A02B-3495F159297E> /Users/USER/*/transdb.bundle
0x107ae7000 - 0x107aeeff7 +pathname.bundle (??? - ???) <3F841DFF-8D3F-3B2E-BC2D-C624CB0A6463> /Users/USER/*/pathname.bundle
0x107af5000 - 0x107af6ff7 +etc.bundle (??? - ???) <B7CD4C2F-3847-3231-ABA0-08C48D7E4F01> /Users/USER/*/etc.bundle
0x107afb000 - 0x107afbfff +sha1.bundle (??? - ???) <81255934-7D84-34D7-B1C1-346CB019E1D3> /Users/USER/*/sha1.bundle
0x107d00000 - 0x107d03fff +psych.bundle (??? - ???) <33395735-DCE9-3D85-AA2E-8EC52086C773> /Users/USER/*/psych.bundle
0x107d09000 - 0x107d26fff +libyaml-0.2.dylib (3.2.0 - compatibility 3.0.0) <2E7F9734-BB6E-3EBC-A116-EA21CEA1638F> /Users/USER/*/libyaml-0.2.dylib
0x107d2e000 - 0x107d33fff +stringio.bundle (??? - ???) <BB58B88B-CD6C-382C-9AC5-C0462E9EE224> /Users/USER/*/stringio.bundle
0x107d38000 - 0x107d3bfff +strscan.bundle (??? - ???) <E9AB0034-C453-3069-9E93-ADD5A10DE433> /Users/USER/*/strscan.bundle
0x107d40000 - 0x107d75fef +date_core.bundle (??? - ???) <C7732A69-58E7-3498-AD53-6F6A4DAA6C4F> /Users/USER/*/date_core.bundle
0x107d8f000 - 0x107d91ff7 +digest.bundle (??? - ???) <A5910EC9-399F-34BB-8CA0-91E16E88CFAF> /Users/USER/*/digest.bundle
0x107d95000 - 0x107d95fff +iso_8859_1.bundle (??? - ???) <6D7A924B-19B5-3500-BA08-038D37BEED8F> /Users/USER/*/iso_8859_1.bundle
0x107d98000 - 0x107da3ff7 +zlib.bundle (??? - ???) <8EA2317A-27C6-3BC6-848E-CFAF9194E8DA> /Users/USER/*/zlib.bundle
0x107dda000 - 0x107e15fff +openssl.bundle (??? - ???) <0BE4DBFA-0F3F-3EF2-96C3-066C9DF22627> /Users/USER/*/openssl.bundle
0x107e44000 - 0x107e44ff7 +fcntl.bundle (??? - ???) <72BF0D6E-DED0-32CC-A3B2-7F0706468A41> /Users/USER/*/fcntl.bundle
0x107e47000 - 0x107e57fff +bigdecimal.bundle (??? - ???) <F7A9B0B1-F3EE-3C0E-BE05-58303716A76C> /Users/USER/*/bigdecimal.bundle
0x107e5e000 - 0x107e70fe7 +single_byte.bundle (??? - ???) <B06784E3-0E2A-3F5E-8A30-8AF02C5814DE> /Users/USER/*/single_byte.bundle
0x107e79000 - 0x107e79fef +escape.bundle (??? - ???) <EF012DE8-401A-3A11-BF42-48BB3B2101E3> /Users/USER/*/escape.bundle
0x107e7c000 - 0x107e80fef +parser.bundle (??? - ???) <E8CA6BEA-6A6A-330E-B421-977C601E76FB> /Users/USER/*/parser.bundle
0x107e85000 - 0x107e85fff +utf_16be.bundle (??? - ???) <71664F37-8EFA-3537-8849-44787A17EEDE> /Users/USER/*/utf_16be.bundle
0x107e88000 - 0x107e88fff +utf_16le.bundle (??? - ???) <81C2E44D-327F-3173-8DB5-A4F447D1B5C1> /Users/USER/*/utf_16le.bundle
0x107e8b000 - 0x107e8bfff +utf_32be.bundle (??? - ???) <593D338B-F729-3C52-BC41-D726C55EC16C> /Users/USER/*/utf_32be.bundle
0x107e8e000 - 0x107e8efff +utf_32le.bundle (??? - ???) <79810620-3BD5-3978-AC60-CD9A2AA25AC9> /Users/USER/*/utf_32le.bundle
0x107e91000 - 0x107e97fe7 +generator.bundle (??? - ???) <FA6AB0AF-088F-394D-8FB6-E760B7B95188> /Users/USER/*/generator.bundle
0x107e9e000 - 0x107ebeff7 +socket.bundle (??? - ???) <A09A498B-4585-3D0A-B673-0F76A628DA31> /Users/USER/*/socket.bundle
0x107ece000 - 0x107ed4fff +kgio_ext.bundle (??? - ???) <92BA2CFA-0F9A-3FDB-86DC-331D37E802A2> /Users/USER/*/kgio_ext.bundle
0x107edb000 - 0x107ee4ff7 +unicorn_http.bundle (??? - ???) <6F47A521-1C62-382F-9508-3C036241AE17> /Users/USER/*/unicorn_http.bundle
0x107ee9000 - 0x107eeafff +raindrops_ext.bundle (??? - ???) <3E00DB91-6D12-3FDC-967B-F15576C20B93> /Users/USER/*/raindrops_ext.bundle
0x107eed000 - 0x107eedff7 +md5.bundle (??? - ???) <85C04DCD-6155-3789-AC13-FE29483C0019> /Users/USER/*/md5.bundle
0x107ef0000 - 0x107ef2fff +cparse.bundle (??? - ???) <4AA12B44-A1EE-3D47-A44A-1B3D33C397E5> /Users/USER/*/cparse.bundle
0x108036000 - 0x108048fff +nokogiri.bundle (??? - ???) <D5681380-EF69-32FD-B43B-066FC820ACA9> /Users/USER/*/nokogiri.bundle
0x10823c000 - 0x108241fff +sqlite3_native.bundle (??? - ???) <5CFDB871-B73B-3FF4-AB79-D0BAAE9F6326> /Users/USER/*/sqlite3_native.bundle
0x10853e000 - 0x10855bfff +ffi_c.bundle (??? - ???) <2A06D7CD-D796-3FF0-AA88-B8F492553823> /Users/USER/*/ffi_c.bundle
0x7fff6735e000 - 0x7fff67392baf dyld (195.6 - ???) <0CD1B35B-A28F-32DA-B72E-452EAD609613> /usr/lib/dyld
0x7fff86e38000 - 0x7fff86e39ff7 libsystem_sandbox.dylib (??? - ???) <5087ADAD-D34D-3844-9D04-AFF93CED3D92> /usr/lib/system/libsystem_sandbox.dylib
0x7fff8801d000 - 0x7fff8801efff libdnsinfo.dylib (395.7.0 - compatibility 1.0.0) <37FEFE78-BCB5-37EC-8E99-747469BCA4C7> /usr/lib/system/libdnsinfo.dylib
0x7fff88575000 - 0x7fff88587ff7 libz.1.dylib (1.2.5 - compatibility 1.0.0) <30CBEF15-4978-3DED-8629-7109880A19D4> /usr/lib/libz.1.dylib
0x7fff8912f000 - 0x7fff89137fff libsystem_dnssd.dylib (??? - ???) <998E3778-7B43-301C-9053-12045AB8544D> /usr/lib/system/libsystem_dnssd.dylib
0x7fff89138000 - 0x7fff89145fff libexslt.0.dylib (9.13.0 - compatibility 9.0.0) <0AF8D6E4-BDDC-39F9-84E9-02C3C1E9F82A> /usr/lib/libexslt.0.dylib
0x7fff891ac000 - 0x7fff89290e5f libobjc.A.dylib (228.0.0 - compatibility 1.0.0) <871E688B-CF57-3BC7-80D6-F6476DFF109B> /usr/lib/libobjc.A.dylib
0x7fff8a22e000 - 0x7fff8a2a1fff libstdc++.6.dylib (52.0.0 - compatibility 7.0.0) <6BDD43E4-A4B1-379E-9ED5-8C713653DFF2> /usr/lib/libstdc++.6.dylib
0x7fff8a557000 - 0x7fff8a584fe7 libSystem.B.dylib (159.1.0 - compatibility 1.0.0) <7BEBB139-50BB-3112-947A-F4AA168F991C> /usr/lib/libSystem.B.dylib
0x7fff8a6e9000 - 0x7fff8a6efff7 libunwind.dylib (30.0.0 - compatibility 1.0.0) <1E9C6C8C-CBE8-3F4B-A5B5-E03E3AB53231> /usr/lib/system/libunwind.dylib
0x7fff8b3d9000 - 0x7fff8b3daff7 libsystem_blocks.dylib (53.0.0 - compatibility 1.0.0) <8BCA214A-8992-34B2-A8B9-B74DEACA1869> /usr/lib/system/libsystem_blocks.dylib
0x7fff8c4df000 - 0x7fff8c5ebfff libcrypto.0.9.8.dylib (44.0.0 - compatibility 0.9.8) <3A8E1F89-5E26-3C8B-B538-81F5D61DBF8A> /usr/lib/libcrypto.0.9.8.dylib
0x7fff8c5ec000 - 0x7fff8c62eff7 libcommonCrypto.dylib (55010.0.0 - compatibility 1.0.0) <BB770C22-8C57-365A-8716-4A3C36AE7BFB> /usr/lib/system/libcommonCrypto.dylib
0x7fff8c62f000 - 0x7fff8c633fff libmathCommon.A.dylib (2026.0.0 - compatibility 1.0.0) <FF83AFF7-42B2-306E-90AF-D539C51A4542> /usr/lib/system/libmathCommon.A.dylib
0x7fff8c640000 - 0x7fff8c645ff7 libsystem_network.dylib (??? - ???) <5DE7024E-1D2D-34A2-80F4-08326331A75B> /usr/lib/system/libsystem_network.dylib
0x7fff8cd63000 - 0x7fff8cd65fff com.apple.TrustEvaluationAgent (2.0 - 1) <1F31CAFF-C1C6-33D3-94E9-11B721761DDF> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
0x7fff8ce24000 - 0x7fff8ce32fff libdispatch.dylib (187.7.0 - compatibility 1.0.0) <712AAEAC-AD90-37F7-B71F-293FF8AE8723> /usr/lib/system/libdispatch.dylib
0x7fff8d246000 - 0x7fff8d281fff libsystem_info.dylib (??? - ???) <35F90252-2AE1-32C5-8D34-782C614D9639> /usr/lib/system/libsystem_info.dylib
0x7fff8dd8e000 - 0x7fff8dddcfff libauto.dylib (??? - ???) <D8AC8458-DDD0-3939-8B96-B6CED81613EF> /usr/lib/libauto.dylib
0x7fff8de92000 - 0x7fff8de9dff7 libc++abi.dylib (14.0.0 - compatibility 1.0.0) <8FF3D766-D678-36F6-84AC-423C878E6D14> /usr/lib/libc++abi.dylib
0x7fff8e1df000 - 0x7fff8e1e3fff libdyld.dylib (195.5.0 - compatibility 1.0.0) <380C3F44-0CA7-3514-8080-46D1C9DF4FCD> /usr/lib/system/libdyld.dylib
0x7fff8e430000 - 0x7fff8e469fe7 libssl.0.9.8.dylib (44.0.0 - compatibility 0.9.8) <79AAEC98-1258-3DA4-B1C0-4120049D390B> /usr/lib/libssl.0.9.8.dylib
0x7fff8e5e0000 - 0x7fff8e5e6fff libmacho.dylib (800.0.0 - compatibility 1.0.0) <165514D7-1BFA-38EF-A151-676DCD21FB64> /usr/lib/system/libmacho.dylib
0x7fff8e621000 - 0x7fff8e62aff7 libsystem_notify.dylib (80.1.0 - compatibility 1.0.0) <A4D651E3-D1C6-3934-AD49-7A104FD14596> /usr/lib/system/libsystem_notify.dylib
0x7fff8ebc8000 - 0x7fff8ebd2ff7 liblaunch.dylib (392.35.0 - compatibility 1.0.0) <8F8BB206-CECA-33A5-A105-4A01C3ED5D23> /usr/lib/system/liblaunch.dylib
0x7fff8ebd5000 - 0x7fff8ebf5fff libsystem_kernel.dylib (1699.24.8 - compatibility 1.0.0) <C56819BB-3779-3726-B610-4CF7B3ABB6F9> /usr/lib/system/libsystem_kernel.dylib
0x7fff90775000 - 0x7fff90776ff7 libremovefile.dylib (21.1.0 - compatibility 1.0.0) <739E6C83-AA52-3C6C-A680-B37FE2888A04> /usr/lib/system/libremovefile.dylib
0x7fff907b8000 - 0x7fff907b9fff libunc.dylib (24.0.0 - compatibility 1.0.0) <337960EE-0A85-3DD0-A760-7134CF4C0AFF> /usr/lib/system/libunc.dylib
0x7fff90ed0000 - 0x7fff90efbff7 libxslt.1.dylib (3.24.0 - compatibility 3.0.0) <4DB5ED11-004B-36B5-AE5F-2AB714754241> /usr/lib/libxslt.1.dylib
0x7fff91451000 - 0x7fff91553ff7 libxml2.2.dylib (10.3.0 - compatibility 10.0.0) <22F1D1B6-1761-3687-9EFD-036EA15FB2E4> /usr/lib/libxml2.2.dylib
0x7fff9172c000 - 0x7fff91749fff libxpc.dylib (77.18.0 - compatibility 1.0.0) <26C05F31-E809-3B47-AF42-1460971E3AC3> /usr/lib/system/libxpc.dylib
0x7fff9174a000 - 0x7fff9174ffff libcompiler_rt.dylib (6.0.0 - compatibility 1.0.0) <98ECD5F6-E85C-32A5-98CD-8911230CB66A> /usr/lib/system/libcompiler_rt.dylib
0x7fff92568000 - 0x7fff92645fef libsystem_c.dylib (763.12.0 - compatibility 1.0.0) <FF69F06E-0904-3C08-A5EF-536FAFFFDC22> /usr/lib/system/libsystem_c.dylib
0x7fff92651000 - 0x7fff92758fe7 libsqlite3.dylib (9.6.0 - compatibility 9.0.0) <EE02BB01-64C9-304D-9719-A35F5CD6D04C> /usr/lib/libsqlite3.dylib
0x7fff92759000 - 0x7fff92759fff libkeymgr.dylib (23.0.0 - compatibility 1.0.0) <61EFED6A-A407-301E-B454-CD18314F0075> /usr/lib/system/libkeymgr.dylib
0x7fff92902000 - 0x7fff929f7fff libiconv.2.dylib (7.0.0 - compatibility 7.0.0) <5C40E880-0706-378F-B864-3C2BD922D926> /usr/lib/libiconv.2.dylib
0x7fff92aed000 - 0x7fff92ceffff libicucore.A.dylib (46.1.0 - compatibility 1.0.0) <38CD6ED3-C8E4-3CCD-89AC-9C3198803101> /usr/lib/libicucore.A.dylib
0x7fff92cf0000 - 0x7fff92cf7fff libcopyfile.dylib (85.1.0 - compatibility 1.0.0) <0AB51EE2-E914-358C-AC19-47BC024BDAE7> /usr/lib/system/libcopyfile.dylib
0x7fff92f82000 - 0x7fff92ff7ff7 libc++.1.dylib (19.0.0 - compatibility 1.0.0) <C0EFFF1B-0FEB-3F99-BE54-506B35B555A9> /usr/lib/libc++.1.dylib
0x7fff93155000 - 0x7fff9315afff libcache.dylib (47.0.0 - compatibility 1.0.0) <1571C3AB-BCB2-38CD-B3B2-C5FC3F927C6A> /usr/lib/system/libcache.dylib
0x7fff93451000 - 0x7fff93453fff libquarantine.dylib (36.2.0 - compatibility 1.0.0) <48656562-FF20-3B55-9F93-407ACA7341C0> /usr/lib/system/libquarantine.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: 66836
thread_create: 1
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=63.6M resident=27.1M(43%) swapped_out_or_unallocated=36.5M(57%)
Writable regions: Total=150.1M written=47.1M(31%) resident=60.6M(40%) swapped_out=0K(0%) unallocated=89.5M(60%)
REGION TYPE VIRTUAL
=========== =======
MALLOC 124.0M
MALLOC guard page 48K
MALLOC_LARGE (reserved) 14.5M reserved VM address space (unallocated)
STACK GUARD 56.0M
Stack 11.1M
VM_ALLOCATE 4K
__DATA 1216K
__LINKEDIT 48.9M
__TEXT 14.7M
shared memory 12K
=========== =======
TOTAL 270.5M
TOTAL, minus reserved VM space 256.0M
Are you just trying to get up and running with your development environment on a newer Lion computer, or do you absolutely need these version numbers to be compatible for some obscure feature? If you just want a modern build that works, I'm using Ruby 1.9.3.p0 and Rails 3.2.1 on Lion, and it's been working for a solid month. I followed Dan Benjamin's old Hivelogic tutorial (skipping MySQL the bits and bumping up the version numbers). The only caveat is that you'll need to download Xcode 4 from the App Store.
If you really just need those specific versions to work together then my answer may not be very helpful. Sorry if I've wasted your time.
If anyone else is having this problem, migrating to use the much faster thin server in development resolved the problem.

Resources