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

Ruby 2.7.2 crash #24

Open
joel opened this issue Dec 10, 2020 · 11 comments
Open

Ruby 2.7.2 crash #24

joel opened this issue Dec 10, 2020 · 11 comments

Comments

@joel
Copy link

joel commented Dec 10, 2020

Hi there,

I've a tons of images to organize, I wrote a little ruby script to help me, but I've notice crashed on certain images. But when I try to read the Exif on https://exifinfo.org/detail/xYXx6zG4rRX5KWYD7SlW9A I got it.

irb
image_path = "<A PATH>/IMG_4977.JPG"

require 'exif'

exif_info = Exif::Data.new(IO.read(image_path))

IMG_4977

Configuration

Macbook Apple M1
Big Sur 

asdf --version
v0.8.0

ruby --version
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin20]

iterm2 Build 3.4.2
Running under Rosetta 2

clang --version
Apple clang version 12.0.0 (clang-1200.0.32.28)
Target: x86_64-apple-darwin20.2.0
Thread model: posix

brew info libexif
libexif: stable 0.6.22 (bottled)
EXIF parsing library
https://libexif.github.io/
/usr/local/Cellar/libexif/0.6.22 (58 files, 2.9MB) *
  Poured from bottle on 2020-12-07 at 19:22:40
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/libexif.rb
License: LGPL-2.1
==> Dependencies
Build: autoconf ✔, automake ✔, libtool ✔
Required: gettext ✔

gem info exif
exif (2.2.0)
    Author: Jian Weihang
    Homepage: https://github.com/tonytonyjan/exif
    License: MIT
    Installed at: ~/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0

Crash

Process:               ruby [20230]
Path:                  /Users/USER/*/ruby
Identifier:            ruby
Version:               0
Code Type:             X86-64 (Translated)
Parent Process:        zsh [11563]
Responsible:           iTerm2 [715]
User ID:               501

Date/Time:             2020-12-10 15:33:42.116 +0100
OS Version:            macOS 11.0.1 (20B29)
Report Version:        12
Anonymous UUID:        6E628FD9-63F5-8A99-6438-AC20A48E095C


Time Awake Since Boot: 19000 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                      102ebf000-102ec3000    [   16K] r-x/r-x SM=COW  /Users/*

Application Specific Information:
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   ???                           	0x00007ffe95c929bc ???
1   libsystem_kernel.dylib        	0x00007fff2036c462 __pthread_kill + 10
2   libsystem_c.dylib             	0x00007fff202ed720 abort + 120
3   libruby.2.7.dylib             	0x000000010b21c4e9 die + 9
4   libruby.2.7.dylib             	0x000000010b21c713 rb_bug_for_fatal_signal + 547
5   libruby.2.7.dylib             	0x000000010b346a5b sigsegv + 91
6   libsystem_platform.dylib      	0x00007fff203ded7d _sigtramp + 29
7   ???                           	000000000000000000 0 + 0
8   libexif.12.dylib              	0x000000010d0abe98 exif_content_foreach_entry + 52
9   libexif.12.dylib              	0x000000010d0add88 exif_data_foreach_content + 42
10  exif.bundle                   	0x000000010d08a885 new + 757 (data.c:236)
11  libruby.2.7.dylib             	0x000000010b3d492c vm_call_cfunc + 364
12  libruby.2.7.dylib             	0x000000010b3bac90 vm_exec_core + 14560
13  libruby.2.7.dylib             	0x000000010b3cf7b3 rb_vm_exec + 2707
14  libruby.2.7.dylib             	0x000000010b3c9576 rb_f_eval + 742
15  libruby.2.7.dylib             	0x000000010b3d492c vm_call_cfunc + 364
16  libruby.2.7.dylib             	0x000000010b3bac90 vm_exec_core + 14560
17  libruby.2.7.dylib             	0x000000010b3cf7b3 rb_vm_exec + 2707
18  libruby.2.7.dylib             	0x000000010b3df1b7 loop_i + 71
19  libruby.2.7.dylib             	0x000000010b228494 rb_vrescue2 + 276
20  libruby.2.7.dylib             	0x000000010b22835b rb_rescue2 + 123
21  libruby.2.7.dylib             	0x000000010b3d492c vm_call_cfunc + 364
22  libruby.2.7.dylib             	0x000000010b3bab20 vm_exec_core + 14192
23  libruby.2.7.dylib             	0x000000010b3cf7b3 rb_vm_exec + 2707
24  libruby.2.7.dylib             	0x000000010b3df117 catch_i + 103
25  libruby.2.7.dylib             	0x000000010b3cace5 vm_catch_protect + 213
26  libruby.2.7.dylib             	0x000000010b3cb3e7 rb_f_catch + 87
27  libruby.2.7.dylib             	0x000000010b3d492c vm_call_cfunc + 364
28  libruby.2.7.dylib             	0x000000010b3bab20 vm_exec_core + 14192
29  libruby.2.7.dylib             	0x000000010b3cf7b3 rb_vm_exec + 2707
30  libruby.2.7.dylib             	0x000000010b3df117 catch_i + 103
31  libruby.2.7.dylib             	0x000000010b3cace5 vm_catch_protect + 213
32  libruby.2.7.dylib             	0x000000010b3cb3e7 rb_f_catch + 87
33  libruby.2.7.dylib             	0x000000010b3d492c vm_call_cfunc + 364
34  libruby.2.7.dylib             	0x000000010b3bab20 vm_exec_core + 14192
35  libruby.2.7.dylib             	0x000000010b3cf7b3 rb_vm_exec + 2707
36  libruby.2.7.dylib             	0x000000010b27f679 load_iseq_eval + 185
37  libruby.2.7.dylib             	0x000000010b27ec0d rb_f_load + 269
38  libruby.2.7.dylib             	0x000000010b3d492c vm_call_cfunc + 364
39  libruby.2.7.dylib             	0x000000010b3bac90 vm_exec_core + 14560
40  libruby.2.7.dylib             	0x000000010b3cf7b3 rb_vm_exec + 2707
41  libruby.2.7.dylib             	0x000000010b227a66 rb_ec_exec_node + 182
42  libruby.2.7.dylib             	0x000000010b227965 ruby_run_node + 85
43  ruby                          	0x0000000102ec2f0d main + 93
44  libdyld.dylib                 	0x00007fff203b5631 start + 1

Thread 1:: com.apple.rosetta.exceptionserver
0   runtime                       	0x00007ffdffbe8cb8 0x7ffdffbe6000 + 11448
1   runtime                       	0x00007ffdffbf2ee0 0x7ffdffbe6000 + 52960
2   runtime                       	0x00007ffdffbf3c3c 0x7ffdffbe6000 + 56380

Thread 2:
0   ???                           	0x00007ffe95c929bc ???
1   libsystem_kernel.dylib        	0x00007fff2036c4fe poll + 10
2   libsystem_pthread.dylib       	0x00007fff2039a950 _pthread_start + 224
3   libsystem_pthread.dylib       	0x00007fff2039647b thread_start + 15

Thread 0 crashed with unknown flavor: 7, state_count: 4


Binary Images:
       0x102ebf000 -        0x102ec2fff +ruby (0) <33FFF8DB-9985-31C1-865E-C716CCD7A9A7> /Users/USER/*/ruby
       0x10b17f000 -        0x10b492fff +libruby.2.7.dylib (0) <F26EE133-DACA-369A-A5FD-97B728117790> /Users/USER/*/libruby.2.7.dylib
       0x10cf34000 -        0x10cf37fff +encdb.bundle (0) <AD3AF041-623A-3047-9FA4-5A599F8CD15B> /Users/USER/*/encdb.bundle
       0x10cf4e000 -        0x10cf51fff +transdb.bundle (0) <8E945E5B-87F7-3898-8BAC-21224BA6CFBC> /Users/USER/*/transdb.bundle
       0x10cf7f000 -        0x10cf82fff +monitor.bundle (0) <A26D3CC5-BA77-349C-A7C3-79ACDEE71CAF> /Users/USER/*/monitor.bundle
       0x10cfbc000 -        0x10cff3fff +ripper.bundle (0) <D1E719A5-225C-3BAE-B9C6-EF055CE52280> /Users/USER/*/ripper.bundle
       0x10d048000 -        0x10d04bfff +console.bundle (0) <907345DE-8A4B-39BC-A5F9-51043EBE885C> /Users/USER/*/console.bundle
       0x10d066000 -        0x10d069fff +etc.bundle (0) <EAC24A21-BEDA-3B85-B9EC-0E6DC0D8427B> /Users/USER/*/etc.bundle
       0x10d086000 -        0x10d08dfff +exif.bundle (0) <B9179BB2-D3F0-3BA1-BDFD-1C80FFC7490B> /Users/USER/*/exif.bundle
       0x10d0a7000 -        0x10d0c6fff +libexif.12.dylib (0) <325A7873-8B45-377C-8FAC-04B453E70EB1> /usr/local/opt/libexif/lib/libexif.12.dylib
       0x10d10b000 -        0x10d116fff +libintl.8.dylib (0) <F1C4D8E0-D7AF-3BAD-A329-B9AB3241CA2D> /usr/local/opt/gettext/lib/libintl.8.dylib
       0x20320b000 -        0x2032a6fff  dyld (832.7.1) <2705F0D8-C104-3DE9-BEB5-B1EF6E28656D> /usr/lib/dyld
    0x7ffdffbe6000 -     0x7ffdffc59fff +runtime (203.1.3) <32F67E63-80F9-3251-A012-C2AD43E420BE> /Library/Apple/*/runtime
    0x7fff200d2000 -     0x7fff200d3fff  libsystem_blocks.dylib (78) <83E2F888-F4C1-3181-B21B-136A0D7293DD> /usr/lib/system/libsystem_blocks.dylib
    0x7fff200d4000 -     0x7fff20109fff  libxpc.dylib (2038.40.38) <DC50F7DD-1C4B-3BD2-A54D-C5D7D97A3718> /usr/lib/system/libxpc.dylib
    0x7fff2010a000 -     0x7fff20121fff  libsystem_trace.dylib (1277.50.1) <94196441-5456-342D-84D1-C60A9249D273> /usr/lib/system/libsystem_trace.dylib
    0x7fff20122000 -     0x7fff201bdfff  libcorecrypto.dylib (1000.40.21) <2FA5C1BD-F41C-3FCF-B1FA-7BED6E19ABEE> /usr/lib/system/libcorecrypto.dylib
    0x7fff201be000 -     0x7fff201eafff  libsystem_malloc.dylib (317.40.8) <3688DBCE-2FFD-3F98-B12B-69ABE231908D> /usr/lib/system/libsystem_malloc.dylib
    0x7fff201eb000 -     0x7fff2022ffff  libdispatch.dylib (1271.40.12) <C55547DC-A05B-34A1-BD41-D54948D8F57F> /usr/lib/system/libdispatch.dylib
    0x7fff20230000 -     0x7fff20269fff  libobjc.A.dylib (818.2) <009C043E-EA6B-38AF-8ABD-C57E1B42A0EE> /usr/lib/libobjc.A.dylib
    0x7fff2026a000 -     0x7fff2026cfff  libsystem_featureflags.dylib (28.40.2) <3E1E8F98-E791-301D-909F-4CA205C94D1A> /usr/lib/system/libsystem_featureflags.dylib
    0x7fff2026d000 -     0x7fff202f5fff  libsystem_c.dylib (1439.40.11) <8D791F3A-4848-302F-88CD-46D91DE73127> /usr/lib/system/libsystem_c.dylib
    0x7fff202f6000 -     0x7fff2034bfff  libc++.1.dylib (904.4) <E7F465AC-C8FF-31DB-8EC4-7EBBA7468EB5> /usr/lib/libc++.1.dylib
    0x7fff2034c000 -     0x7fff20364fff  libc++abi.dylib (904.4) <253848B5-ED35-3202-8593-5DCC763A8192> /usr/lib/libc++abi.dylib
    0x7fff20365000 -     0x7fff20393fff  libsystem_kernel.dylib (7195.50.7) <41068F5C-74E3-3C98-9256-6A18364FB5BA> /usr/lib/system/libsystem_kernel.dylib
    0x7fff20394000 -     0x7fff2039ffff  libsystem_pthread.dylib (454.40.3) <78072EC6-2257-361A-AAF5-4A3C1832B5EB> /usr/lib/system/libsystem_pthread.dylib
    0x7fff203a0000 -     0x7fff203dafff  libdyld.dylib (832.7.1) <0C66AB9F-E22C-3286-B76B-DA4008698CD2> /usr/lib/system/libdyld.dylib
    0x7fff203db000 -     0x7fff203e4fff  libsystem_platform.dylib (254.40.4) <6C05D209-129A-373A-A90D-CC27AB18C091> /usr/lib/system/libsystem_platform.dylib
    0x7fff203e5000 -     0x7fff20410fff  libsystem_info.dylib (542.40.3) <90DDEF9D-9DBA-3599-A9DD-A7F730AE945F> /usr/lib/system/libsystem_info.dylib
    0x7fff20411000 -     0x7fff208acfff  com.apple.CoreFoundation (6.9 - 1770.106) <840EE7CE-2CDF-33D0-8574-951B6A024573> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff208ad000 -     0x7fff20adbfff  com.apple.LaunchServices (1122.5.1 - 1122.5.1) <E26F607E-C523-3753-95FC-7A75130632FE> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
    0x7fff20adc000 -     0x7fff20baffff  com.apple.gpusw.MetalTools (1.0 - 1) <0CC81516-4858-3463-A2D8-8FCA414B63FD> /System/Library/PrivateFrameworks/MetalTools.framework/Versions/A/MetalTools
    0x7fff20bb0000 -     0x7fff20d48fff  libBLAS.dylib (1336.40.1) <66AFAD82-0AE8-38B6-9243-C7F0CB4D6B01> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
    0x7fff20d49000 -     0x7fff20d96fff  com.apple.Lexicon-framework (1.0 - 86.1) <A6282972-785B-3AC4-84A5-6780315011F1> /System/Library/PrivateFrameworks/Lexicon.framework/Versions/A/Lexicon
    0x7fff20d97000 -     0x7fff20e05fff  libSparse.dylib (106) <D2BC7FE6-7801-3C3B-B8AC-A1F152F92D12> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib
    0x7fff20e06000 -     0x7fff20e82fff  com.apple.SystemConfiguration (1.20 - 1.20) <660AA1E5-A70A-3FC1-9462-570FBBC76125> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fff20e83000 -     0x7fff20eb8fff  libCRFSuite.dylib (50) <6873F563-F0FB-32C5-A47A-D97A4931FEA8> /usr/lib/libCRFSuite.dylib
    0x7fff20eb9000 -     0x7fff210effff  libmecabra.dylib (929) <CF4538C2-3F4A-360C-B6D9-DEBBA67CD5F0> /usr/lib/libmecabra.dylib
    0x7fff210f0000 -     0x7fff21453fff  com.apple.Foundation (6.9 - 1770.106) <87138770-ED31-393C-B462-4DAF1A0A52D7> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff21454000 -     0x7fff21540fff  com.apple.LanguageModeling (1.0 - 247) <83FC0636-F2C6-33F1-A873-E3D5A07A9BA4> /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
    0x7fff2217c000 -     0x7fff224cbfff  com.apple.security (7.0 - 59754.41.1) <93F55E6B-0EB7-3E06-A742-CEBE33A01DCE> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff224cc000 -     0x7fff2272dfff  libicucore.A.dylib (66108) <D5A29DA5-5693-38EA-B09B-5D7160B26339> /usr/lib/libicucore.A.dylib
    0x7fff2272e000 -     0x7fff22737fff  libsystem_darwin.dylib (1439.40.11) <3BD9046F-FAED-3FD9-8191-49A4618555A3> /usr/lib/system/libsystem_darwin.dylib
    0x7fff22738000 -     0x7fff22a1ffff  com.apple.CoreServices.CarbonCore (1307 - 1307) <F20CD75D-F81D-36F3-90AE-7C2F26E01DA4> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
    0x7fff22a5f000 -     0x7fff22a99fff  com.apple.CSStore (1122.5.1 - 1122.5.1) <74069AC7-3AA9-3953-A036-425105377BFF> /System/Library/PrivateFrameworks/CoreServicesStore.framework/Versions/A/CoreServicesStore
    0x7fff22a9a000 -     0x7fff22b47fff  com.apple.framework.IOKit (2.0.2 - 1845.50.1) <18A1F263-4AE2-3F9B-A38F-50BEB00B43D1> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x7fff22b48000 -     0x7fff22b53fff  libsystem_notify.dylib (279.40.4) <73D358B2-6C2D-33DF-975C-BE9EE5F45A0F> /usr/lib/system/libsystem_notify.dylib
    0x7fff23fbb000 -     0x7fff245fefff  libnetwork.dylib (2288.40.53) <CEC9E75A-51F6-3675-9EA5-007C3DB82A7B> /usr/lib/libnetwork.dylib
    0x7fff245ff000 -     0x7fff24a9cfff  com.apple.CFNetwork (1207.2 - 1207.2) <B3968D35-EAF0-3661-8F93-3255128411B6> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x7fff24a9d000 -     0x7fff24aabfff  libsystem_networkextension.dylib (1295.40.29) <84A5011E-1511-30C7-86D8-514CFA59EF42> /usr/lib/system/libsystem_networkextension.dylib
    0x7fff24aac000 -     0x7fff24aacfff  libenergytrace.dylib (22) <3646415C-FA89-30B2-84C4-3FDB868DF6F6> /usr/lib/libenergytrace.dylib
    0x7fff24aad000 -     0x7fff24b08fff  libMobileGestalt.dylib (978.40.29) <BC657BA3-6A59-35EF-8E90-26D431477F74> /usr/lib/libMobileGestalt.dylib
    0x7fff24b09000 -     0x7fff24b1ffff  libsystem_asl.dylib (385) <EB8BA94D-1B45-322E-9D26-272872423807> /usr/lib/system/libsystem_asl.dylib
    0x7fff24b20000 -     0x7fff24b37fff  com.apple.TCC (1.0 - 1) <A3F5F853-54FC-3E67-9F8B-3605B1063D6F> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
    0x7fff25e96000 -     0x7fff2604dfff  libsqlite3.dylib (321.1) <B06F1514-5576-324F-BDD3-084B1748A4C2> /usr/lib/libsqlite3.dylib
    0x7fff261b2000 -     0x7fff26227fff  com.apple.AE (918 - 918) <9A914CB1-A413-352B-95BA-D639D66DC591> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
    0x7fff26228000 -     0x7fff2622efff  libdns_services.dylib (1310.40.42) <5D270035-0D34-3E64-9BA3-8F302E2D767C> /usr/lib/libdns_services.dylib
    0x7fff2622f000 -     0x7fff26236fff  libsystem_symptoms.dylib (1431.40.36) <81345ED1-342F-347F-B979-39846E607C8C> /usr/lib/system/libsystem_symptoms.dylib
    0x7fff263bc000 -     0x7fff263e0fff  com.apple.analyticsd (1.0 - 1) <C34AD81D-9BD0-3295-BBC5-39D762835717> /System/Library/PrivateFrameworks/CoreAnalytics.framework/Versions/A/CoreAnalytics
    0x7fff263e1000 -     0x7fff263e3fff  libDiagnosticMessagesClient.dylib (112) <BA70052F-9547-368E-A643-ACF46CA53A3F> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff263e4000 -     0x7fff26430fff  com.apple.spotlight.metadata.utilities (1.0 - 2149.9) <732E84A3-6D75-3C92-8C0A-028547EDDF4D> /System/Library/PrivateFrameworks/MetadataUtilities.framework/Versions/A/MetadataUtilities
    0x7fff26431000 -     0x7fff264cbfff  com.apple.Metadata (10.7.0 - 2149.9) <19EA1487-2CDE-36C6-8EC1-537E33FB8874> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
    0x7fff264cc000 -     0x7fff264d2fff  com.apple.DiskArbitration (2.7 - 2.7) <2E613BB2-B956-3668-9B33-1464DBC83611> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x7fff264d3000 -     0x7fff26e5cfff  com.apple.vImage (8.1 - 543) <AA3D852B-E3F6-3CA3-B387-1BC2419404D9> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
    0x7fff2739c000 -     0x7fff273abfff  com.apple.OpenDirectory (11.0 - 230.40.1) <F1AC2921-D026-3048-909D-B623F6AAFC94> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
    0x7fff273ac000 -     0x7fff273cbfff  com.apple.CFOpenDirectory (11.0 - 230.40.1) <030D197F-1B82-3E26-AD80-C7621EF6656C> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
    0x7fff273cc000 -     0x7fff273d4fff  com.apple.CoreServices.FSEvents (1290.40.2 - 1290.40.2) <EE985F8A-608D-3A9E-8DDE-C8F635DC69CC> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
    0x7fff273d5000 -     0x7fff273f9fff  com.apple.coreservices.SharedFileList (143 - 143) <CCD817BF-99F0-34A3-A619-8F47A1F83CC8> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList
    0x7fff273fa000 -     0x7fff273fcfff  libapp_launch_measurement.dylib (14.1) <7698D7E2-ECE9-3551-AD03-381DF65EE388> /usr/lib/libapp_launch_measurement.dylib
    0x7fff273fd000 -     0x7fff27445fff  com.apple.CoreAutoLayout (1.0 - 21.10.1) <14614F40-5A4F-31C0-90DC-B1FB3D8ECE66> /System/Library/PrivateFrameworks/CoreAutoLayout.framework/Versions/A/CoreAutoLayout
    0x7fff27446000 -     0x7fff27528fff  libxml2.2.dylib (34.8) <667639AF-E0DB-3BFD-B641-5D0BFBCBF6A3> /usr/lib/libxml2.2.dylib
    0x7fff28559000 -     0x7fff28569fff  libsystem_containermanager.dylib (318.41.1) <BF178091-2151-3462-AB4F-A2E111650BA2> /usr/lib/system/libsystem_containermanager.dylib
    0x7fff2856a000 -     0x7fff2857bfff  com.apple.IOSurface (289.3 - 289.3) <457DD2AD-E48D-3BD3-9549-9CD9CA6B4F51> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
    0x7fff2857c000 -     0x7fff28588fff  com.apple.IOAccelerator (439.35.4 - 439.35.4) <1FC8B98E-D5A3-3C7B-919B-D187D7A6F76B> /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator
    0x7fff28589000 -     0x7fff286aefff  com.apple.Metal (244.32.6 - 244.32.6) <6BB79960-68EA-3CB9-89D9-E8A11B8C9491> /System/Library/Frameworks/Metal.framework/Versions/A/Metal
    0x7fff29213000 -     0x7fff2926efff  com.apple.MetalPerformanceShaders.MPSCore (1.0 - 1) <A929F704-8938-3F9F-8B35-9ABDA03F4D37> /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Frameworks/MPSCore.framework/Versions/A/MPSCore
    0x7fff2926f000 -     0x7fff29272fff  libsystem_configuration.dylib (1109.40.9) <EA408233-7EA5-33B5-B099-E9609DD3A0FF> /usr/lib/system/libsystem_configuration.dylib
    0x7fff29273000 -     0x7fff29277fff  libsystem_sandbox.dylib (1441.40.38) <349F71A1-4C7C-3AE0-8A1B-B95CCBB2327F> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff29278000 -     0x7fff29279fff  com.apple.AggregateDictionary (1.0 - 1) <59A5FE13-BE12-3393-BC0F-40007817F8D7> /System/Library/PrivateFrameworks/AggregateDictionary.framework/Versions/A/AggregateDictionary
    0x7fff2927a000 -     0x7fff2927dfff  com.apple.AppleSystemInfo (3.1.5 - 3.1.5) <4CE6C43E-92B6-3933-BEE1-079336A0D6A1> /System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/AppleSystemInfo
    0x7fff2927e000 -     0x7fff2927ffff  liblangid.dylib (136) <EB65D90D-45E3-326D-9F1E-3E9E068E64C5> /usr/lib/liblangid.dylib
    0x7fff29280000 -     0x7fff29320fff  com.apple.CoreNLP (1.0 - 245) <AC95402C-105B-3830-8A5B-DA9BCE1AB68B> /System/Library/PrivateFrameworks/CoreNLP.framework/Versions/A/CoreNLP
    0x7fff29321000 -     0x7fff29327fff  com.apple.LinguisticData (1.0 - 399) <5C2C56E5-6298-32D3-B374-362D7C7F4A85> /System/Library/PrivateFrameworks/LinguisticData.framework/Versions/A/LinguisticData
    0x7fff29328000 -     0x7fff2992ffff  libBNNS.dylib (288.40.19) <C6DE159C-E39B-3967-B0C1-7A644FF13E35> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib
    0x7fff29930000 -     0x7fff29ac0fff  libvDSP.dylib (760.40.6) <F4B19B08-026F-36E8-88F8-229D8018BA68> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
    0x7fff29ac1000 -     0x7fff29ad3fff  com.apple.CoreEmoji (1.0 - 128) <7F9AAA77-3D73-3164-8961-F0BFE55D7AE8> /System/Library/PrivateFrameworks/CoreEmoji.framework/Versions/A/CoreEmoji
    0x7fff29ad4000 -     0x7fff29adefff  com.apple.IOMobileFramebuffer (343.0.0 - 343.0.0) <94F7D4E1-88DF-3445-90EF-A0EBC9AF7961> /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/Versions/A/IOMobileFramebuffer
    0x7fff29de6000 -     0x7fff29e72fff  com.apple.securityfoundation (6.0 - 55240.40.4) <AC9A369B-6E9B-3267-B56E-2746853615A0> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
    0x7fff29e73000 -     0x7fff29e7cfff  com.apple.coreservices.BackgroundTaskManagement (1.0 - 104) <A59DD866-92E0-3B0E-AE10-36E86878132C> /System/Library/PrivateFrameworks/BackgroundTaskManagement.framework/Versions/A/BackgroundTaskManagement
    0x7fff29e7d000 -     0x7fff29e81fff  com.apple.xpc.ServiceManagement (1.0 - 1) <D522DFA0-C2D9-31EC-BC6F-8B034DACA54D> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
    0x7fff29e82000 -     0x7fff29e84fff  libquarantine.dylib (119.40.2) <3DD7F9EE-9B9A-3896-A8CC-4D5BE49385AE> /usr/lib/system/libquarantine.dylib
    0x7fff29e85000 -     0x7fff29e90fff  libCheckFix.dylib (31) <E66C5541-5A04-3295-BE25-CC251EC627AE> /usr/lib/libCheckFix.dylib
    0x7fff29e91000 -     0x7fff29ea8fff  libcoretls.dylib (169) <32CA60AD-6EEF-335D-8FB0-A2695D455939> /usr/lib/libcoretls.dylib
    0x7fff29ea9000 -     0x7fff29eb9fff  libbsm.0.dylib (68.40.1) <7530532D-8655-34D7-8C1A-273E196A0DE4> /usr/lib/libbsm.0.dylib
    0x7fff29eba000 -     0x7fff29f03fff  libmecab.dylib (929) <533290ED-7500-37B4-9212-D9BA773228F8> /usr/lib/libmecab.dylib
    0x7fff29f04000 -     0x7fff29f09fff  libgermantok.dylib (24) <14D82EB1-0212-3E80-90F5-842233FFA740> /usr/lib/libgermantok.dylib
    0x7fff29f0a000 -     0x7fff29f20fff  libLinearAlgebra.dylib (1336.40.1) <AA0D57BF-30F9-3218-ABFD-090F62456EAE> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
    0x7fff29f21000 -     0x7fff2a148fff  com.apple.MetalPerformanceShaders.MPSNeuralNetwork (1.0 - 1) <C08BA44C-9764-363E-A35C-B21AEEFA424B> /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Frameworks/MPSNeuralNetwork.framework/Versions/A/MPSNeuralNetwork
    0x7fff2a149000 -     0x7fff2a198fff  com.apple.MetalPerformanceShaders.MPSRayIntersector (1.0 - 1) <E7D2B0C7-FAE3-398A-B949-70A0F6CDAD75> /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Frameworks/MPSRayIntersector.framework/Versions/A/MPSRayIntersector
    0x7fff2a199000 -     0x7fff2a2dffff  com.apple.MLCompute (1.0 - 1) <0621E469-4210-3C45-AC4E-023B25E0D1CE> /System/Library/Frameworks/MLCompute.framework/Versions/A/MLCompute
    0x7fff2a2e0000 -     0x7fff2a316fff  com.apple.MetalPerformanceShaders.MPSMatrix (1.0 - 1) <328CA407-7A75-3FE6-9AC1-0D6CE0FF2B0A> /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Frameworks/MPSMatrix.framework/Versions/A/MPSMatrix
    0x7fff2a317000 -     0x7fff2a354fff  com.apple.MetalPerformanceShaders.MPSNDArray (1.0 - 1) <0CE771E3-E262-3BFC-BF02-888D7EBB0FE3> /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Frameworks/MPSNDArray.framework/Versions/A/MPSNDArray
    0x7fff2a355000 -     0x7fff2a3e5fff  com.apple.MetalPerformanceShaders.MPSImage (1.0 - 1) <4130FBE4-C36C-3E1D-BB0B-63D1A64B28E2> /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Frameworks/MPSImage.framework/Versions/A/MPSImage
    0x7fff2a3e6000 -     0x7fff2a3f5fff  com.apple.AppleFSCompression (125 - 1.0) <5BE26EB2-6012-33E5-AF38-D8C5F4DF64CA> /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression
    0x7fff2a3f6000 -     0x7fff2a403fff  libbz2.1.0.dylib (44) <F171593B-230C-390E-8EF7-D0659D2F6B54> /usr/lib/libbz2.1.0.dylib
    0x7fff2a404000 -     0x7fff2a408fff  libsystem_coreservices.dylib (127) <670DDFEB-8100-3C51-BC96-76BD46A21DF6> /usr/lib/system/libsystem_coreservices.dylib
    0x7fff2a409000 -     0x7fff2a436fff  com.apple.CoreServices.OSServices (1122.5.1 - 1122.5.1) <4F03F324-1072-38B8-8BC5-837601C2DBA9> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
    0x7fff2a60c000 -     0x7fff2a61efff  libz.1.dylib (76) <0AF4F195-1F20-3F59-B09F-31E7249890D5> /usr/lib/libz.1.dylib
    0x7fff2a61f000 -     0x7fff2a66afff  libsystem_m.dylib (3186.40.2) <F1481BE9-A26B-3C4C-90BB-4EB46DFA1DE9> /usr/lib/system/libsystem_m.dylib
    0x7fff2a66b000 -     0x7fff2a66bfff  libcharset.1.dylib (59) <56962263-B7B8-3B84-9C2F-F493D9D2630A> /usr/lib/libcharset.1.dylib
    0x7fff2a66c000 -     0x7fff2a671fff  libmacho.dylib (973.4) <F2E3F7A6-B15A-30ED-A6AD-4EFEC37CF3E7> /usr/lib/system/libmacho.dylib
    0x7fff2a672000 -     0x7fff2a68dfff  libkxld.dylib (7195.50.7) <6FFE0801-7BDA-34EE-89E9-EAEC21A7394C> /usr/lib/system/libkxld.dylib
    0x7fff2a68e000 -     0x7fff2a699fff  libcommonCrypto.dylib (60178.40.2) <66E10FDF-896D-35F4-B9A8-8EE9400AC23A> /usr/lib/system/libcommonCrypto.dylib
    0x7fff2a69a000 -     0x7fff2a6a4fff  libunwind.dylib (200.10) <BD13DE19-15F8-3982-ACCB-CD8C036D5D2B> /usr/lib/system/libunwind.dylib
    0x7fff2a6a5000 -     0x7fff2a6acfff  liboah.dylib (203.1.3) <5EC28751-3BE8-3BB7-9DBE-305225CBD41B> /usr/lib/liboah.dylib
    0x7fff2a6ad000 -     0x7fff2a6b7fff  libcopyfile.dylib (173.40.2) <17A9CD2E-0527-3FF7-9CFA-57B30133DFB5> /usr/lib/system/libcopyfile.dylib
    0x7fff2a6b8000 -     0x7fff2a6bffff  libcompiler_rt.dylib (102.2) <FE958653-7FEC-3ADD-9AC0-A386E47208CF> /usr/lib/system/libcompiler_rt.dylib
    0x7fff2a6c0000 -     0x7fff2a6c2fff  libsystem_collections.dylib (1439.40.11) <31C10DA5-F9B8-36E4-B859-8F6B845FF65D> /usr/lib/system/libsystem_collections.dylib
    0x7fff2a6c3000 -     0x7fff2a6c5fff  libsystem_secinit.dylib (87.40.10) <BB2A70F5-BECC-34BD-90FE-14D31C5FD80D> /usr/lib/system/libsystem_secinit.dylib
    0x7fff2a6c6000 -     0x7fff2a6c8fff  libremovefile.dylib (49.40.3) <24CE2291-AEB3-30C9-94E8-535AA6E9C6F2> /usr/lib/system/libremovefile.dylib
    0x7fff2a6c9000 -     0x7fff2a6c9fff  libkeymgr.dylib (31) <B47F66C0-27F4-3B77-BAA0-85E895A7421D> /usr/lib/system/libkeymgr.dylib
    0x7fff2a6ca000 -     0x7fff2a6d1fff  libsystem_dnssd.dylib (1310.40.42) <F54EC6FB-DEC3-3DA8-A749-4892F50D1F08> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff2a6d2000 -     0x7fff2a6d7fff  libcache.dylib (83) <C83C4423-D12A-32A0-875D-81450DF40F42> /usr/lib/system/libcache.dylib
    0x7fff2a6d8000 -     0x7fff2a6d9fff  libSystem.B.dylib (1292.50.1) <14E3BB7B-B95F-3700-8D12-B9B2012C0AF8> /usr/lib/libSystem.B.dylib
    0x7fff2a6da000 -     0x7fff2a6ddfff  libfakelink.dylib (3) <6E8ABD0B-6BC7-3E2C-B36B-2A7DA4ED0804> /usr/lib/libfakelink.dylib
    0x7fff2a6de000 -     0x7fff2a6defff  com.apple.SoftLinking (1.0 - 1) <23011830-946E-312B-A4BA-1725568F5E76> /System/Library/PrivateFrameworks/SoftLinking.framework/Versions/A/SoftLinking
    0x7fff2a6df000 -     0x7fff2a716fff  libpcap.A.dylib (98.40.1) <F2D9427C-C7D7-35F9-8A65-AE2C76D73E4B> /usr/lib/libpcap.A.dylib
    0x7fff2a717000 -     0x7fff2a807fff  libiconv.2.dylib (59) <BFC929D5-6E2C-3A49-9760-870BC89FC558> /usr/lib/libiconv.2.dylib
    0x7fff2a808000 -     0x7fff2a819fff  libcmph.dylib (8) <ABEA25CF-8895-31DA-B884-F4012007E7E9> /usr/lib/libcmph.dylib
    0x7fff2a81a000 -     0x7fff2a88bfff  libarchive.2.dylib (83.40.4) <54E0F2AE-C7F5-34A6-8B09-82FED0643886> /usr/lib/libarchive.2.dylib
    0x7fff2a88c000 -     0x7fff2a8f3fff  com.apple.SearchKit (1.4.1 - 1.4.1) <E51D4AB5-0576-3392-B45F-E9CA02D22ED5> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
    0x7fff2a8f4000 -     0x7fff2a8f5fff  libThaiTokenizer.dylib (3) <41BFE684-D7B8-3DBB-A3F6-E25DB819E86A> /usr/lib/libThaiTokenizer.dylib
    0x7fff2a8f6000 -     0x7fff2a91dfff  com.apple.applesauce (1.0 - 16.26) <0AFF7A71-EE52-36E6-82B5-459459D99D68> /System/Library/PrivateFrameworks/AppleSauce.framework/Versions/A/AppleSauce
    0x7fff2a91e000 -     0x7fff2a935fff  libapple_nghttp2.dylib (1.41) <94E600F0-740B-308D-9475-8720FFB1923E> /usr/lib/libapple_nghttp2.dylib
    0x7fff2a936000 -     0x7fff2a948fff  libSparseBLAS.dylib (1336.40.1) <E590C2CD-D3A7-380D-AA0D-C0ACF28DA3E0> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
    0x7fff2a949000 -     0x7fff2a94afff  com.apple.MetalPerformanceShaders.MetalPerformanceShaders (1.0 - 1) <CC090B4C-48B8-3DE1-84FA-807642C38DF9> /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/MetalPerformanceShaders
    0x7fff2a94b000 -     0x7fff2a94ffff  libpam.2.dylib (28.40.1) <4C7D4B94-5CBA-3480-9BA0-D52B5C675D2A> /usr/lib/libpam.2.dylib
    0x7fff2a950000 -     0x7fff2a968fff  libcompression.dylib (96.40.6) <495878B5-D06F-3FB6-986C-87A12E03E61A> /usr/lib/libcompression.dylib
    0x7fff2a969000 -     0x7fff2a96efff  libQuadrature.dylib (7) <C13CA095-EE2D-3C50-98E5-A3570323776F> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib
    0x7fff2a96f000 -     0x7fff2ad19fff  libLAPACK.dylib (1336.40.1) <EFA56154-98EE-39BB-A86A-008542B118E5> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
    0x7fff2ad1a000 -     0x7fff2ad68fff  com.apple.DictionaryServices (1.2 - 341) <CBFBB0CC-093A-39AC-99E3-C032029AC7C3> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
    0x7fff2ad69000 -     0x7fff2ad81fff  liblzma.5.dylib (16) <7AEA0ACB-B03C-323B-AD4F-C5BD0584D780> /usr/lib/liblzma.5.dylib
    0x7fff2ad82000 -     0x7fff2ad83fff  libcoretls_cfhelpers.dylib (169) <86671710-F263-3ED2-8B7D-0052264682CF> /usr/lib/libcoretls_cfhelpers.dylib
    0x7fff2ad84000 -     0x7fff2ae7efff  com.apple.APFS (1677.50.1 - 1677.50.1) <CBABD7ED-84C7-3F72-80EB-5F8AED435566> /System/Library/PrivateFrameworks/APFS.framework/Versions/A/APFS
    0x7fff2ae7f000 -     0x7fff2ae8cfff  libxar.1.dylib (452) <8999C952-D05A-3BFA-A673-1EB0B27EBB73> /usr/lib/libxar.1.dylib
    0x7fff2ae8d000 -     0x7fff2ae90fff  libutil.dylib (58.40.2) <ECE0C079-2434-3B7E-89EE-B2E538E7BBAD> /usr/lib/libutil.dylib
    0x7fff2ae91000 -     0x7fff2aeb9fff  libxslt.1.dylib (17.2) <7C79FCBB-B6B4-33A4-BD4B-34D674C2866F> /usr/lib/libxslt.1.dylib
    0x7fff2aeba000 -     0x7fff2aec4fff  libChineseTokenizer.dylib (37) <F2ECD480-D020-3141-A3B0-D32C8EDA159F> /usr/lib/libChineseTokenizer.dylib
    0x7fff2aec5000 -     0x7fff2b03dfff  libvMisc.dylib (760.40.6) <D9F8EAF5-5B9F-3FD8-B8F5-3591DF24659D> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
    0x7fff2dc5f000 -     0x7fff2dc5ffff  liblaunch.dylib (2038.40.38) <D71781B5-4034-3349-BBE5-4B796CD3629A> /usr/lib/system/liblaunch.dylib
    0x7fff300fd000 -     0x7fff300fdfff  libsystem_product_info_filter.dylib (8.40.1) <FF59B842-1290-3C4A-9015-AC972563406E> /usr/lib/system/libsystem_product_info_filter.dylib
    0x7fff301d8000 -     0x7fff301d8fff  com.apple.Accelerate.vecLib (3.11 - vecLib 3.11) <E5FCDA40-EB3E-3930-87E4-B8077741F6FD> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
    0x7fff301ff000 -     0x7fff301fffff  com.apple.CoreServices (1122.5.1 - 1122.5.1) <070D2800-D014-34E3-AAA9-CB7199EFC728> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x7fff304cd000 -     0x7fff304cdfff  com.apple.Accelerate (1.11 - Accelerate 1.11) <8EA4973D-C4FB-3AEF-8D21-86D7AB711404> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x7fff6b6e7000 -     0x7fff6b6edfff  libCoreFSCache.dylib (177.22) <F2BD275B-0979-3426-BC9D-60C22E4FDE1C> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 1
    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: 195552
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=594.2M resident=0K(0%) swapped_out_or_unallocated=594.2M(100%)
Writable regions: Total=765.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=765.7M(100%)
 
                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
Kernel Alloc Once                    8K        1 
MALLOC                           115.1M       28 
MALLOC guard page                   96K        4 
MALLOC_MEDIUM (reserved)         480.0M        4         reserved VM address space (unallocated)
Rosetta Arena                     2048K        1 
Rosetta Generic                    660K      162 
Rosetta IndirectBranch             224K        3 
Rosetta JIT                      128.0M        1 
Rosetta Return Stack                40K        4 
Rosetta Thread Context              40K        4 
Stack                             8696K        2 
Stack Guard                       56.0M        2 
VM_ALLOCATE                       28.9M       76 
__DATA                            2755K      153 
__DATA_CONST                      6597K      105 
__DATA_DIRTY                       286K       59 
__LINKEDIT                       507.0M       25 
__OBJC_RO                         61.0M        1 
__OBJC_RW                         2466K        2 
__TEXT                            87.3M      155 
__UNICODE                          588K        1 
mapped file                        4.0G      197 
shared memory                       32K        2 
unshared pmap                     1888K        1 
===========                     =======  ======= 
TOTAL                              5.5G      994 
TOTAL, minus reserved VM space     5.0G      994 

@tonytonyjan
Copy link
Owner

@joel Thanks for reporting. I'll see what I can do.

It seems like an issue for Big Sur.

@tonytonyjan
Copy link
Owner

tonytonyjan commented Dec 10, 2020

@joel Fortunately, a workaround would be using docker:

$ wget -O IMG_4977.jpg https://user-images.githubusercontent.com/5789/101786222-f8c92200-3afd-11eb-9676-5ffa7a93e089.JPG
$ docker run --rm -v `pwd`:/work -w /work ruby:2.7.2 sh -c 'gem install exif > /dev/null && ruby -r exif -e "puts Exif::Data.new(IO.read(%{IMG_4977.jpg})).date_time_original"'
2014:01:01 01:24:47

@joel
Copy link
Author

joel commented Dec 11, 2020

@tonytonyjan thanks to taking the time to have a look, did you get the crash on your own? Or did it go well for you?

Thanks for the workaround, it would help for sure! I will try to isolate the problematic images.

@joel
Copy link
Author

joel commented Dec 29, 2020

I had the opportunity to try with a different setup:

macOs Mojave
MacBook Pro Retina 13 pouces mid-2014
Processors 2.6 Ghz Intel Core 5
xcode-select --version
xcode-select version 2354.

ruby --version
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin16]

clang --version
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix

brew info libexif
libexif: stable 0.6.22

gem info exif
exif (2.2.0)
    Author: Jian Weihang
    Homepage: https://github.com/tonytonyjan/exif
    License: MIT
    Installed at: ~/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0

Same result:

thread 20 consuming [/Volumes/Backup Spare/Corrupted Images/Bibliotheque iPhoto/2015/03/20150324-191932/IMG_0021.jpg]
pictures_organizer.rb:54: [BUG] Segmentation fault at 0x0000000000000000
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin16]

-- 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:0006 p:---- s:0037 e:000036 CFUNC  :new
c:0005 p:0046 s:0032 e:000031 METHOD pictures_organizer.rb:54
c:0004 p:0012 s:0019 e:000017 METHOD pictures_organizer.rb:36
c:0003 p:0076 s:0014 e:000013 METHOD pictures_organizer.rb:226
c:0002 p:0024 s:0006 e:000005 BLOCK  pictures_organizer.rb:190 [FINISH]
c:0001 p:---- s:0003 e:000002 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
pictures_organizer.rb:190:in `block (2 levels) in call'
pictures_organizer.rb:226:in `consume'
pictures_organizer.rb:36:in `copy'
pictures_organizer.rb:54:in `target_file_path'
pictures_organizer.rb:54:in `new'

-- Machine register context ------------------------------------------------
 rax: 0x00007fb3ad0c7ca0 rbx: 0x0000000000000001 rcx: 0x0000000000000001
 rdx: 0x0000000000000001 rdi: 0x0000000000000000 rsi: 0x0000000000ece10c
 rbp: 0x00007000031d68a0 rsp: 0x00007000031d68a0  r8: 0x0000000000000066
  r9: 0x0000000104b73000 r10: 0x2d6eb2487e8d34b5 r11: 0x43cee8814c725eab
 r12: 0x0000000000000000 r13: 0x00007000031d6998 r14: 0x00007fb3ad0c79d0
 r15: 0x00007fb3accea080 rip: 0x00007fff699066f2 rfl: 0x0000000000010246

-- C level backtrace information -------------------------------------------
~/.asdf/installs/ruby/2.7.2/lib/libruby.2.7.dylib(rb_vm_bugreport+0x96) [0x101402f76]
~/.asdf/installs/ruby/2.7.2/lib/libruby.2.7.dylib(0x101245211) [0x101245211]
~/.asdf/installs/ruby/2.7.2/lib/libruby.2.7.dylib(0x10136873b) [0x10136873b]
/usr/lib/system/libsystem_platform.dylib(_sigtramp+0x1d) [0x7fff69909b5d]
/usr/lib/system/libsystem_platform.dylib(0x7fff699066f2) [0x7fff699066f2]

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

* Loaded script: pictures_organizer.rb

* Loaded features:

    0 enumerator.so
    1 thread.rb
    2 rational.so
    3 complex.so
    4 ruby2_keywords.rb
    5 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/encdb.bundle
    6 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
    7 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/rbconfig.rb
    8 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/compatibility.rb
    9 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/defaults.rb
   10 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/deprecate.rb
   11 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/errors.rb
   12 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/version.rb
   13 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/requirement.rb
   14 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/platform.rb
   15 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/basic_specification.rb
   16 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/stub_specification.rb
   17 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/util.rb
   18 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/text.rb
   19 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/user_interaction.rb
   20 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/specification_policy.rb
   21 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/util/list.rb
   22 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/specification.rb
   23 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/exceptions.rb
   24 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/bundler_version_finder.rb
   25 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/dependency.rb
   26 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_gem.rb
   27 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/monitor.bundle
   28 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/monitor.rb
   29 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb
   30 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_warn.rb
   31 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems.rb
   32 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/rubygems/path_support.rb
   33 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/did_you_mean/version.rb
   34 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/did_you_mean/core_ext/name_error.rb
   35 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/did_you_mean/levenshtein.rb
   36 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/did_you_mean/jaro_winkler.rb
   37 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/did_you_mean/spell_checker.rb
   38 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb
   39 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb
   40 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/did_you_mean/spell_checkers/name_error_checkers.rb
   41 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/did_you_mean/spell_checkers/method_name_checker.rb
   42 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/did_you_mean/spell_checkers/key_error_checker.rb
   43 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/did_you_mean/spell_checkers/null_checker.rb
   44 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/did_you_mean/formatters/plain_formatter.rb
   45 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/did_you_mean/tree_spell_checker.rb
   46 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/did_you_mean.rb
   47 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/shellwords.rb
   48 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/fileutils.rb
   49 ~/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/exif-2.2.0/lib/exif/version.rb
   50 ~/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/exif-2.2.0/lib/exif/exif.bundle
   51 ~/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/exif-2.2.0/lib/exif.rb
   52 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/ostruct/version.rb
   53 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/ostruct.rb
   54 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/date_core.bundle
   55 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/date.rb
   56 ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/timeout.rb

* Process memory map:

1011ac000-1011ad000 r-x ~/.asdf/installs/ruby/2.7.2/bin/ruby
1011ad000-1011ae000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
1011ae000-1011af000 r-- ~/.asdf/installs/ruby/2.7.2/bin/ruby
1011af000-1011b1000 rw- ~/.asdf/installs/ruby/2.7.2/lib/libruby.2.7.dylib
1011b1000-1011b2000 r-- ~/.asdf/installs/ruby/2.7.2/lib/libruby.2.7.dylib
1011b2000-1011b3000 rw- ~/.asdf/installs/ruby/2.7.2/lib/libruby.2.7.dylib
1011b3000-1011b4000 r-- ~/.asdf/installs/ruby/2.7.2/lib/libruby.2.7.dylib
1011b4000-1011b5000 r-- ~/.asdf/installs/ruby/2.7.2/lib/libruby.2.7.dylib
1011b5000-1011b6000 rw- ~/.asdf/installs/ruby/2.7.2/lib/libruby.2.7.dylib
1011b6000-1014af000 r-x ~/.asdf/installs/ruby/2.7.2/lib/libruby.2.7.dylib
1014af000-1014b6000 rw- ~/.asdf/installs/ruby/2.7.2/lib/libruby.2.7.dylib
1014b6000-1014ce000 rw- ~/.asdf/installs/ruby/2.7.2/lib/libruby.2.7.dylib
1014ce000-101524000 r-- ~/.asdf/installs/ruby/2.7.2/lib/libruby.2.7.dylib
101524000-101525000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/encdb.bundle
101525000-101529000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/encdb.bundle
101529000-10152a000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/encdb.bundle
10152a000-10152b000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/encdb.bundle
10152b000-10152f000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/encdb.bundle
10152f000-101530000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/encdb.bundle
101530000-101570000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/encdb.bundle
101570000-10158a000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/encdb.bundle
10158a000-10168a000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/encdb.bundle
10168a000-10169a000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/encdb.bundle
10169a000-1016fa000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/encdb.bundle
1016fa000-1016fc000 r-x ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/encdb.bundle
1016fc000-1016fd000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/encdb.bundle
1016fd000-1016fe000 r-- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/encdb.bundle
101700000-103700000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103700000-103714000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103714000-103720000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103720000-103721000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103721000-1037c2000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
1037c2000-1037c3000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
1037c3000-103864000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103864000-103865000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103865000-103906000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103906000-103907000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103907000-1039a8000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
1039a8000-1039a9000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
1039a9000-103a4a000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103a4a000-103a4b000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103a4b000-103aec000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103aec000-103aed000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103aed000-103b8e000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103b8e000-103b8f000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103b8f000-103c30000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103c30000-103c31000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103c31000-103cd2000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103cd2000-103cd3000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103cd3000-103d74000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103d74000-103d75000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103d75000-103e16000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103e16000-103e17000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103e17000-103eb8000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103eb8000-103eb9000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103eb9000-103f5a000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103f5a000-103f5b000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103f5b000-103ffc000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103ffc000-103ffd000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
103ffd000-10409e000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
10409e000-10409f000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
10409f000-104140000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
104140000-104141000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
104141000-1041e2000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
1041e2000-1041e3000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
1041e3000-104284000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
104284000-104285000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
104285000-104326000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
104326000-104327000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
104327000-1043c8000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
1043c8000-1043c9000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
1043c9000-10446a000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
10446a000-10446b000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
10446b000-10450c000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
10450c000-10450d000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
10450d000-1045ae000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
1045ae000-1045af000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
1045af000-104650000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
104650000-104651000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
104651000-1046f2000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
1046f2000-1046f3000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
1046f3000-104794000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
104794000-104795000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
104795000-104836000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
104836000-104837000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
104837000-1048d8000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
1048d8000-1048d9000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
1048d9000-10497a000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
10497a000-10497b000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
10497b000-104a1c000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
104a1c000-104a1d000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
104a1d000-104abe000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
104abe000-104abf000 --- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
104abf000-104b60000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
104b60000-104b62000 r-x ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
104b62000-104b63000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
104b63000-104b64000 r-- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/enc/trans/transdb.bundle
104b64000-104b73000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/monitor.bundle
104b73000-104b8b000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/monitor.bundle
104b8b000-104ba8000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/monitor.bundle
104ba8000-104be1000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/monitor.bundle
104be1000-104be2000 r-x ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/monitor.bundle
104be2000-104be3000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/monitor.bundle
104be3000-104be4000 r-- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/monitor.bundle
104be4000-104c1d000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/exif-2.2.0/lib/exif/exif.bundle
104c1d000-104c22000 r-x ~/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/exif-2.2.0/lib/exif/exif.bundle
104c22000-104c23000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/exif-2.2.0/lib/exif/exif.bundle
104c23000-104c25000 r-- ~/.asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/exif-2.2.0/lib/exif/exif.bundle
104c25000-104c42000 r-x /usr/local/Cellar/libexif/0.6.22/lib/libexif.12.dylib
104c42000-104c55000 rw- /usr/local/Cellar/libexif/0.6.22/lib/libexif.12.dylib
104c55000-104c59000 r-- /usr/local/Cellar/libexif/0.6.22/lib/libexif.12.dylib
104c59000-104c63000 r-x /usr/local/Cellar/gettext/0.21/lib/libintl.8.dylib
104c63000-104c64000 rw- /usr/local/Cellar/gettext/0.21/lib/libintl.8.dylib
104c64000-104c65000 rw- /usr/local/Cellar/gettext/0.21/lib/libintl.8.dylib
104c65000-104c68000 r-- /usr/local/Cellar/gettext/0.21/lib/libintl.8.dylib
104c68000-104ca6000 r-x ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/date_core.bundle
104ca6000-104ca7000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/date_core.bundle
104ca7000-104ca8000 rw- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/date_core.bundle
104ca8000-104cb6000 r-- ~/.asdf/installs/ruby/2.7.2/lib/ruby/2.7.0/x86_64-darwin16/date_core.bundle
104cb6000-104cca000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
104cca000-104dc2000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
104dc2000-104f49000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
104f49000-10500e000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
10500e000-105103000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
105103000-1051e5000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
1051e5000-1052de000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
1052de000-10539c000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
10539c000-1054a2000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
1054a2000-1055c0000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
1055c0000-1056cc000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
1056cc000-105865000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
105865000-1058ea000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
1058ea000-1059eb000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
1059eb000-105afb000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
105afb000-105bfe000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
105bfe000-105c5b000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
105c5b000-105d56000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
105d56000-105e65000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
105e65000-105f5d000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
105f5d000-10609c000 rw- ~/.asdf/installs/ruby/2.7.2/bin/ruby
10609c000-10609f000 r-- ~/.asdf/installs/ruby/2.7.2/bin/ruby
10609f000-1063f5000 r-- ~/.asdf/installs/ruby/2.7.2/lib/libruby.2.7.dylib
10a8f8000-10a963000 r-x /usr/lib/dyld
10a963000-10a968000 rw- /usr/lib/dyld
10a968000-10a99c000 rw- /usr/lib/dyld
10a99c000-10a9c3000 r-- /usr/lib/dyld
700002c4d000-700002c4e000 --- /usr/lib/dyld
700002c4e000-700002cd0000 rw- /usr/lib/dyld
700002cd0000-700002cd1000 --- /usr/lib/dyld
700002cd1000-700002ed3000 rw- /usr/lib/dyld
700002ed3000-700002ed4000 --- /usr/lib/dyld
700002ed4000-7000030d6000 rw- /usr/lib/dyld
7000030d6000-7000030d7000 --- /usr/lib/dyld
7000030d7000-7000032d9000 rw- /usr/lib/dyld
7000032d9000-7000032da000 --- /usr/lib/dyld
7000032da000-7000034dc000 rw- /usr/lib/dyld
7000034dc000-7000034dd000 --- /usr/lib/dyld
7000034dd000-7000036df000 rw- /usr/lib/dyld
7000036df000-7000036e0000 --- /usr/lib/dyld
7000036e0000-7000038e2000 rw- /usr/lib/dyld
7000038e2000-7000038e3000 --- /usr/lib/dyld
7000038e3000-700003ae5000 rw- /usr/lib/dyld
700003ae5000-700003ae6000 --- /usr/lib/dyld
700003ae6000-700003ce8000 rw- /usr/lib/dyld
700003ce8000-700003ce9000 --- /usr/lib/dyld
700003ce9000-700003eeb000 rw- /usr/lib/dyld
700003eeb000-700003eec000 --- /usr/lib/dyld
700003eec000-7000040ee000 rw- /usr/lib/dyld
7000040ee000-7000040ef000 --- /usr/lib/dyld
7000040ef000-7000042f1000 rw- /usr/lib/dyld
7000042f1000-7000042f2000 --- /usr/lib/dyld
7000042f2000-7000044f4000 rw- /usr/lib/dyld
7000044f4000-7000044f5000 --- /usr/lib/dyld
7000044f5000-7000046f7000 rw- /usr/lib/dyld
7000046f7000-7000046f8000 --- /usr/lib/dyld
7000046f8000-7000048fa000 rw- /usr/lib/dyld
7000048fa000-7000048fb000 --- /usr/lib/dyld
7000048fb000-700004afd000 rw- /usr/lib/dyld
700004afd000-700004afe000 --- /usr/lib/dyld
700004afe000-700004d00000 rw- /usr/lib/dyld
700004d00000-700004d01000 --- /usr/lib/dyld
700004d01000-700004f03000 rw- /usr/lib/dyld
700004f03000-700004f04000 --- /usr/lib/dyld
700004f04000-700005106000 rw- /usr/lib/dyld
700005106000-700005107000 --- /usr/lib/dyld
700005107000-700005309000 rw- /usr/lib/dyld
700005309000-70000530a000 --- /usr/lib/dyld
70000530a000-70000550c000 rw- /usr/lib/dyld
7fb3acc00000-7fb3acd00000 rw- /usr/lib/dyld
7fb3acd00000-7fb3ace00000 rw- /usr/lib/dyld
7fb3ace00000-7fb3acf00000 rw- /usr/lib/dyld
7fb3acf00000-7fb3ad000000 rw- /usr/lib/dyld
7fb3ad000000-7fb3ad800000 rw- /usr/lib/dyld
7fb3ad800000-7fb3ae000000 rw- /usr/lib/dyld
7fb3ae000000-7fb3ae800000 rw- /usr/lib/dyld
7fb3ae800000-7fb3af000000 rw- /usr/lib/dyld
7fb3af000000-7fb3af100000 rw- /usr/lib/dyld
7fb3af100000-7fb3af200000 rw- /usr/lib/dyld
7ffeeaa54000-7ffeee254000 --- /usr/lib/dyld
7ffeee254000-7ffeeea54000 rw- /usr/lib/dyld
7fff00000000-7fff80000000 r-- /usr/lib/dyld
7fff80000000-7fff97e00000 r-- /usr/lib/dyld
7fff97e00000-7fff98000000 rw- /usr/lib/dyld
7fff98000000-7fff98200000 rw- /usr/lib/dyld
7fff98200000-7fff98600000 r-- /usr/lib/dyld
7fff98600000-7fff98800000 rw- /usr/lib/dyld
7fff98800000-7fff98a00000 rw- /usr/lib/dyld
7fff98a00000-7fff98c00000 rw- /usr/lib/dyld
7fff98c00000-7fff98e00000 rw- /usr/lib/dyld
7fff98e00000-7fff99000000 rw- /usr/lib/dyld
7fff99000000-7fff99200000 r-- /usr/lib/dyld
7fff99200000-7fff99400000 rw- /usr/lib/dyld
7fff99400000-7fff9a200000 r-- /usr/lib/dyld
7fff9a200000-7fff9a400000 rw- /usr/lib/dyld
7fff9a400000-7fff9c000000 r-- /usr/lib/dyld
7fff9c000000-7fff9c200000 rw- /usr/lib/dyld
7fff9c200000-7fff9d000000 r-- /usr/lib/dyld
7fff9d000000-7fff9d200000 rw- /usr/lib/dyld
7fff9d200000-7fff9f600000 r-- /usr/lib/dyld
7fff9f600000-7fff9f800000 rw- /usr/lib/dyld
7fff9f800000-7fff9fa00000 rw- /usr/lib/dyld
7fff9fa00000-7fff9fc00000 rw- /usr/lib/dyld
7fff9fc00000-7fff9fe00000 rw- /usr/lib/dyld
7fff9fe00000-7fff9ffd7000 rw- /usr/lib/dyld
7fff9ffd7000-7fffc0000000 r-- /usr/lib/dyld
7fffc0000000-7fffffe00000 r-- /usr/lib/dyld
7fffffe00000-7fffffe01000 r-- /usr/lib/dyld
7fffffe29000-7fffffe2a000 r-x /usr/lib/dyld
[IMPORTANT]
Don't forget to include the Crash Report log file under
DiagnosticReports directory in bug reports.

Abort trap: 6

@joel
Copy link
Author

joel commented Dec 29, 2020

Anyway, it doesn't seem related to ruby in anyway. I've tried with different version, like truffleruby, jruby, etc.. It might be a issue at libexif level actually.

@tonytonyjan
Copy link
Owner

@joel Sorry for the late reply. And sorry that I can hardly have time to look into this issue because I am actually looking for a job recently and my schedule is full of interview events. 😢 If you found the cause of the problem, feel free to send a pull request. I would really appreciate your help.

@renchap
Copy link
Contributor

renchap commented Apr 18, 2021

I am getting a similar crash.

clang --version    
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

ruby --version
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin19]

brew info libexif
libexif: stable 0.6.22 (bottled)

gem info exif

*** LOCAL GEMS ***

exif (2.2.0)
    Author: Jian Weihang
    Homepage: https://github.com/tonytonyjan/exif
    License: MIT
    Installed at: /Users/renchap/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0

    Ruby EXIF reader written in C extension.

It happens with JPG files exported from the Photos app (pictures from an iPhone 11).

Stack trace:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib              0x00007fff203b2462 __pthread_kill + 10
1   libsystem_pthread.dylib             0x00007fff203e0610 pthread_kill + 263
2   libsystem_c.dylib                   0x00007fff20333720 abort + 120
3   libruby.2.7.dylib                   0x000000010f708cb9 die + 9
4   libruby.2.7.dylib                   0x000000010f708ee3 rb_bug_for_fatal_signal + 547
5   libruby.2.7.dylib                   0x000000010f83390b sigsegv + 91
6   libsystem_platform.dylib            0x00007fff20424d7d _sigtramp + 29
7   ???                                 000000000000000000 0 + 0
8   libruby.2.7.dylib                   0x000000010f86c48f rb_intern + 15
9   exif.bundle                         0x0000000111032d29 each_entry + 793 (data.c:272)
10  libexif.12.dylib                    0x0000000111043929 exif_content_foreach_entry + 52
11  libexif.12.dylib                    0x0000000111045970 exif_data_foreach_content + 42
12  exif.bundle                         0x0000000111032885 new + 757 (data.c:236)
13  libruby.2.7.dylib                   0x000000010f8c184c vm_call_cfunc + 364
14  libruby.2.7.dylib                   0x000000010f8a7bb0 vm_exec_core + 14560
15  libruby.2.7.dylib                   0x000000010f8bc6d3 rb_vm_exec + 2707
16  libruby.2.7.dylib                   0x000000010f8b6496 rb_f_eval + 742
17  libruby.2.7.dylib                   0x000000010f8c184c vm_call_cfunc + 364
18  libruby.2.7.dylib                   0x000000010f8a7bb0 vm_exec_core + 14560
19  libruby.2.7.dylib                   0x000000010f8bc6d3 rb_vm_exec + 2707
20  libruby.2.7.dylib                   0x000000010f8cc0d7 loop_i + 71
21  libruby.2.7.dylib                   0x000000010f714c64 rb_vrescue2 + 276
22  libruby.2.7.dylib                   0x000000010f714b2b rb_rescue2 + 123
23  libruby.2.7.dylib                   0x000000010f8c184c vm_call_cfunc + 364
24  libruby.2.7.dylib                   0x000000010f8a7a40 vm_exec_core + 14192
25  libruby.2.7.dylib                   0x000000010f8bc6d3 rb_vm_exec + 2707
26  libruby.2.7.dylib                   0x000000010f8cc037 catch_i + 103
27  libruby.2.7.dylib                   0x000000010f8b7c05 vm_catch_protect + 213
28  libruby.2.7.dylib                   0x000000010f8b8307 rb_f_catch + 87
29  libruby.2.7.dylib                   0x000000010f8c184c vm_call_cfunc + 364
30  libruby.2.7.dylib                   0x000000010f8a7a40 vm_exec_core + 14192
31  libruby.2.7.dylib                   0x000000010f8bc6d3 rb_vm_exec + 2707
32  libruby.2.7.dylib                   0x000000010f8cc037 catch_i + 103
33  libruby.2.7.dylib                   0x000000010f8b7c05 vm_catch_protect + 213
34  libruby.2.7.dylib                   0x000000010f8b8307 rb_f_catch + 87
35  libruby.2.7.dylib                   0x000000010f8c184c vm_call_cfunc + 364
36  libruby.2.7.dylib                   0x000000010f8a7a40 vm_exec_core + 14192
37  libruby.2.7.dylib                   0x000000010f8bc6d3 rb_vm_exec + 2707
38  libruby.2.7.dylib                   0x000000010f76be49 load_iseq_eval + 185
39  libruby.2.7.dylib                   0x000000010f76b3dd rb_f_load + 269
40  libruby.2.7.dylib                   0x000000010f8c184c vm_call_cfunc + 364
41  libruby.2.7.dylib                   0x000000010f8a7bb0 vm_exec_core + 14560
42  libruby.2.7.dylib                   0x000000010f8bc6d3 rb_vm_exec + 2707
43  libruby.2.7.dylib                   0x000000010f714236 rb_ec_exec_node + 182
44  libruby.2.7.dylib                   0x000000010f714135 ruby_run_node + 85
45  ruby                                0x000000010f656f0d main + 93
46  libdyld.dylib                       0x00007fff203fb621 start + 1

I am not sure on how to troubleshoot this as I never worked with C extensions, if you have any pointers I can try to find out whats happening

@joel
Copy link
Author

joel commented Apr 19, 2021

Hey @renchap it happens as well for me with photos from the Photos app, and iPhotos (pictures from an iPhone 5-6-7-10....).

I've tried the work around proposed by @tonytonyjan which works, but I finally did the job with exiftool which doesn't crash at all.

In my case I just wanted the date of creation to sort images in timeline.

"exiftool -time:all -s #{escape(media_path)}"

Hope it can helps in any ways.

@matthew-angelswing
Copy link

FYI, @kysnm has fixed that issue and that is merged into this repository. but the new version(2.2.0+) gem is not released yet.
just try to install the gem directly from this repository.

@tonytonyjan
Copy link
Owner

@joel @matthew-angelswing

Sorry for the late reply.

I just released exif v2.2.1, https://rubygems.org/gems/exif
Let me know if the latest version works.

Thanks for bringing this up!

@matthew-angelswing
Copy link

@tonytonyjan It perfectly works for me! thanks!!!! 👍

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

No branches or pull requests

4 participants