Subject: bug#38723: 27.0.50; macosx: [bootstrap-emacs.pdmp] Segmentation fault with ImageMagick

From: Sam Steingold <[email-masked]>
Date: Mon, 23 Dec 2019 16:45:44 -0500

> * Alan Third <[email-masked]> [2019-12-23 21:26:49 +0000]:
>
> On Mon, Dec 23, 2019 at 10:54:53AM -0500, Sam Steingold wrote:
>> (lldb) run --batch  -l loadup --temacs=pbootstrap
> <snip>
>> Loading /Users/sam.steingold/src/emacs/trunk/lisp/image.el (source)...
>> Process 60246 stopped
>> * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8)
>>     frame #0: 0x0000000100eebddc libomp.dylib`__kmp_set_indirect_lock(unsigned int*, int) + 14
>> libomp.dylib`__kmp_set_indirect_lock:
>> ->  0x100eebddc <+14>: movl   0x8(%rax), %edx
>>     0x100eebddf <+17>: movq   (%rcx,%rdx,8), %rcx
>>     0x100eebde3 <+21>: movq   (%rax), %rdi
>>     0x100eebde6 <+24>: popq   %rbp
>> Target 0: (temacs) stopped.
>> (lldb) bt
>> * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8)
>>   * frame #0: 0x0000000100eebddc libomp.dylib`__kmp_set_indirect_lock(unsigned int*, int) + 14
>>     frame #1: 0x0000000100ebfd10 libomp.dylib`__kmpc_set_lock + 189
>>     frame #2: 0x0000000100a8e835 libMagickCore-7.Q16HDRI.7.dylib`ActivateSemaphoreInfo + 39
>>     frame #3: 0x0000000100a1aa7e libMagickCore-7.Q16HDRI.7.dylib`GetMagickInfo + 58
>>     frame #4: 0x0000000100a1aed9 libMagickCore-7.Q16HDRI.7.dylib`GetMagickList + 104
>>     frame #5: 0x00000001001c44e2 temacs`Fimagemagick_types at image.c:9294:13 [opt]
>>     frame #6: 0x0000000100146b64 temacs`eval_sub(form=<unavailable>) at eval.c:2270:15 [opt]
>
> Hi, I can’t replicate this. What version of ImageMagick are you using,
> and where did you get it from?

--8<---------------cut here---------------start------------->8---
$ brew info ImageMagick
ImageMagick: stable 7.0.9-10 (bottled), HEAD
Tools and libraries to manipulate images in many formats
https://www.imagemagick.org/
/usr/local/Cellar/ImageMagick/7.0.9-10 (1,479 files, 23.9MB)
  Poured from bottle on 2019-12-23 at 09:25:15
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/imagemagick.rb
--8<---------------cut here---------------end--------------->8---

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1671
http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com
https://jij.org https://www.memritv.org https://ffii.org
Profanity is the one language all programmers know best.