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

Allow MagickCore6 from Magick-config #40

Closed
bf4 opened this issue Jul 24, 2014 · 4 comments
Closed

Allow MagickCore6 from Magick-config #40

bf4 opened this issue Jul 24, 2014 · 4 comments

Comments

@bf4
Copy link
Member

bf4 commented Jul 24, 2014

Issue by chulkilee
Monday Feb 11, 2013 at 07:05 GMT
Originally opened as #67


Installing rmagick failed because extconf.rb does not recognize the output of Magick-config --libs, -L/usr/local/lib -lm -lMagickCore6-Q16

(Installed ImageMagick 6.8.2-9 from source with --disable-static on CentOS 5.9)


chulkilee included the following code: https://github.com/rmagick/rmagick/pull/67/commits

@Koronen
Copy link

Koronen commented Sep 7, 2014

@chulkilee are you able to rebase this onto the current master branch?

@ioquatix
Copy link
Contributor

ioquatix commented Sep 7, 2014

We need to confirm if this is still an issue, but yeah this might still be a bug..

@chulkilee
Copy link
Contributor

Done - rebased it onto the gemhome master branch.

@ioquatix
Copy link
Contributor

ioquatix commented Sep 8, 2014

@chulkilee Can you please submit a PR to this fork?

@vassilevsky vassilevsky mentioned this issue Aug 14, 2015
@linduxed linduxed closed this as completed Dec 6, 2015
Watson1978 referenced this issue in Watson1978/rmagick Dec 29, 2019
The AddressSanitizer indicates heap-buffer-overflow at https://github.com/rmagick/rmagick/blob/655f48ff2fdc980be63bf656f2f5bef393c8d182/ext/RMagick/rmimage.c#L16057

```
$ CFLAGS='-O0 -g -fsanitize=address -fno-omit-frame-pointer' rake
...
==52655==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61d00082bc00 at pc 0x00011ae6566d bp 0x7ffee11df090 sp 0x7ffee11df088
READ of size 4 at 0x61d00082bc00 thread T0
    #0 0x11ae6566c in Image_wet_floor rmimage.c:16057
    #1 0x10f25bdf9 in call_cfunc_m1 vm_insnhelper.c:2336
    #2 0x10f23aaa9 in vm_call_cfunc_with_frame vm_insnhelper.c:2514
    #3 0x10f21bf8b in vm_call_cfunc vm_insnhelper.c:2539
    #4 0x10f219e74 in vm_call_method_each_type vm_insnhelper.c:2925
    #5 0x10f219649 in vm_call_method vm_insnhelper.c:3028
    #6 0x10f1bf95c in vm_call_general vm_insnhelper.c:3076
    #7 0x10f247393 in vm_sendish vm_insnhelper.c:4023
    #8 0x10f1cdf3f in vm_exec_core insns.def:801
    #9 0x10f20a734 in rb_vm_exec vm.c:1920
    #10 0x10f2660c6 in invoke_block vm.c:1044
    #11 0x10f26559c in invoke_block_from_c_bh vm.c:1134
    #12 0x10f1fe93e in vm_yield_with_cref vm.c:1171
    #13 0x10f1ff972 in yield_under vm_eval.c:1877
    #14 0x10f201fc9 in rb_obj_instance_exec_internal vm_eval.c:2023
    #15 0x10f25bdf9 in call_cfunc_m1 vm_insnhelper.c:2336
    #16 0x10f23aaa9 in vm_call_cfunc_with_frame vm_insnhelper.c:2514
    #17 0x10f21bf8b in vm_call_cfunc vm_insnhelper.c:2539
    #18 0x10f247393 in vm_sendish vm_insnhelper.c:4023
    #19 0x10f1cda91 in vm_exec_core insns.def:782
    #20 0x10f20a880 in rb_vm_exec vm.c:1929
    #21 0x10f2660c6 in invoke_block vm.c:1044
    #22 0x10f26559c in invoke_block_from_c_bh vm.c:1134
    #23 0x10f2650c0 in vm_yield vm.c:1179
    #24 0x10f1f86a4 in rb_yield_0 vm_eval.c:1227
    #25 0x10f1f8604 in rb_yield_1 vm_eval.c:1233
    #26 0x10f1f86e3 in rb_yield vm_eval.c:1243
    #27 0x10ea232c1 in rb_ary_collect array.c:3065
    #28 0x10f25be28 in call_cfunc_0 vm_insnhelper.c:2343
    #29 0x10f23aaa9 in vm_call_cfunc_with_frame vm_insnhelper.c:2514
    #30 0x10f21bf8b in vm_call_cfunc vm_insnhelper.c:2539
    #31 0x10f247393 in vm_sendish vm_insnhelper.c:4023
    #32 0x10f1cda91 in vm_exec_core insns.def:782
    #33 0x10f20a734 in rb_vm_exec vm.c:1920
    #34 0x10f2660c6 in invoke_block vm.c:1044
    #35 0x10f26559c in invoke_block_from_c_bh vm.c:1134
    #36 0x10f2650c0 in vm_yield vm.c:1179
    #37 0x10f1f86a4 in rb_yield_0 vm_eval.c:1227
    #38 0x10f1f8604 in rb_yield_1 vm_eval.c:1233
    #39 0x10f1f86e3 in rb_yield vm_eval.c:1243
    #40 0x10ea232c1 in rb_ary_collect array.c:3065
    #41 0x10f25be28 in call_cfunc_0 vm_insnhelper.c:2343
    #42 0x10f23aaa9 in vm_call_cfunc_with_frame vm_insnhelper.c:2514
    #43 0x10f21bf8b in vm_call_cfunc vm_insnhelper.c:2539
    #44 0x10f219e74 in vm_call_method_each_type vm_insnhelper.c:2925
    #45 0x10f219649 in vm_call_method vm_insnhelper.c:3028
    #46 0x10f1bf95c in vm_call_general vm_insnhelper.c:3076
    rmagick#47 0x10f247393 in vm_sendish vm_insnhelper.c:4023
    rmagick#48 0x10f1cda91 in vm_exec_core insns.def:782
    rmagick#49 0x10f20a880 in rb_vm_exec vm.c:1929
    rmagick#50 0x10f20efcf in rb_iseq_eval_main vm.c:2179
    rmagick#51 0x10ebcd82b in rb_ec_exec_node eval.c:277
    rmagick#52 0x10ebcd2ae in ruby_run_node eval.c:335
    rmagick#53 0x10ea0bd13 in main main.c:50
    rmagick#54 0x7fff67ac57fc in start (libdyld.dylib:x86_64+0x1a7fc)

0x61d00082bc00 is located 0 bytes to the right of 1920-byte region [0x61d00082b480,0x61d00082bc00)
allocated by thread T0 here:
    #0 0x10f85b107 in wrap_posix_memalign (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x62107)
    #1 0x11ae8d87c in rm_aligned_malloc rmmain.c:147
    #2 0x11b0dfa06 in AcquireAlignedMemory (libMagickCore-7.Q16HDRI.7.dylib:x86_64+0x10ea06)
    #3 0x11aff6a38 in OpenPixelCache (libMagickCore-7.Q16HDRI.7.dylib:x86_64+0x25a38)
    #4 0x11aff8c5d in GetImagePixelCache (libMagickCore-7.Q16HDRI.7.dylib:x86_64+0x27c5d)
    #5 0x11affb381 in SyncImagePixelCache (libMagickCore-7.Q16HDRI.7.dylib:x86_64+0x2a381)
    #6 0x11b001601 in SetImageAlphaChannel (libMagickCore-7.Q16HDRI.7.dylib:x86_64+0x30601)
    #7 0x11ae653b2 in Image_wet_floor rmimage.c:16013
    #8 0x10f25bdf9 in call_cfunc_m1 vm_insnhelper.c:2336
    #9 0x10f23aaa9 in vm_call_cfunc_with_frame vm_insnhelper.c:2514
    #10 0x10f21bf8b in vm_call_cfunc vm_insnhelper.c:2539
    #11 0x10f219e74 in vm_call_method_each_type vm_insnhelper.c:2925
    #12 0x10f219649 in vm_call_method vm_insnhelper.c:3028
    #13 0x10f1bf95c in vm_call_general vm_insnhelper.c:3076
    #14 0x10f247393 in vm_sendish vm_insnhelper.c:4023
    #15 0x10f1cdf3f in vm_exec_core insns.def:801
    #16 0x10f20a734 in rb_vm_exec vm.c:1920
    #17 0x10f2660c6 in invoke_block vm.c:1044
    #18 0x10f26559c in invoke_block_from_c_bh vm.c:1134
    #19 0x10f1fe93e in vm_yield_with_cref vm.c:1171
    #20 0x10f1ff972 in yield_under vm_eval.c:1877
    #21 0x10f201fc9 in rb_obj_instance_exec_internal vm_eval.c:2023
    #22 0x10f25bdf9 in call_cfunc_m1 vm_insnhelper.c:2336
    #23 0x10f23aaa9 in vm_call_cfunc_with_frame vm_insnhelper.c:2514
    #24 0x10f21bf8b in vm_call_cfunc vm_insnhelper.c:2539
    #25 0x10f247393 in vm_sendish vm_insnhelper.c:4023
    #26 0x10f1cda91 in vm_exec_core insns.def:782
    #27 0x10f20a880 in rb_vm_exec vm.c:1929
    #28 0x10f2660c6 in invoke_block vm.c:1044
    #29 0x10f26559c in invoke_block_from_c_bh vm.c:1134

SUMMARY: AddressSanitizer: heap-buffer-overflow rmimage.c:16057 in Image_wet_floor
Shadow bytes around the buggy address:
  0x1c3a00105730: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1c3a00105740: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1c3a00105750: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1c3a00105760: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1c3a00105770: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x1c3a00105780:[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c3a00105790: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c3a001057a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c3a001057b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c3a001057c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c3a001057d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
  Shadow gap:              cc
==52655==ABORTING
```

The address of variable `p` and `q` will be moved in https://github.com/rmagick/rmagick/blob/655f48ff2fdc980be63bf656f2f5bef393c8d182/ext/RMagick/rmimage.c#L16062-L16063

The overflow will be occurred with storing to moved address + index `x`.
Watson1978 added a commit that referenced this issue Dec 29, 2019
The AddressSanitizer indicates heap-buffer-overflow at https://github.com/rmagick/rmagick/blob/655f48ff2fdc980be63bf656f2f5bef393c8d182/ext/RMagick/rmimage.c#L16057

```
$ CFLAGS='-O0 -g -fsanitize=address -fno-omit-frame-pointer' rake
...
==52655==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61d00082bc00 at pc 0x00011ae6566d bp 0x7ffee11df090 sp 0x7ffee11df088
READ of size 4 at 0x61d00082bc00 thread T0
    #0 0x11ae6566c in Image_wet_floor rmimage.c:16057
    #1 0x10f25bdf9 in call_cfunc_m1 vm_insnhelper.c:2336
    #2 0x10f23aaa9 in vm_call_cfunc_with_frame vm_insnhelper.c:2514
    #3 0x10f21bf8b in vm_call_cfunc vm_insnhelper.c:2539
    #4 0x10f219e74 in vm_call_method_each_type vm_insnhelper.c:2925
    #5 0x10f219649 in vm_call_method vm_insnhelper.c:3028
    #6 0x10f1bf95c in vm_call_general vm_insnhelper.c:3076
    #7 0x10f247393 in vm_sendish vm_insnhelper.c:4023
    #8 0x10f1cdf3f in vm_exec_core insns.def:801
    #9 0x10f20a734 in rb_vm_exec vm.c:1920
    #10 0x10f2660c6 in invoke_block vm.c:1044
    #11 0x10f26559c in invoke_block_from_c_bh vm.c:1134
    #12 0x10f1fe93e in vm_yield_with_cref vm.c:1171
    #13 0x10f1ff972 in yield_under vm_eval.c:1877
    #14 0x10f201fc9 in rb_obj_instance_exec_internal vm_eval.c:2023
    #15 0x10f25bdf9 in call_cfunc_m1 vm_insnhelper.c:2336
    #16 0x10f23aaa9 in vm_call_cfunc_with_frame vm_insnhelper.c:2514
    #17 0x10f21bf8b in vm_call_cfunc vm_insnhelper.c:2539
    #18 0x10f247393 in vm_sendish vm_insnhelper.c:4023
    #19 0x10f1cda91 in vm_exec_core insns.def:782
    #20 0x10f20a880 in rb_vm_exec vm.c:1929
    #21 0x10f2660c6 in invoke_block vm.c:1044
    #22 0x10f26559c in invoke_block_from_c_bh vm.c:1134
    #23 0x10f2650c0 in vm_yield vm.c:1179
    #24 0x10f1f86a4 in rb_yield_0 vm_eval.c:1227
    #25 0x10f1f8604 in rb_yield_1 vm_eval.c:1233
    #26 0x10f1f86e3 in rb_yield vm_eval.c:1243
    #27 0x10ea232c1 in rb_ary_collect array.c:3065
    #28 0x10f25be28 in call_cfunc_0 vm_insnhelper.c:2343
    #29 0x10f23aaa9 in vm_call_cfunc_with_frame vm_insnhelper.c:2514
    #30 0x10f21bf8b in vm_call_cfunc vm_insnhelper.c:2539
    #31 0x10f247393 in vm_sendish vm_insnhelper.c:4023
    #32 0x10f1cda91 in vm_exec_core insns.def:782
    #33 0x10f20a734 in rb_vm_exec vm.c:1920
    #34 0x10f2660c6 in invoke_block vm.c:1044
    #35 0x10f26559c in invoke_block_from_c_bh vm.c:1134
    #36 0x10f2650c0 in vm_yield vm.c:1179
    #37 0x10f1f86a4 in rb_yield_0 vm_eval.c:1227
    #38 0x10f1f8604 in rb_yield_1 vm_eval.c:1233
    #39 0x10f1f86e3 in rb_yield vm_eval.c:1243
    #40 0x10ea232c1 in rb_ary_collect array.c:3065
    #41 0x10f25be28 in call_cfunc_0 vm_insnhelper.c:2343
    #42 0x10f23aaa9 in vm_call_cfunc_with_frame vm_insnhelper.c:2514
    #43 0x10f21bf8b in vm_call_cfunc vm_insnhelper.c:2539
    #44 0x10f219e74 in vm_call_method_each_type vm_insnhelper.c:2925
    #45 0x10f219649 in vm_call_method vm_insnhelper.c:3028
    #46 0x10f1bf95c in vm_call_general vm_insnhelper.c:3076
    #47 0x10f247393 in vm_sendish vm_insnhelper.c:4023
    #48 0x10f1cda91 in vm_exec_core insns.def:782
    #49 0x10f20a880 in rb_vm_exec vm.c:1929
    #50 0x10f20efcf in rb_iseq_eval_main vm.c:2179
    #51 0x10ebcd82b in rb_ec_exec_node eval.c:277
    #52 0x10ebcd2ae in ruby_run_node eval.c:335
    #53 0x10ea0bd13 in main main.c:50
    #54 0x7fff67ac57fc in start (libdyld.dylib:x86_64+0x1a7fc)

0x61d00082bc00 is located 0 bytes to the right of 1920-byte region [0x61d00082b480,0x61d00082bc00)
allocated by thread T0 here:
    #0 0x10f85b107 in wrap_posix_memalign (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x62107)
    #1 0x11ae8d87c in rm_aligned_malloc rmmain.c:147
    #2 0x11b0dfa06 in AcquireAlignedMemory (libMagickCore-7.Q16HDRI.7.dylib:x86_64+0x10ea06)
    #3 0x11aff6a38 in OpenPixelCache (libMagickCore-7.Q16HDRI.7.dylib:x86_64+0x25a38)
    #4 0x11aff8c5d in GetImagePixelCache (libMagickCore-7.Q16HDRI.7.dylib:x86_64+0x27c5d)
    #5 0x11affb381 in SyncImagePixelCache (libMagickCore-7.Q16HDRI.7.dylib:x86_64+0x2a381)
    #6 0x11b001601 in SetImageAlphaChannel (libMagickCore-7.Q16HDRI.7.dylib:x86_64+0x30601)
    #7 0x11ae653b2 in Image_wet_floor rmimage.c:16013
    #8 0x10f25bdf9 in call_cfunc_m1 vm_insnhelper.c:2336
    #9 0x10f23aaa9 in vm_call_cfunc_with_frame vm_insnhelper.c:2514
    #10 0x10f21bf8b in vm_call_cfunc vm_insnhelper.c:2539
    #11 0x10f219e74 in vm_call_method_each_type vm_insnhelper.c:2925
    #12 0x10f219649 in vm_call_method vm_insnhelper.c:3028
    #13 0x10f1bf95c in vm_call_general vm_insnhelper.c:3076
    #14 0x10f247393 in vm_sendish vm_insnhelper.c:4023
    #15 0x10f1cdf3f in vm_exec_core insns.def:801
    #16 0x10f20a734 in rb_vm_exec vm.c:1920
    #17 0x10f2660c6 in invoke_block vm.c:1044
    #18 0x10f26559c in invoke_block_from_c_bh vm.c:1134
    #19 0x10f1fe93e in vm_yield_with_cref vm.c:1171
    #20 0x10f1ff972 in yield_under vm_eval.c:1877
    #21 0x10f201fc9 in rb_obj_instance_exec_internal vm_eval.c:2023
    #22 0x10f25bdf9 in call_cfunc_m1 vm_insnhelper.c:2336
    #23 0x10f23aaa9 in vm_call_cfunc_with_frame vm_insnhelper.c:2514
    #24 0x10f21bf8b in vm_call_cfunc vm_insnhelper.c:2539
    #25 0x10f247393 in vm_sendish vm_insnhelper.c:4023
    #26 0x10f1cda91 in vm_exec_core insns.def:782
    #27 0x10f20a880 in rb_vm_exec vm.c:1929
    #28 0x10f2660c6 in invoke_block vm.c:1044
    #29 0x10f26559c in invoke_block_from_c_bh vm.c:1134

SUMMARY: AddressSanitizer: heap-buffer-overflow rmimage.c:16057 in Image_wet_floor
Shadow bytes around the buggy address:
  0x1c3a00105730: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1c3a00105740: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1c3a00105750: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1c3a00105760: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x1c3a00105770: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x1c3a00105780:[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c3a00105790: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c3a001057a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c3a001057b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c3a001057c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c3a001057d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
  Shadow gap:              cc
==52655==ABORTING
```

The address of variable `p` and `q` will be moved in https://github.com/rmagick/rmagick/blob/655f48ff2fdc980be63bf656f2f5bef393c8d182/ext/RMagick/rmimage.c#L16062-L16063

The overflow will be occurred with storing to moved address + index `x`.
Watson1978 added a commit that referenced this issue May 5, 2023
ruby_xmalloc is called when ImageMagick requires memory.
Seems that it causes lock condition at rb_native_mutex_lock with running ractor on Ruby 3.0 sometimes.

```
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00000001911b2bc8 libsystem_kernel.dylib`__psynch_mutexwait + 8
    frame #1: 0x00000001911ed0c4 libsystem_pthread.dylib`_pthread_mutex_firstfit_lock_wait + 84
    frame #2: 0x00000001911eaa5c libsystem_pthread.dylib`_pthread_mutex_firstfit_lock_slow + 248
    frame #3: 0x0000000104409b64 ruby`rb_native_mutex_lock(lock=0x000000012a00d630) at thread_pthread.c:397:14
    frame #4: 0x00000001044a3564 ruby`vm_lock_enter(cr=0x0000000129e05100, vm=0x000000012a00d600, locked=false, no_barrier=false, lev=0x000000012a00d678) at vm_sync.c:56:9
    frame #5: 0x00000001044a38ec ruby`rb_vm_lock_body at vm_sync.c:173:5
    frame #6: 0x00000001043451ec ruby`rb_vm_lock(file="ractor.c", line=1829) at vm_sync.h:58:9
    frame #7: 0x0000000104344cf8 ruby`ractor_check_blocking(cr=0x0000000129e05100, remained_thread_cnt=1, file="ractor.c", line=1865) at ractor.c:1829:9
    frame #8: 0x0000000104344e4c ruby`rb_ractor_blocking_threads_inc(cr=0x0000000129e05100, file="thread.c", line=1639) at ractor.c:1865:5
    frame #9: 0x000000010440db04 ruby`blocking_region_begin(th=0x0000000129e04990, region=0x000000016bcb7fa4, ubf=(ruby`ubf_select at thread_pthread.c:1303), arg=0x0000000129e04990, fail_if_interrupted=0) at thread.c:1639:9
    frame #10: 0x000000010440d81c ruby`rb_nogvl(func=(ruby`no_gvl_apply2files at file.c:432), data1=0x000000016bcb7ff0, ubf=(ruby`ubf_select at thread_pthread.c:1303), data2=0x0000000129e04990, flags=0) at thread.c:1695:5
    frame #11: 0x000000010440ddbc ruby`rb_thread_call_without_gvl(func=(ruby`no_gvl_apply2files at file.c:432), data1=0x000000016bcb7ff0, ubf=0xffffffffffffffff, data2=0x0000000000000000) at thread.c:1811:12
    frame #12: 0x000000010420bd70 ruby`apply2files(func=(ruby`unlink_internal at file.c:3187), argc=1, argv=0x0000000130028540, arg=0x0000000000000000) at file.c:470:5
    frame #13: 0x00000001042061c4 ruby`rb_file_s_unlink(argc=1, argv=0x0000000130028540, klass=5000238800) at file.c:3210:12
    frame #14: 0x000000010449415c ruby`ractor_safe_call_cfunc_m1(recv=5000238800, argc=1, argv=0x0000000130028540, func=(ruby`rb_file_s_unlink at file.c:3209)) at vm_insnhelper.c:2738:12
    frame #15: 0x000000010448f1b4 ruby`vm_call_cfunc_with_frame(ec=0x0000000129e04e60, reg_cfp=0x00000001301278c8, calling=0x000000016bcb8340) at vm_insnhelper.c:2928:11
    frame #16: 0x000000010447e404 ruby`vm_sendish(ec=0x0000000129e04e60, reg_cfp=0x00000001301278c8, cd=0x0000600002df4f80, block_handler=0, method_explorer=mexp_search_method) at vm_insnhelper.c:4529:15
    frame #17: 0x000000010445d5c4 ruby`vm_exec_core(ec=0x0000000129e04e60, initial=0) at insns.def:789:11
    frame #18: 0x0000000104473f88 ruby`rb_vm_exec(ec=0x0000000129e04e60, mjit_enable_p=true) at vm.c:2162:22
    frame #19: 0x000000010446a4b0 ruby`vm_call0_body(ec=0x0000000129e04e60, calling=0x000000016bcb9df0, argv=0x000000016bcb9f50) at vm_eval.c:176:20
    frame #20: 0x000000010446a28c ruby`rb_vm_call0(ec=0x0000000129e04e60, recv=4757327560, id=3377, argc=1, argv=0x000000016bcb9f50, cme=0x000000012d9e8c60, kw_splat=0) at vm_eval.c:57:12
    frame #21: 0x000000010446ad5c ruby`rb_vm_call_kw(ec=0x0000000129e04e60, recv=4757327560, id=3377, argc=1, argv=0x000000016bcb9f50, me=0x000000012d9e8c60, kw_splat=0) at vm_eval.c:262:12
    frame #22: 0x000000010446b20c ruby`rb_check_funcall_default_kw(recv=4757327560, mid=3377, argc=1, argv=0x000000016bcb9f50, def=52, kw_splat=0) at vm_eval.c:643:12
    frame #23: 0x000000010446b25c ruby`rb_check_funcall(recv=4757327560, mid=3377, argc=1, argv=0x000000016bcb9f50) at vm_eval.c:621:12
    frame #24: 0x0000000104228864 ruby`run_single_final(final=4757327320, objid=38441) at gc.c:3630:12
    frame #25: 0x0000000104210158 ruby`run_finalizer(objspace=0x000000012a009800, obj=4757331720, table=4757327280) at gc.c:3662:2
    frame #26: 0x0000000104228984 ruby`run_final(objspace=0x000000012a009800, zombie=4757331720) at gc.c:3679:2
    frame #27: 0x00000001042105ec ruby`finalize_list(objspace=0x000000012a009800, zombie=4757331720) at gc.c:3693:2
    frame #28: 0x000000010420ff6c ruby`finalize_deferred(objspace=0x000000012a009800) at gc.c:3724:2
    frame #29: 0x0000000104224808 ruby`gc_finalize_deferred(dmy=0x000000012a009800) at gc.c:3736:9
    frame #30: 0x00000001044a82d4 ruby`rb_postponed_job_flush(vm=0x000000012a00d600) at vm_trace.c:1702:21
    frame #31: 0x000000010440e4e8 ruby`rb_threadptr_execute_interrupts(th=0x0000000129e04990, blocking_timing=0) at thread.c:2451:6
    frame #32: 0x000000010440d6b0 ruby`rb_vm_check_ints(ec=0x0000000129e04e60) at vm_core.h:1927:2
    frame #33: 0x00000001044198e4 ruby`unblock_function_set(th=0x0000000129e04990, func=(ruby`ubf_select at thread_pthread.c:1303), arg=0x0000000129e04990, fail_if_interrupted=0) at thread.c:463:6
    frame #34: 0x000000010440dabc ruby`blocking_region_begin(th=0x0000000129e04990, region=0x000000016bcbf244, ubf=(ruby`ubf_select at thread_pthread.c:1303), arg=0x0000000129e04990, fail_if_interrupted=0) at thread.c:1636:9
    frame #35: 0x000000010440e258 ruby`rb_thread_call_with_gvl(func=(ruby`gc_with_gvl at gc.c:8498), data1=0x000000016bcba568) at thread.c:1920:20
    frame #36: 0x000000010422c8d8 ruby`garbage_collect_with_gvl(objspace=0x000000012a009800, reason=512) at gc.c:8515:25
    frame #37: 0x0000000104218090 ruby`objspace_malloc_increase(objspace=0x000000012a009800, mem=0x00006000029c00c0, new_size=192, old_size=0, type=MEMOP_TYPE_MALLOC) at gc.c:10456:6
    frame #38: 0x000000010422c9f4 ruby`objspace_malloc_fixup(objspace=0x000000012a009800, mem=0x00006000029c00c0, size=192) at gc.c:10535:5
    frame #39: 0x00000001042175c8 ruby`objspace_xmalloc0(objspace=0x000000012a009800, size=192) at gc.c:10606:12
    frame #40: 0x0000000104217490 ruby`ruby_xmalloc0(size=192) at gc.c:10825:12
    frame #41: 0x0000000104217430 ruby`ruby_xmalloc_body(size=192) at gc.c:10834:12
    frame #42: 0x0000000104213a08 ruby`ruby_xmalloc(size=192) at gc.c:12801:12
    frame #43: 0x0000000105f2bf74 RMagick2.bundle`rm_malloc(size=192) at rmmain.c:77:12
    frame #44: 0x0000000106429974 libMagickCore-7.Q16HDRI.10.dylib`AcquirePixelCacheNexus(number_threads=1) at cache.c:274:29 [opt]
    frame #45: 0x000000010642e03c libMagickCore-7.Q16HDRI.10.dylib`ClonePixelCacheRepository(clone_info=0x0000000128409800, cache_info=0x000000011a4e4600, exception=0x00006000006a2100) at cache.c:726:15 [opt]
    frame #46: 0x000000010642e5a4 libMagickCore-7.Q16HDRI.10.dylib`GetImagePixelCache(image=0x00000001283fd400, clone=MagickTrue, exception=0x00006000006a2100) at cache.c:1759:24 [opt]
    frame #47: 0x000000010642fbc0 libMagickCore-7.Q16HDRI.10.dylib`SyncImagePixelCache(image=<unavailable>, exception=<unavailable>) at cache.c:5526:28 [opt]
    frame #48: 0x00000001064ad95c libMagickCore-7.Q16HDRI.10.dylib`SetImageStorageClass(image=<unavailable>, storage_class=<unavailable>, exception=<unavailable>) at image.c:2618:10 [opt] [artificial]
    frame #49: 0x00000001064431d0 libMagickCore-7.Q16HDRI.10.dylib`CompositeImage(image=0x00000001283fd400, composite=0x000000011a4eda00, compose=CopyYellowCompositeOp, clip_to_self=MagickTrue, x_offset=-5, y_offset=-5, exception=0x00006000006a2100) at composite.c:1575:7 [opt]
    frame #50: 0x0000000105f0e84c RMagick2.bundle`CompositeImage_gvl(p=0x000000016bcbf340) at rmimage.c:127:1
 ```
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

5 participants