Bug #18744
closedI used Jazzy to generate the doc for my iOS library, but it showed me a bug
Description
I used Jazzy to generate the document, but it crashed, the details as the log file
Updated by zhaoxinqiang (marc steven) about 3 years ago
I used the Mac M1 computer
Updated by matz (Yukihiro Matsumoto) about 3 years ago
- Status changed from Open to Feedback
It's too hard to determine the reason. It may be caused by a bug in Ruby, or in Jazzy, or even in iOS. Show us the log file at least.
Matz.
Updated by mame (Yusuke Endoh) about 3 years ago
My psychic ability says that this is the same issue as #18496. You way want to check: https://github.com/realm/jazzy/issues/1259 and https://github.com/ffi/ffi/issues/800#issuecomment-1008308614
Updated by zhaoxinqiang (marc steven) about 3 years ago
`-------------------------------------
Translated Report (Full Report Below)
Process: ruby [1365]
Path: /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
Identifier: ruby
Version: ???
Code Type: ARM-64 (Native)
Parent Process: zsh [934]
Responsible: iTerm2 [931]
User ID: 501
Date/Time: 2022-04-20 08:27:22.1120 +0800
OS Version: macOS 12.3.1 (21E258)
Report Version: 12
Anonymous UUID: 31EB4299-A64D-45AD-875F-EF2D310BD92A
Time Awake Since Boot: 690 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000001049b4000
Exception Codes: 0x0000000000000002, 0x00000001049b4000
Exception Note: EXC_CORPSE_NOTIFY
VM Region Info: 0x1049b4000 is in 0x1049b4000-0x1049bc000; bytes after start: 0 bytes before end: 32767
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
__DATA_CONST 1049b0000-1049b4000 [ 16K] r--/rwx SM=COW .../encdb.bundle
---> __LINKEDIT 1049b4000-1049bc000 [ 32K] r--/rwx SM=COW .../encdb.bundle
VM_ALLOCATE (reserved) 1049bc000-1049c0000 [ 16K] rw-/rwx SM=NUL ...(unallocated)
Application Specific Information:
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x18472cdb8 __pthread_kill + 8
1 libsystem_pthread.dylib 0x184761ee0 pthread_kill + 288
2 libsystem_c.dylib 0x18469c340 abort + 168
3 libruby.2.6.dylib 0x1e96791c4 0x1e961b000 + 385476
4 libruby.2.6.dylib 0x1e9679244 rb_bug_context + 128
5 libruby.2.6.dylib 0x1e9744240 0x1e961b000 + 1217088
6 libsystem_platform.dylib 0x1847794c4 _sigtramp + 56
7 ffi_c.bundle 0x104cdefa4 prep_trampoline + 60 (MethodHandle.c:139)
8 ffi_c.bundle 0x104cdbb7c rbffi_Closure_Alloc + 284 (ClosurePool.c:171)
9 ffi_c.bundle 0x104cdee54 rbffi_MethodHandle_Alloc + 36 (MethodHandle.c:96)
10 ffi_c.bundle 0x104cdcca0 function_attach + 124 (Function.c:394)
11 libruby.2.6.dylib 0x1e97a4f44 0x1e961b000 + 1613636
12 libruby.2.6.dylib 0x1e9792bd8 0x1e961b000 + 1539032
13 libruby.2.6.dylib 0x1e97a1778 rb_vm_exec + 2032
14 libruby.2.6.dylib 0x1e96bc9cc 0x1e961b000 + 661964
15 libruby.2.6.dylib 0x1e96bd354 rb_require_internal + 776
16 libruby.2.6.dylib 0x1e96bcaec rb_require_safe + 24
17 libruby.2.6.dylib 0x1e97a4f44 0x1e961b000 + 1613636
18 libruby.2.6.dylib 0x1e9792bd8 0x1e961b000 + 1539032
19 libruby.2.6.dylib 0x1e97a1778 rb_vm_exec + 2032
20 libruby.2.6.dylib 0x1e96bc9cc 0x1e961b000 + 661964
21 libruby.2.6.dylib 0x1e96bd354 rb_require_internal + 776
22 libruby.2.6.dylib 0x1e96bcaec rb_require_safe + 24
23 libruby.2.6.dylib 0x1e97a4f44 0x1e961b000 + 1613636
24 libruby.2.6.dylib 0x1e9792bd8 0x1e961b000 + 1539032
25 libruby.2.6.dylib 0x1e97a1778 rb_vm_exec + 2032
26 libruby.2.6.dylib 0x1e96bc9cc 0x1e961b000 + 661964
27 libruby.2.6.dylib 0x1e96bd354 rb_require_internal + 776
28 libruby.2.6.dylib 0x1e96bcaec rb_require_safe + 24
29 libruby.2.6.dylib 0x1e97a4f44 0x1e961b000 + 1613636
30 libruby.2.6.dylib 0x1e9792bd8 0x1e961b000 + 1539032
31 libruby.2.6.dylib 0x1e97a1778 rb_vm_exec + 2032
32 libruby.2.6.dylib 0x1e96bc9cc 0x1e961b000 + 661964
33 libruby.2.6.dylib 0x1e96bd354 rb_require_internal + 776
34 libruby.2.6.dylib 0x1e96bcaec rb_require_safe + 24
35 libruby.2.6.dylib 0x1e97a4f44 0x1e961b000 + 1613636
36 libruby.2.6.dylib 0x1e9792bd8 0x1e961b000 + 1539032
37 libruby.2.6.dylib 0x1e97a1778 rb_vm_exec + 2032
38 libruby.2.6.dylib 0x1e96bc9cc 0x1e961b000 + 661964
39 libruby.2.6.dylib 0x1e96bd354 rb_require_internal + 776
40 libruby.2.6.dylib 0x1e96bcaec rb_require_safe + 24
41 libruby.2.6.dylib 0x1e97a4f44 0x1e961b000 + 1613636
42 libruby.2.6.dylib 0x1e9792bd8 0x1e961b000 + 1539032
43 libruby.2.6.dylib 0x1e97a1778 rb_vm_exec + 2032
44 libruby.2.6.dylib 0x1e96bc9cc 0x1e961b000 + 661964
45 libruby.2.6.dylib 0x1e96bc67c 0x1e961b000 + 661116
46 libruby.2.6.dylib 0x1e96bda20 0x1e961b000 + 666144
47 libruby.2.6.dylib 0x1e97a4f44 0x1e961b000 + 1613636
48 libruby.2.6.dylib 0x1e9792bd8 0x1e961b000 + 1539032
49 libruby.2.6.dylib 0x1e97a1778 rb_vm_exec + 2032
50 libruby.2.6.dylib 0x1e967fe30 0x1e961b000 + 413232
51 libruby.2.6.dylib 0x1e967fccc ruby_run_node + 72
52 ruby 0x104947508 main + 96
53 dyld 0x1049cd088 start + 516
Thread 1:
0 libsystem_kernel.dylib 0x18472ced0 poll + 8
1 libruby.2.6.dylib 0x1e9774b88 0x1e961b000 + 1416072
2 libsystem_pthread.dylib 0x18476226c _pthread_start + 148
3 libsystem_pthread.dylib 0x18475d08c thread_start + 8
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0xfffffffffed6f2e2 x5: 0x0000000000000012 x6: 0x000000000000000a x7: 0x0000000000000000
x8: 0x02bb9e94d99e2ebf x9: 0x02bb9e95dd3a2b3f x10: 0x0000000000000002 x11: 0x00000000fffffffd
x12: 0x0000010000000000 x13: 0x0000000000000000 x14: 0x0000000000000000 x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x00000001de5cf640 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000104a40580 x21: 0x0000000000000103 x22: 0x0000000104a40660 x23: 0x0000000104cec000
x24: 0x0000000000000028 x25: 0x0000019900000000 x26: 0x0000000000004ce0 x27: 0x0000000000000030
x28: 0x00000001049bc028 fp: 0x00000001438d62a0 lr: 0x0000000184761ee0
sp: 0x00000001438d6280 pc: 0x000000018472cdb8 cpsr: 0x40001000
far: 0x00000001438d63b0 esr: 0x56000080 Address size fault
Binary Images:
0x184723000 - 0x18475afff libsystem_kernel.dylib () <1d7b3b8e-75a1-34ea-aa52-9f7c23155c55> /usr/lib/system/libsystem_kernel.dylib
0x18475b000 - 0x184767fff libsystem_pthread.dylib () /usr/lib/system/libsystem_pthread.dylib
0x184622000 - 0x1846a3fff libsystem_c.dylib () /usr/lib/system/libsystem_c.dylib
0x1e961b000 - 0x1e984efff libruby.2.6.dylib () /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/libruby.2.6.dylib
0x184775000 - 0x18477cfff libsystem_platform.dylib () <84fa5dd0-806c-310e-b047-479924cd688c> /usr/lib/system/libsystem_platform.dylib
0x104cd0000 - 0x104ce7fff ffi_c.bundle () <1e7ad804-11f6-3993-9938-f08ed2eb68d3> /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle
0x104944000 - 0x104947fff ruby () <4e6547d7-c8a3-3318-904e-46a58c057297> /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
0x1049c8000 - 0x104a27fff dyld () /usr/lib/dyld
0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
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: 0
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=667.4M resident=0K(0%) swapped_out_or_unallocated=667.4M(100%)
Writable regions: Total=1.1G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.1G(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Activity Tracing 256K 1
Kernel Alloc Once 32K 1
MALLOC 239.2M 27
MALLOC guard page 96K 5
MALLOC_MEDIUM (reserved) 480.0M 4 reserved VM address space (unallocated)
MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)
STACK GUARD 16K 1
Stack 8720K 2
Stack Guard 56.0M 1
VM_ALLOCATE (reserved) 16K 1 reserved VM address space (unallocated)
__AUTH 220K 45
__AUTH_CONST 2897K 125
__DATA 1125K 129
__DATA_CONST 3835K 138
__DATA_DIRTY 233K 51
__LINKEDIT 586.1M 14
__OBJC_CONST 260K 29
__OBJC_RO 82.9M 1
__OBJC_RW 3152K 1
__TEXT 81.2M 144
__UNICODE 592K 1
dyld private memory 1024K 1
shared memory 32K 2
=========== ======= =======
TOTAL 1.9G 725
TOTAL, minus reserved VM space 1.0G 725
that's all log
Updated by zhaoxinqiang (marc steven) about 3 years ago
I had contacted with the developer from Jazzy , he told me it has no relationship with it...
Updated by zhaoxinqiang (marc steven) about 3 years ago
matz (Yukihiro Matsumoto) wrote in #note-2:
It's too hard to determine the reason. It may be caused by a bug in Ruby, or in Jazzy, or even in iOS. Show us the log file at least.
Matz.
I chatted with core developer from jazzy , he told me it has no relationship with it...
Updated by mame (Yusuke Endoh) about 3 years ago
- Status changed from Feedback to Third Party's Issue