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

From: Sam Steingold <[email-masked]>
Date: Mon, 23 Dec 2019 10:54:53 -0500

$ git --no-pager rev-parse HEAD
f8e83d73a259e1809020d47e920a96a1f5803f7a

(works without ImageMagick)

--8<---------------cut here---------------start------------->8---
(lldb) run --batch  -l loadup --temacs=pbootstrap
Process 60246 launched: '/Users/sam.steingold/src/emacs/trunk/build/src/temacs' (x86_64)
Loading loadup.el (source)...
dump mode: pbootstrap
Using load-path (/Users/sam.steingold/src/emacs/trunk/build/../lisp /Users/sam.steingold/src/emacs/trunk/lisp/emacs-lisp /Users/sam.steingold/src/emacs/trunk/lisp/progmodes /Users/sam.steingold/src/emacs/trunk/lisp/language /Users/sam.steingold/src/emacs/trunk/lisp/international /Users/sam.steingold/src/emacs/trunk/lisp/textmodes /Users/sam.steingold/src/emacs/trunk/lisp/vc)
Loading emacs-lisp/byte-run (source)...
Loading emacs-lisp/backquote (source)...
Loading subr (source)...
Loading version (source)...
Loading widget (source)...
Loading custom (source)...
Loading emacs-lisp/map-ynp (source)...
Loading international/mule (source)...
Loading international/mule-conf (source)...
Loading env (source)...
Loading format (source)...
Loading bindings (source)...
Loading window (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/files.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/emacs-lisp/macroexp.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/emacs-lisp/pcase.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/emacs-lisp/macroexp.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/cus-face.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/faces.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/button.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/ldefs-boot.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/emacs-lisp/nadvice.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/emacs-lisp/cl-preloaded.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/obarray.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/abbrev.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/simple.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/help.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/jka-cmpr-hook.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/epa-hook.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/international/mule-cmds.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/case-table.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/international/charprop.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/international/characters.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/international/charscript.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/composite.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/chinese.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/cyrillic.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/indian.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/sinhala.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/english.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/ethiopic.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/european.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/czech.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/slovak.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/romanian.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/greek.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/hebrew.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/international/cp51932.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/international/eucjp-ms.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/japanese.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/korean.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/lao.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/tai-viet.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/thai.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/tibetan.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/vietnamese.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/misc-lang.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/utf-8-lang.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/georgian.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/khmer.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/burmese.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/language/cham.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/indent.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/emacs-lisp/cl-generic.el (source)...
Eager macro-expansion failure: (error "Variable binding depth exceeds max-specpdl-size")
Loading /Users/sam.steingold/src/emacs/trunk/lisp/minibuffer.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/frame.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/startup.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/term/tty-colors.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/font-core.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/facemenu.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/emacs-lisp/syntax.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/font-lock.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/jit-lock.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/mouse.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/scroll-bar.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/select.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/emacs-lisp/timer.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/isearch.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/rfn-eshadow.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/menu-bar.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/tab-bar.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/emacs-lisp/lisp.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/textmodes/page.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/register.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/textmodes/paragraphs.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/progmodes/prog-mode.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/emacs-lisp/lisp-mode.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/progmodes/elisp-mode.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/textmodes/text-mode.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/textmodes/fill.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/newcomment.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/replace.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/emacs-lisp/tabulated-list.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/buff-menu.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/fringe.el (source)...
Loading /Users/sam.steingold/src/emacs/trunk/lisp/emacs-lisp/regexp-opt.el (source)...
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]
    frame #7: 0x0000000100146aca temacs`eval_sub(form=<unavailable>) at eval.c:2261:21 [opt]
    frame #8: 0x0000000100146aca temacs`eval_sub(form=<unavailable>) at eval.c:2261:21 [opt]
    frame #9: 0x0000000100146fed temacs`Fcond at eval.c:462:13 [opt]
    frame #10: 0x0000000100146fcf temacs`Fcond(args=0x00000001023631a3) at eval.c:442 [opt]
    frame #11: 0x0000000100146b42 temacs`eval_sub(form=<unavailable>) at eval.c:0 [opt]
    frame #12: 0x0000000100146f6d temacs`Fprogn(body=0x0000000000000000) at eval.c:462:13 [opt]
    frame #13: 0x0000000100146b42 temacs`eval_sub(form=<unavailable>) at eval.c:0 [opt]
    frame #14: 0x0000000100146b42 temacs`eval_sub(form=<unavailable>) at eval.c:0 [opt]
    frame #15: 0x000000010014b94d temacs`funcall_lambda at eval.c:462:13 [opt]
    frame #16: 0x000000010014b932 temacs`funcall_lambda(fun=0x00000001023633c3, nargs=0, arg_vector=0x00007ffeefbfd6d0) at eval.c:3060 [opt]
    frame #17: 0x000000010014a344 temacs`apply_lambda(fun=<unavailable>, args=<unavailable>, count=55) at eval.c:2926:9 [opt]
    frame #18: 0x000000010014688f temacs`eval_sub(form=<unavailable>) at eval.c:0 [opt]
    frame #19: 0x0000000100146aca temacs`eval_sub(form=<unavailable>) at eval.c:2261:21 [opt]
    frame #20: 0x0000000100147af0 temacs`FletX(args=0x0000000108a295f3) at eval.c:894:10 [opt]
    frame #21: 0x0000000100146b42 temacs`eval_sub(form=<unavailable>) at eval.c:0 [opt]
    frame #22: 0x0000000100146f6d temacs`Fprogn(body=0x0000000000000000) at eval.c:462:13 [opt]
    frame #23: 0x0000000100146b42 temacs`eval_sub(form=<unavailable>) at eval.c:0 [opt]
    frame #24: 0x0000000100146b42 temacs`eval_sub(form=<unavailable>) at eval.c:0 [opt]
    frame #25: 0x000000010014b94d temacs`funcall_lambda at eval.c:462:13 [opt]
    frame #26: 0x000000010014b932 temacs`funcall_lambda(fun=0x0000000108a29033, nargs=0, arg_vector=0x00007ffeefbfdb70) at eval.c:3060 [opt]
    frame #27: 0x000000010014a344 temacs`apply_lambda(fun=<unavailable>, args=<unavailable>, count=50) at eval.c:2926:9 [opt]
    frame #28: 0x000000010014688f temacs`eval_sub(form=<unavailable>) at eval.c:0 [opt]
    frame #29: 0x00000001001710b2 temacs`readevalloop(readcharfun=0x000000010834e565, infile0=0x0000000000000000, sourcename=0x0000000108339964, printflag=<unavailable>, unibyte=<unavailable>, readfun=0x0000000000000000, start=0x0000000000000000, end=0x0000000000000000) at lread.c:2110:15 [opt]
    frame #30: 0x00000001001713bb temacs`Feval_buffer(buffer=<unavailable>, printflag=0x0000000000000000, filename=0x0000000108339964, unibyte=0x0000000000000000, do_allow_print=<unavailable>) at lread.c:2183:3 [opt]
    frame #31: 0x0000000100146c84 temacs`eval_sub(form=<unavailable>) at eval.c:2287:15 [opt]
    frame #32: 0x000000010014817d temacs`Flet at eval.c:462:13 [opt]
    frame #33: 0x0000000100148152 temacs`Flet(args=0x000000010187d043) at eval.c:986 [opt]
    frame #34: 0x0000000100146b42 temacs`eval_sub(form=<unavailable>) at eval.c:0 [opt]
    frame #35: 0x0000000100148ae5 temacs`Funwind_protect(args=0x0000000101888303) at eval.c:1212:9 [opt]
    frame #36: 0x0000000100146b42 temacs`eval_sub(form=<unavailable>) at eval.c:0 [opt]
    frame #37: 0x0000000100147bdd temacs`FletX at eval.c:462:13 [opt]
    frame #38: 0x0000000100147bae temacs`FletX(args=0x000000010187d463) at eval.c:918 [opt]
    frame #39: 0x0000000100146b42 temacs`eval_sub(form=<unavailable>) at eval.c:0 [opt]
    frame #40: 0x0000000100146f2d temacs`Fif at eval.c:462:13 [opt]
    frame #41: 0x0000000100146f06 temacs`Fif(args=<unavailable>) at eval.c:418 [opt]
    frame #42: 0x0000000100146b42 temacs`eval_sub(form=<unavailable>) at eval.c:0 [opt]
    frame #43: 0x000000010014b94d temacs`funcall_lambda at eval.c:462:13 [opt]
    frame #44: 0x000000010014b932 temacs`funcall_lambda(fun=0x0000000101886b93, nargs=4, arg_vector=0x00007ffeefbfe328) at eval.c:3060 [opt]
    frame #45: 0x000000010014aa99 temacs`Ffuncall(nargs=<unavailable>, args=<unavailable>) at eval.c:0:4 [opt]
    frame #46: 0x000000010014b218 temacs`call4(fn=<unavailable>, arg1=<unavailable>, arg2=<unavailable>, arg3=<unavailable>, arg4=<unavailable>) at eval.c:2676:10 [opt]
    frame #47: 0x000000010016f321 temacs`Fload(file=0x0000000101575b94, noerror=<unavailable>, nomessage=0x0000000000000000, nosuffix=<unavailable>, must_suffix=<unavailable>) at lread.c:1386:10 [opt]
    frame #48: 0x0000000100146c84 temacs`eval_sub(form=<unavailable>) at eval.c:2287:15 [opt]
    frame #49: 0x0000000100146f6d temacs`Fprogn(body=0x000000010205e303) at eval.c:462:13 [opt]
    frame #50: 0x0000000100146b42 temacs`eval_sub(form=<unavailable>) at eval.c:0 [opt]
    frame #51: 0x0000000100146b42 temacs`eval_sub(form=<unavailable>) at eval.c:0 [opt]
    frame #52: 0x00000001001710b9 temacs`readevalloop(readcharfun=0x0000000000006660, infile0=0x00007ffeefbfea50, sourcename=0x0000000101431634, printflag=<unavailable>, unibyte=<unavailable>, readfun=0x0000000000000000, start=0x0000000000000000, end=0x0000000000000000) at lread.c:2112:15 [opt]
    frame #53: 0x000000010016f62f temacs`Fload(file=0x00000001014314b4, noerror=<unavailable>, nomessage=0x0000000000000000, nosuffix=<unavailable>, must_suffix=<unavailable>) at lread.c:0 [opt]
    frame #54: 0x0000000100146c84 temacs`eval_sub(form=<unavailable>) at eval.c:2287:15 [opt]
    frame #55: 0x000000010014a07a temacs`Feval(form=0x0000000101858a33, lexical=<unavailable>) at eval.c:2102:28 [opt]
    frame #56: 0x0000000100149157 temacs`internal_condition_case(bfun=(temacs`top_level_2 at keyboard.c:1099), handlers=0x0000000000000090, hfun=(temacs`cmd_error at keyboard.c:919)) at eval.c:1355:25 [opt]
    frame #57: 0x00000001000d28dd temacs`top_level_1(ignore=<unavailable>) at keyboard.c:1108:5 [opt]
    frame #58: 0x000000010014897b temacs`internal_catch(tag=0x000000000000c870, func=(temacs`top_level_1 at keyboard.c:1105), arg=0x0000000000000000) at eval.c:1116:25 [opt]
    frame #59: 0x0000000100209646 temacs`command_loop.cold.1 + 54
    frame #60: 0x00000001000c18f3 temacs`command_loop at keyboard.c:1069:2 [opt]
    frame #61: 0x00000001000c1823 temacs`recursive_edit_1 at keyboard.c:714:9 [opt]
    frame #62: 0x00000001000c1a7b temacs`Frecursive_edit at keyboard.c:786:3 [opt]
    frame #63: 0x00000001000c0661 temacs`main(argc=<unavailable>, argv=0x00007ffeefbff048) at emacs.c:2054:3 [opt]
    frame #64: 0x00007fff6f7083d5 libdyld.dylib`start + 1
    frame #65: 0x00007fff6f7083d5 libdyld.dylib`start + 1
(lldb) 
--8<---------------cut here---------------end--------------->8---

In GNU Emacs 27.0.50 (build 3, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G2022))
 of 2019-12-16 built on BZ-C02XR5CGJG5L
Repository revision: 5aab1e83f55ccbf7affc25272f6b1107aa17598c
Repository branch: master
Windowing system distributor 'Apple', version 10.3.1671
System Description:  Mac OS X 10.14.6

Configured using:
 'configure --with-imagemagick --with-mailutils --with-ns
 PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/imagemagick/lib/pkgconfig:/usr/local/opt/gnutls/lib/pkgconfig:/usr/local/opt/jansson/lib/pkgconfig'

Configured features:
IMAGEMAGICK NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS
MODULES THREADS JSON PDUMPER LCMS2 GMP

Important settings:
  value of $LANG: C
  locale-coding-system: utf-8-unix

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1671
http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com
https://thereligionofpeace.com https://jij.org https://iris.org.il
90% of female beauty is male imagination.