Opened 5 years ago

Closed 4 years ago

#8073 closed defect (fixed)

Segfault on macOS 10.15 "Catalina": stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT); libdyld.dylib`stack_not_16_byte_aligned_error

Reported by: Ryan Parman Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: osx
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

ffmpeg segfaults on ANY execution under macOS 10.15 "Catalina" (Developer Preview 19A526h).

For context (don't know if it's related or not), this is the first macOS release that will no longer run ANY 32-bit code.

Attempted this on tags 4.1.3, 4.1.4, and 4.2; latest master (commit da8936969fe695a042282d5686e12227745d299a as of this writing). Same compilation commands do not result in segfault in macOS 10.14.6 "Mojave".

How to reproduce:

In an attempt to pare down the options to the smallest possible set in order to identify the source of the bug, I've got this:

$ MACOSX_DEPLOYMENT_TARGET=10.15 \
LIBFFI_CFLAGS=-I/usr/include/ffi \
LIBFFI_LIBS=-lffi \
GLIB_CFLAGS="-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include" \
GLIB_LIBS="-lglib-2.0 -lgio-2.0" \
CFLAGS=`freetype-config --cflags` \
LDFLAGS=`freetype-config --libs` PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/opt/X11/lib/pkgconfig \
./configure \
    --arch=x86_64 \
    --cc=/usr/bin/clang \
    --disable-all \
    --disable-everything \
    --disable-stripping \
    --enable-debug=3 \
&& \
make -j$(nproc) && \
make install

(tested WITH and WITHOUT the environment variables preceding ./configure)

Results in:

$ ffmpeg 
Segmentation fault: 11

Based on some searching, I ran the following in an attempt to debug further.

$ lldb $(which ffmpeg)
(lldb) target create "/usr/local/bin/ffmpeg"
Current executable set to '/usr/local/bin/ffmpeg' (x86_64).
(lldb) run
Process 95311 launched: '/usr/local/bin/ffmpeg' (x86_64)
Process 95311 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
    frame #0: 0x00007fff6e08c366 libdyld.dylib`stack_not_16_byte_aligned_error
libdyld.dylib`stack_not_16_byte_aligned_error:
->  0x7fff6e08c366 <+0>: movdqa %xmm0, (%rsp)
    0x7fff6e08c36b <+5>: int3   
    0x7fff6e08c36c <+6>: nop    
    0x7fff6e08c36d <+7>: nop    
Target 0: (ffmpeg) stopped.
(lldb) run --help
There is a running process, kill it and restart?: [Y/n] y
Process 95311 exited with status = 9 (0x00000009) 
Process 95317 launched: '/usr/local/bin/ffmpeg' (x86_64)
Process 95317 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
    frame #0: 0x00007fff6e08c366 libdyld.dylib`stack_not_16_byte_aligned_error
libdyld.dylib`stack_not_16_byte_aligned_error:
->  0x7fff6e08c366 <+0>: movdqa %xmm0, (%rsp)
    0x7fff6e08c36b <+5>: int3   
    0x7fff6e08c36c <+6>: nop    
    0x7fff6e08c36d <+7>: nop    
Target 0: (ffmpeg) stopped.

Bug reporting details

http://ffmpeg.org/bugreports.html references gdb, which I'd be happy to install, but based on my reading it sounds like llvm, clang, and lldb have replaced gcc and gdb (at least on macOS).

This set of compilation commands does not appear to produce ffmpeg_g. Could not find any matches using:

find . -type f -name "*ffmpeg_g*"

Valgrind does not appear to support current macOS (10.14) nor the latest dev preview (10.15).

I am not a C developer, but I am happy to provide any additional information about my environment if instructions can be provided.

Change History (14)

in reply to:  description ; comment:1 by Carl Eugen Hoyos, 5 years ago

Keywords: osx added; catalina segfault stack_not_16_byte_aligned_error removed

Replying to skyzyx:

In an attempt to pare down the options to the smallest possible set in order to identify the source of the bug, I've got this:

Please test current FFmpeg git head (the only version supported here and on macos in general) with ./configure && make ffmpeg

comment:2 by Ryan Parman, 5 years ago

I've continued to poke at this over the last few weeks, and discovered that I had unintentionally disabled core dumps on my system. I also realized that I was running an older version of the binary that wasn't tied to my current compile. I'm a dumbass.

So…

  1. Today I pulled down the latest master (commit cc78783ce5e8837d4f4ca43eedf2d299651e65ff).
  1. I'm running the latest developer beta of macOS "Catalina" 10.15 (19A546d)
  1. I updated the compile command (trying to find the simplest compile that results in the issue), as follows:
$ MACOSX_DEPLOYMENT_TARGET=10.15 \
LIBFFI_CFLAGS=-I/usr/include/ffi \
LIBFFI_LIBS=-lffi \
GLIB_CFLAGS="-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include" \
GLIB_LIBS="-lglib-2.0 -lgio-2.0" \
CFLAGS=`freetype-config --cflags` \
LDFLAGS=`freetype-config --libs` PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/opt/X11/lib/pkgconfig \
./configure \
    --arch=x86_64 \
    --cpu=native \
    --cc=/usr/bin/clang \
    --disable-htmlpages \
    --disable-podpages \
    --disable-txtpages \
    --disable-stripping \
    --enable-debug=3 \
    --enable-small \
&& \
make -j$(nproc)

This resulted in ffmpeg_g in the local directory. After re-enabling core dumps (with ulimit -c unlimited), I ran it with lldb:

$ lldb ./ffmpeg_g
(lldb) target create "./ffmpeg_g"
Current executable set to './ffmpeg_g' (x86_64).
(lldb) r --help
Process 41569 launched: '/Library/WebServer/Documents/ffmpeg/ffmpeg_g' (x86_64)
Process 41569 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
    frame #0: 0x00007fff67bfb316 libdyld.dylib`stack_not_16_byte_aligned_error
libdyld.dylib`stack_not_16_byte_aligned_error:
->  0x7fff67bfb316 <+0>: movdqa %xmm0, (%rsp)
    0x7fff67bfb31b <+5>: int3   
    0x7fff67bfb31c <+6>: nop    
    0x7fff67bfb31d <+7>: nop    
Target 0: (ffmpeg_g) stopped.

…which is pretty much the same as last time. I ran the binary again to generate a core dump.

$ ./ffmpeg_g
Segmentation fault: 11 (core dumped)

I then loaded the core dump into lldb:

$ lldb -c /cores/core.41724 
(lldb) target create --core "/cores/core.41724"
Core file '/cores/core.41724' (x86_64) was loaded.

http://ffmpeg.org/bugreports.html appears to be outdated, and should probably be updated for llvm by someone who understands this stuff. But here was what I was able to figure out:

(lldb) bt
* thread #1, stop reason = signal SIGSTOP
  * frame #0: 0x00007fff67bfb316 libdyld.dylib`stack_not_16_byte_aligned_error

The disass $pc-32,$pc+32 command listed doesn't work as expected in lldb. I was able to find https://lldb.llvm.org/use/map.html where I was hoping to be able to convert the command into something functional, and this is where I ended up. Please let me know if you need me to run a different command instead.

(lldb) disassemble --pc --count 32
libdyld.dylib`stack_not_16_byte_aligned_error:
->  0x7fff67bfb316 <+0>:  movdqa %xmm0, (%rsp)
    0x7fff67bfb31b <+5>:  int3   
    0x7fff67bfb31c <+6>:  nop    
    0x7fff67bfb31d <+7>:  nop    

libdyld.dylib`_dyld_fast_stub_entry:
    0x7fff67bfb31e <+0>:  pushq  %rbp
    0x7fff67bfb31f <+1>:  movq   %rsp, %rbp
    0x7fff67bfb322 <+4>:  pushq  %r14
    0x7fff67bfb324 <+6>:  pushq  %rbx
    0x7fff67bfb325 <+7>:  movq   %rsi, %r14
    0x7fff67bfb328 <+10>: movq   %rdi, %rbx
    0x7fff67bfb32b <+13>: movq   0x2d062756(%rip), %rax    ; _dyld_fast_stub_entry(void*, long)::p
    0x7fff67bfb332 <+20>: testq  %rax, %rax
    0x7fff67bfb335 <+23>: jne    0x7fff67bfb351            ; <+51>
    0x7fff67bfb337 <+25>: leaq   0x2cfa2(%rip), %rdi       ; "__dyld_fast_stub_entry"
    0x7fff67bfb33e <+32>: leaq   0x2d062743(%rip), %rsi    ; _dyld_fast_stub_entry(void*, long)::p
    0x7fff67bfb345 <+39>: callq  0x7fff67bfa604            ; _dyld_func_lookup
    0x7fff67bfb34a <+44>: movq   0x2d062737(%rip), %rax    ; _dyld_fast_stub_entry(void*, long)::p
    0x7fff67bfb351 <+51>: movq   %rbx, %rdi
    0x7fff67bfb354 <+54>: movq   %r14, %rsi
    0x7fff67bfb357 <+57>: popq   %rbx
    0x7fff67bfb358 <+58>: popq   %r14
    0x7fff67bfb35a <+60>: popq   %rbp
    0x7fff67bfb35b <+61>: jmpq   *%rax
    0x7fff67bfb35d <+63>: nop    
    0x7fff67bfb35e <+64>: nop    
    0x7fff67bfb35f <+65>: nop    

libdyld.dylib`_dyld_get_shared_cache_uuid:
    0x7fff67bfb360 <+0>:  pushq  %rbp
    0x7fff67bfb361 <+1>:  movq   %rsp, %rbp
    0x7fff67bfb364 <+4>:  pushq  %rbx
    0x7fff67bfb365 <+5>:  pushq  %rax
    0x7fff67bfb366 <+6>:  movq   %rdi, %rbx
    0x7fff67bfb369 <+9>:  leaq   0x2d0624d0(%rip), %rax    ; gUseDyld3

Likewise, info all-registers needed to be re-mapped. So I ran the following:

(lldb) register read --all
General Purpose Registers:
       rax = 0x0000000000001428
       rbx = 0x0000000104b5ea67  "  "
       rcx = 0x00007ffeebc27920
       rdx = 0x0000000104b5ea6a  "%s version N-94712-gcc78783ce5"
       rdi = 0x0000000000000000
       rsi = 0x0000000000000020
       rbp = 0x0000000000000009
       rsp = 0x00007ffeebc27818
        r8 = 0x0000000000257db2
        r9 = 0xffffffff00000000
       r10 = 0x0000000104dceda0  avpriv_register_devices_mutex + 24
       r11 = 0x0000000104dc3180  _dyld_private
       r12 = 0x0000000000000000
       r13 = 0x0000000000000000
       r14 = 0x00007ffeebc279e0
       r15 = 0x0000000000000000
       rip = 0x00007fff67bfb316  libdyld.dylib`stack_not_16_byte_aligned_error
    rflags = 0x0000000000010202
        cs = 0x000000000000002b
        fs = 0x0000000000000000
        gs = 0x0000000000000000

Floating Point Registers:
       fcw = 0x0005
       fsw = 0x0000
       ftw = 0x83
       fop = 0x0000
        ip = 0x3054566b
        cs = 0x5749
        dp = 0x0000037f
        ds = 0x0000
     mxcsr = 0x00000000
  mxcsrmask = 0x00000000
     stmm0 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x80 0x1f}
     stmm1 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0xff}
     stmm2 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     stmm3 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     stmm4 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     stmm5 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     stmm6 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0xff}
     stmm7 = {0x97 0x7d 0x3e 0x02 0x00 0x00 0x00 0x00 0xff 0xff}
      xmm0 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm1 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm2 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm3 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm4 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm5 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm6 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm7 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm8 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm9 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     xmm10 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     xmm11 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     xmm12 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     xmm13 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     xmm14 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     xmm15 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}

Exception State Registers:
    trapno = 0x00000000
       err = 0x00000000
  faultvaddr = 0x0000000000000000

I am downloading the latest developer beta of Xcode right now. I'll try again once I get it installed to see if I learn anything new.

comment:3 by Carl Eugen Hoyos, 5 years ago

Please test with ./configure && make ffmpeg

in reply to:  1 comment:4 by Ryan Parman, 5 years ago

Replying to cehoyos:

Replying to skyzyx:

In an attempt to pare down the options to the smallest possible set in order to identify the source of the bug, I've got this:

Please test current FFmpeg git head (the only version supported here and on macos in general) with ./configure && make ffmpeg

Sorry -- my ad-blocker prevented me from seeing the comment section in Trac. Just seeing this now after posting a new comment that I couldn't see.

In both my original ticket and today's update, I've started off with git pull origin master -- as I wrote in my initial message:

[...] latest master (commit da8936969fe695a042282d5686e12227745d299a as of this writing) […]

Now that I've seen your comment, I've run make clean && ./configure && make -j$(nproc) ffmpeg. Running in lldb

$ lldb ./ffmpeg_g
(lldb) target create "./ffmpeg_g"
Current executable set to './ffmpeg_g' (x86_64).
(lldb) r --help
Process 64578 launched: '/Library/WebServer/Documents/ffmpeg/ffmpeg_g' (x86_64)
Process 64578 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
    frame #0: 0x00007fff67bfb316 libdyld.dylib`stack_not_16_byte_aligned_error
libdyld.dylib`stack_not_16_byte_aligned_error:
->  0x7fff67bfb316 <+0>: movdqa %xmm0, (%rsp)
    0x7fff67bfb31b <+5>: int3   
    0x7fff67bfb31c <+6>: nop    
    0x7fff67bfb31d <+7>: nop    
Target 0: (ffmpeg_g) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
  * frame #0: 0x00007fff67bfb316 libdyld.dylib`stack_not_16_byte_aligned_error
    frame #1: 0x00007ffeefbfe880
    frame #2: 0x00007fff67c0a2a5 libdyld.dylib`start + 1
(lldb) disassemble --pc --count 32
libdyld.dylib`stack_not_16_byte_aligned_error:
->  0x7fff67bfb316 <+0>:  movdqa %xmm0, (%rsp)
    0x7fff67bfb31b <+5>:  int3   
    0x7fff67bfb31c <+6>:  nop    
    0x7fff67bfb31d <+7>:  nop    

libdyld.dylib`_dyld_fast_stub_entry:
    0x7fff67bfb31e <+0>:  pushq  %rbp
    0x7fff67bfb31f <+1>:  movq   %rsp, %rbp
    0x7fff67bfb322 <+4>:  pushq  %r14
    0x7fff67bfb324 <+6>:  pushq  %rbx
    0x7fff67bfb325 <+7>:  movq   %rsi, %r14
    0x7fff67bfb328 <+10>: movq   %rdi, %rbx
    0x7fff67bfb32b <+13>: movq   0x2d062756(%rip), %rax    ; _dyld_fast_stub_entry(void*, long)::p
    0x7fff67bfb332 <+20>: testq  %rax, %rax
    0x7fff67bfb335 <+23>: jne    0x7fff67bfb351            ; <+51>
    0x7fff67bfb337 <+25>: leaq   0x2cfa2(%rip), %rdi       ; "__dyld_fast_stub_entry"
    0x7fff67bfb33e <+32>: leaq   0x2d062743(%rip), %rsi    ; _dyld_fast_stub_entry(void*, long)::p
    0x7fff67bfb345 <+39>: callq  0x7fff67bfa604            ; _dyld_func_lookup
    0x7fff67bfb34a <+44>: movq   0x2d062737(%rip), %rax    ; _dyld_fast_stub_entry(void*, long)::p
    0x7fff67bfb351 <+51>: movq   %rbx, %rdi
    0x7fff67bfb354 <+54>: movq   %r14, %rsi
    0x7fff67bfb357 <+57>: popq   %rbx
    0x7fff67bfb358 <+58>: popq   %r14
    0x7fff67bfb35a <+60>: popq   %rbp
    0x7fff67bfb35b <+61>: jmpq   *%rax
    0x7fff67bfb35d <+63>: nop    
    0x7fff67bfb35e <+64>: nop    
    0x7fff67bfb35f <+65>: nop    

libdyld.dylib`_dyld_get_shared_cache_uuid:
    0x7fff67bfb360 <+0>:  pushq  %rbp
    0x7fff67bfb361 <+1>:  movq   %rsp, %rbp
    0x7fff67bfb364 <+4>:  pushq  %rbx
    0x7fff67bfb365 <+5>:  pushq  %rax
    0x7fff67bfb366 <+6>:  movq   %rdi, %rbx
    0x7fff67bfb369 <+9>:  leaq   0x2d0624d0(%rip), %rax    ; gUseDyld3
(lldb) register read --all
General Purpose Registers:
       rax = 0x0000000000001428
       rbx = 0x0000000000000002
       rcx = 0x00007ffeefbfe790
       rdx = 0x000000010121787e  "%s version N-94712-gcc78783ce5"
       rdi = 0x0000000000000000
       rsi = 0x0000000000000020
       rbp = 0x00007ffeefbfe880
       rsp = 0x00007ffeefbfe688
        r8 = 0x000000000000002d
        r9 = 0xffffffff00000000
       r10 = 0x00000001013c5bc0  avpriv_register_devices_mutex + 24
       r11 = 0x00000001013ba040  _dyld_private
       r12 = 0x0000000000000000
       r13 = 0x0000000000000000
       r14 = 0x00007ffeefbfe8a0
       r15 = 0x0000000000000000
       rip = 0x00007fff67bfb316  libdyld.dylib`stack_not_16_byte_aligned_error
    rflags = 0x0000000000010202
        cs = 0x000000000000002b
        fs = 0x0000000000000000
        gs = 0x0000000000000000
       eax = 0x00001428
       ebx = 0x00000002
       ecx = 0xefbfe790
       edx = 0x0121787e
       edi = 0x00000000
       esi = 0x00000020
       ebp = 0xefbfe880
       esp = 0xefbfe688
       r8d = 0x0000002d
       r9d = 0x00000000
      r10d = 0x013c5bc0
      r11d = 0x013ba040
      r12d = 0x00000000
      r13d = 0x00000000
      r14d = 0xefbfe8a0
      r15d = 0x00000000
        ax = 0x1428
        bx = 0x0002
        cx = 0xe790
        dx = 0x787e
        di = 0x0000
        si = 0x0020
        bp = 0xe880
        sp = 0xe688
       r8w = 0x002d
       r9w = 0x0000
      r10w = 0x5bc0
      r11w = 0xa040
      r12w = 0x0000
      r13w = 0x0000
      r14w = 0xe8a0
      r15w = 0x0000
        ah = 0x14
        bh = 0x00
        ch = 0xe7
        dh = 0x78
        al = 0x28
        bl = 0x02
        cl = 0x90
        dl = 0x7e
       dil = 0x00
       sil = 0x20
       bpl = 0x80
       spl = 0x88
       r8l = 0x2d
       r9l = 0x00
      r10l = 0xc0
      r11l = 0x40
      r12l = 0x00
      r13l = 0x00
      r14l = 0xa0
      r15l = 0x00

Floating Point Registers:
     fctrl = 0x037f
     fstat = 0x0000
      ftag = 0x0000
       fop = 0x0000
     fioff = 0x00000000
     fiseg = 0x0000
     fooff = 0x00000000
     foseg = 0x0000
     mxcsr = 0x00001f80
  mxcsrmask = 0x0000ffff
     stmm0 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0xff}
     stmm1 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     stmm2 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     stmm3 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     stmm4 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     stmm5 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0xff}
     stmm6 = {0x97 0x7d 0x3e 0x02 0x00 0x00 0x00 0x00 0xff 0xff}
     stmm7 = {0x5c 0xd1 0xff 0xff 0x00 0x00 0x00 0x00 0xff 0xff}
      ymm0 = {0xff 0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm1 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm2 = {0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm3 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm4 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm5 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm6 = {0xaf 0xe5 0xcf 0x29 0xef 0x20 0x75 0x90 0x0b 0x32 0x01 0x1a 0xa6 0xfc 0xaa 0x64 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm7 = {0x07 0x16 0x2b 0x8d 0xc5 0x18 0x2d 0x3c 0xe3 0x9a 0x56 0xeb 0x59 0xad 0x78 0xdc 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm8 = {0x31 0xfc 0x12 0xb3 0x41 0xf3 0xa5 0x94 0xbc 0xe2 0x87 0xdd 0x83 0x44 0x41 0x88 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm9 = {0xcd 0x21 0xd6 0x35 0x80 0x75 0xd3 0x16 0x66 0x61 0x28 0xbf 0xd6 0x4a 0xc6 0xc7 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm10 = {0xe9 0xe0 0x66 0xb0 0xdd 0xfc 0x35 0xf1 0xef 0x83 0xfc 0x43 0x55 0xa7 0x6a 0x56 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm11 = {0x6e 0x84 0xc3 0x85 0x9b 0x1a 0x9c 0xc0 0x8d 0x1e 0x95 0x6e 0xc2 0xb7 0xe4 0x1c 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm12 = {0xcc 0x49 0x0f 0x2c 0x11 0xb5 0x3a 0xdd 0xfe 0x36 0xc6 0x9e 0xab 0x91 0xac 0xc8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm13 = {0xeb 0x15 0x2b 0xe7 0x70 0x0f 0xb7 0x27 0xfd 0x11 0x22 0x49 0x3f 0xa6 0xc6 0x55 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm14 = {0xb9 0x6d 0xbb 0xd0 0xa8 0xd8 0x81 0x0d 0x56 0xee 0x47 0x93 0xfd 0x7f 0xeb 0x5b 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm15 = {0xcf 0x13 0xeb 0x43 0x1c 0x45 0x41 0x4d 0x01 0xda 0x6f 0x52 0x4f 0x8b 0x55 0x88 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm0 = {0xff 0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0x00}
      xmm1 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm2 = {0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00}
      xmm3 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm4 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm5 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm6 = {0xaf 0xe5 0xcf 0x29 0xef 0x20 0x75 0x90 0x0b 0x32 0x01 0x1a 0xa6 0xfc 0xaa 0x64}
      xmm7 = {0x07 0x16 0x2b 0x8d 0xc5 0x18 0x2d 0x3c 0xe3 0x9a 0x56 0xeb 0x59 0xad 0x78 0xdc}
      xmm8 = {0x31 0xfc 0x12 0xb3 0x41 0xf3 0xa5 0x94 0xbc 0xe2 0x87 0xdd 0x83 0x44 0x41 0x88}
      xmm9 = {0xcd 0x21 0xd6 0x35 0x80 0x75 0xd3 0x16 0x66 0x61 0x28 0xbf 0xd6 0x4a 0xc6 0xc7}
     xmm10 = {0xe9 0xe0 0x66 0xb0 0xdd 0xfc 0x35 0xf1 0xef 0x83 0xfc 0x43 0x55 0xa7 0x6a 0x56}
     xmm11 = {0x6e 0x84 0xc3 0x85 0x9b 0x1a 0x9c 0xc0 0x8d 0x1e 0x95 0x6e 0xc2 0xb7 0xe4 0x1c}
     xmm12 = {0xcc 0x49 0x0f 0x2c 0x11 0xb5 0x3a 0xdd 0xfe 0x36 0xc6 0x9e 0xab 0x91 0xac 0xc8}
     xmm13 = {0xeb 0x15 0x2b 0xe7 0x70 0x0f 0xb7 0x27 0xfd 0x11 0x22 0x49 0x3f 0xa6 0xc6 0x55}
     xmm14 = {0xb9 0x6d 0xbb 0xd0 0xa8 0xd8 0x81 0x0d 0x56 0xee 0x47 0x93 0xfd 0x7f 0xeb 0x5b}
     xmm15 = {0xcf 0x13 0xeb 0x43 0x1c 0x45 0x41 0x4d 0x01 0xda 0x6f 0x52 0x4f 0x8b 0x55 0x88}

Exception State Registers:
    trapno = 0x0000000d
       err = 0x00000000
  faultvaddr = 0x00000001014022c0  ffmpeg_g`hide_banner

comment:5 by Ryan Parman, 5 years ago

Once again, this time with the very latest Xcode beta, Xcode CLI developer tools, and commit cc78783ce5e8837d4f4ca43eedf2d299651e65ff:

make clean && ./configure && make -j$(nproc) ffmpeg
$ lldb ./ffmpeg_g
(lldb) target create "./ffmpeg_g"
Current executable set to './ffmpeg_g' (x86_64).
(lldb) r --help
Process 74569 launched: '/Library/WebServer/Documents/ffmpeg/ffmpeg_g' (x86_64)
Process 74569 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
    frame #0: 0x00007fff67bfb316 libdyld.dylib`stack_not_16_byte_aligned_error
libdyld.dylib`stack_not_16_byte_aligned_error:
->  0x7fff67bfb316 <+0>: movdqa %xmm0, (%rsp)
    0x7fff67bfb31b <+5>: int3   
    0x7fff67bfb31c <+6>: nop    
    0x7fff67bfb31d <+7>: nop    
Target 0: (ffmpeg_g) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
  * frame #0: 0x00007fff67bfb316 libdyld.dylib`stack_not_16_byte_aligned_error
    frame #1: 0x00007ffeefbfe880
    frame #2: 0x00007fff67c0a2a5 libdyld.dylib`start + 1
(lldb) disassemble --pc --count 32
libdyld.dylib`stack_not_16_byte_aligned_error:
->  0x7fff67bfb316 <+0>:  movdqa %xmm0, (%rsp)
    0x7fff67bfb31b <+5>:  int3   
    0x7fff67bfb31c <+6>:  nop    
    0x7fff67bfb31d <+7>:  nop    

libdyld.dylib`_dyld_fast_stub_entry:
    0x7fff67bfb31e <+0>:  pushq  %rbp
    0x7fff67bfb31f <+1>:  movq   %rsp, %rbp
    0x7fff67bfb322 <+4>:  pushq  %r14
    0x7fff67bfb324 <+6>:  pushq  %rbx
    0x7fff67bfb325 <+7>:  movq   %rsi, %r14
    0x7fff67bfb328 <+10>: movq   %rdi, %rbx
    0x7fff67bfb32b <+13>: movq   0x2d062756(%rip), %rax    ; _dyld_fast_stub_entry(void*, long)::p
    0x7fff67bfb332 <+20>: testq  %rax, %rax
    0x7fff67bfb335 <+23>: jne    0x7fff67bfb351            ; <+51>
    0x7fff67bfb337 <+25>: leaq   0x2cfa2(%rip), %rdi       ; "__dyld_fast_stub_entry"
    0x7fff67bfb33e <+32>: leaq   0x2d062743(%rip), %rsi    ; _dyld_fast_stub_entry(void*, long)::p
    0x7fff67bfb345 <+39>: callq  0x7fff67bfa604            ; _dyld_func_lookup
    0x7fff67bfb34a <+44>: movq   0x2d062737(%rip), %rax    ; _dyld_fast_stub_entry(void*, long)::p
    0x7fff67bfb351 <+51>: movq   %rbx, %rdi
    0x7fff67bfb354 <+54>: movq   %r14, %rsi
    0x7fff67bfb357 <+57>: popq   %rbx
    0x7fff67bfb358 <+58>: popq   %r14
    0x7fff67bfb35a <+60>: popq   %rbp
    0x7fff67bfb35b <+61>: jmpq   *%rax
    0x7fff67bfb35d <+63>: nop    
    0x7fff67bfb35e <+64>: nop    
    0x7fff67bfb35f <+65>: nop    

libdyld.dylib`_dyld_get_shared_cache_uuid:
    0x7fff67bfb360 <+0>:  pushq  %rbp
    0x7fff67bfb361 <+1>:  movq   %rsp, %rbp
    0x7fff67bfb364 <+4>:  pushq  %rbx
    0x7fff67bfb365 <+5>:  pushq  %rax
    0x7fff67bfb366 <+6>:  movq   %rdi, %rbx
    0x7fff67bfb369 <+9>:  leaq   0x2d0624d0(%rip), %rax    ; gUseDyld3
(lldb) register read --all
General Purpose Registers:
       rax = 0x0000000000001428
       rbx = 0x0000000000000002
       rcx = 0x00007ffeefbfe790
       rdx = 0x000000010121787e  "%s version N-94712-gcc78783ce5"
       rdi = 0x0000000000000000
       rsi = 0x0000000000000020
       rbp = 0x00007ffeefbfe880
       rsp = 0x00007ffeefbfe688
        r8 = 0x000000000000002d
        r9 = 0xffffffff00000000
       r10 = 0x00000001013c5bc0  avpriv_register_devices_mutex + 24
       r11 = 0x00000001013ba040  _dyld_private
       r12 = 0x0000000000000000
       r13 = 0x0000000000000000
       r14 = 0x00007ffeefbfe8a0
       r15 = 0x0000000000000000
       rip = 0x00007fff67bfb316  libdyld.dylib`stack_not_16_byte_aligned_error
    rflags = 0x0000000000010202
        cs = 0x000000000000002b
        fs = 0x0000000000000000
        gs = 0x0000000000000000
       eax = 0x00001428
       ebx = 0x00000002
       ecx = 0xefbfe790
       edx = 0x0121787e
       edi = 0x00000000
       esi = 0x00000020
       ebp = 0xefbfe880
       esp = 0xefbfe688
       r8d = 0x0000002d
       r9d = 0x00000000
      r10d = 0x013c5bc0
      r11d = 0x013ba040
      r12d = 0x00000000
      r13d = 0x00000000
      r14d = 0xefbfe8a0
      r15d = 0x00000000
        ax = 0x1428
        bx = 0x0002
        cx = 0xe790
        dx = 0x787e
        di = 0x0000
        si = 0x0020
        bp = 0xe880
        sp = 0xe688
       r8w = 0x002d
       r9w = 0x0000
      r10w = 0x5bc0
      r11w = 0xa040
      r12w = 0x0000
      r13w = 0x0000
      r14w = 0xe8a0
      r15w = 0x0000
        ah = 0x14
        bh = 0x00
        ch = 0xe7
        dh = 0x78
        al = 0x28
        bl = 0x02
        cl = 0x90
        dl = 0x7e
       dil = 0x00
       sil = 0x20
       bpl = 0x80
       spl = 0x88
       r8l = 0x2d
       r9l = 0x00
      r10l = 0xc0
      r11l = 0x40
      r12l = 0x00
      r13l = 0x00
      r14l = 0xa0
      r15l = 0x00

Floating Point Registers:
     fctrl = 0x037f
     fstat = 0x0000
      ftag = 0x0000
       fop = 0x0000
     fioff = 0x00000000
     fiseg = 0x0000
     fooff = 0x00000000
     foseg = 0x0000
     mxcsr = 0x00001f80
  mxcsrmask = 0x0000ffff
     stmm0 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0xff}
     stmm1 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     stmm2 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     stmm3 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     stmm4 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     stmm5 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0xff}
     stmm6 = {0x97 0x7d 0x3e 0x02 0x00 0x00 0x00 0x00 0xff 0xff}
     stmm7 = {0x5c 0xd1 0xff 0xff 0x00 0x00 0x00 0x00 0xff 0xff}
      ymm0 = {0xff 0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm1 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm2 = {0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm3 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm4 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm5 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm6 = {0x7a 0xcc 0xa0 0xe4 0x85 0x41 0xd5 0x91 0x3e 0x65 0xc9 0xe6 0xfe 0x0c 0xaf 0x0e 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm7 = {0xe1 0x87 0x2c 0xaf 0xc6 0x41 0xf0 0x2e 0x6b 0x20 0x25 0x55 0xc2 0x5b 0xcb 0xf5 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm8 = {0x6c 0xe5 0x8b 0x23 0x12 0x74 0x82 0x3c 0x05 0xf6 0xa8 0x3c 0x29 0x16 0x23 0x68 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm9 = {0xa9 0xa8 0xd8 0x29 0x96 0xb9 0x34 0x16 0x21 0x6b 0xbc 0x58 0x6b 0x37 0x35 0xaf 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm10 = {0x77 0xd5 0x64 0xbf 0x77 0x27 0x99 0xdf 0x2b 0x42 0xe6 0xcb 0x73 0x8b 0xc1 0x37 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm11 = {0x02 0x33 0x06 0x4a 0xf9 0x39 0x6a 0xa1 0x69 0x13 0x23 0x1f 0x3b 0x62 0xa1 0x54 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm12 = {0x95 0x7f 0x56 0x9f 0xe2 0x58 0xcf 0x40 0xc9 0x1a 0x29 0x8b 0xba 0x91 0xe8 0xbc 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm13 = {0x87 0xa8 0x63 0xbe 0x7e 0x91 0x09 0x1f 0x17 0x82 0x2a 0x00 0x2c 0xe0 0x8b 0x54 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm14 = {0xe4 0x9e 0x6b 0xbf 0x06 0xc6 0xa4 0xff 0xcf 0xdc 0x8d 0x74 0x75 0x4d 0x65 0xc8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm15 = {0xbd 0x4b 0x70 0x4c 0x04 0x38 0x1b 0x65 0x83 0x1c 0x6c 0x25 0x4f 0x7f 0xdd 0x95 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm0 = {0xff 0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0x00}
      xmm1 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm2 = {0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00}
      xmm3 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm4 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm5 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm6 = {0x7a 0xcc 0xa0 0xe4 0x85 0x41 0xd5 0x91 0x3e 0x65 0xc9 0xe6 0xfe 0x0c 0xaf 0x0e}
      xmm7 = {0xe1 0x87 0x2c 0xaf 0xc6 0x41 0xf0 0x2e 0x6b 0x20 0x25 0x55 0xc2 0x5b 0xcb 0xf5}
      xmm8 = {0x6c 0xe5 0x8b 0x23 0x12 0x74 0x82 0x3c 0x05 0xf6 0xa8 0x3c 0x29 0x16 0x23 0x68}
      xmm9 = {0xa9 0xa8 0xd8 0x29 0x96 0xb9 0x34 0x16 0x21 0x6b 0xbc 0x58 0x6b 0x37 0x35 0xaf}
     xmm10 = {0x77 0xd5 0x64 0xbf 0x77 0x27 0x99 0xdf 0x2b 0x42 0xe6 0xcb 0x73 0x8b 0xc1 0x37}
     xmm11 = {0x02 0x33 0x06 0x4a 0xf9 0x39 0x6a 0xa1 0x69 0x13 0x23 0x1f 0x3b 0x62 0xa1 0x54}
     xmm12 = {0x95 0x7f 0x56 0x9f 0xe2 0x58 0xcf 0x40 0xc9 0x1a 0x29 0x8b 0xba 0x91 0xe8 0xbc}
     xmm13 = {0x87 0xa8 0x63 0xbe 0x7e 0x91 0x09 0x1f 0x17 0x82 0x2a 0x00 0x2c 0xe0 0x8b 0x54}
     xmm14 = {0xe4 0x9e 0x6b 0xbf 0x06 0xc6 0xa4 0xff 0xcf 0xdc 0x8d 0x74 0x75 0x4d 0x65 0xc8}
     xmm15 = {0xbd 0x4b 0x70 0x4c 0x04 0x38 0x1b 0x65 0x83 0x1c 0x6c 0x25 0x4f 0x7f 0xdd 0x95}

Exception State Registers:
    trapno = 0x0000000d
       err = 0x00000000
  faultvaddr = 0x00000001014022c0  ffmpeg_g`hide_banner

comment:6 by Carl Eugen Hoyos, 5 years ago

Version: unspecifiedgit-master

Please test with --disable-asm - since the backtrace and the disassembly contain no information related to FFmpeg, you don't have to repeatedly post them.

comment:7 by Ryan Parman, 5 years ago

[...] since the backtrace and the disassembly contain no information related to FFmpeg, you don't have to repeatedly post them.

That's fine. Just trying to be a good citizen by following the bug reporting instructions as best as I can. Compiling again with:

make clean && ./configure --disable-asm && make -j$(nproc) ffmpeg

Taking your words literally, removing thebt and disassemble --pc --count 32 from my response, but keeping register read --all. (I'm not a C developer, so if you need me to do something different, please be specific and I'm happy to provide information.)

$ lldb ./ffmpeg_g
(lldb) target create "./ffmpeg_g"
Current executable set to './ffmpeg_g' (x86_64).
(lldb) r --help
Process 93490 launched: '/Library/WebServer/Documents/ffmpeg/ffmpeg_g' (x86_64)
Process 93490 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
    frame #0: 0x00007fff67bfb316 libdyld.dylib`stack_not_16_byte_aligned_error
libdyld.dylib`stack_not_16_byte_aligned_error:
->  0x7fff67bfb316 <+0>: movdqa %xmm0, (%rsp)
    0x7fff67bfb31b <+5>: int3   
    0x7fff67bfb31c <+6>: nop    
    0x7fff67bfb31d <+7>: nop    
Target 0: (ffmpeg_g) stopped.
(lldb) register read --all
General Purpose Registers:
       rax = 0x0000000000001428
       rbx = 0x0000000000000002
       rcx = 0x00007ffeefbfe790
       rdx = 0x0000000101043a1e  "%s version N-94712-gcc78783ce5"
       rdi = 0x0000000000000000
       rsi = 0x0000000000000020
       rbp = 0x00007ffeefbfe880
       rsp = 0x00007ffeefbfe688
        r8 = 0x000000000000002d
        r9 = 0xffffffff00000000
       r10 = 0x00000001011e7ba0  avpriv_register_devices_mutex + 24
       r11 = 0x00000001011dc020  _dyld_private
       r12 = 0x0000000000000000
       r13 = 0x0000000000000000
       r14 = 0x00007ffeefbfe8a0
       r15 = 0x0000000000000000
       rip = 0x00007fff67bfb316  libdyld.dylib`stack_not_16_byte_aligned_error
    rflags = 0x0000000000010202
        cs = 0x000000000000002b
        fs = 0x0000000000000000
        gs = 0x0000000000000000
       eax = 0x00001428
       ebx = 0x00000002
       ecx = 0xefbfe790
       edx = 0x01043a1e
       edi = 0x00000000
       esi = 0x00000020
       ebp = 0xefbfe880
       esp = 0xefbfe688
       r8d = 0x0000002d
       r9d = 0x00000000
      r10d = 0x011e7ba0
      r11d = 0x011dc020
      r12d = 0x00000000
      r13d = 0x00000000
      r14d = 0xefbfe8a0
      r15d = 0x00000000
        ax = 0x1428
        bx = 0x0002
        cx = 0xe790
        dx = 0x3a1e
        di = 0x0000
        si = 0x0020
        bp = 0xe880
        sp = 0xe688
       r8w = 0x002d
       r9w = 0x0000
      r10w = 0x7ba0
      r11w = 0xc020
      r12w = 0x0000
      r13w = 0x0000
      r14w = 0xe8a0
      r15w = 0x0000
        ah = 0x14
        bh = 0x00
        ch = 0xe7
        dh = 0x3a
        al = 0x28
        bl = 0x02
        cl = 0x90
        dl = 0x1e
       dil = 0x00
       sil = 0x20
       bpl = 0x80
       spl = 0x88
       r8l = 0x2d
       r9l = 0x00
      r10l = 0xa0
      r11l = 0x20
      r12l = 0x00
      r13l = 0x00
      r14l = 0xa0
      r15l = 0x00

Floating Point Registers:
     fctrl = 0x037f
     fstat = 0x0000
      ftag = 0x0000
       fop = 0x0000
     fioff = 0x00000000
     fiseg = 0x0000
     fooff = 0x00000000
     foseg = 0x0000
     mxcsr = 0x00001f80
  mxcsrmask = 0x0000ffff
     stmm0 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0xff}
     stmm1 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     stmm2 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     stmm3 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     stmm4 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     stmm5 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0xff}
     stmm6 = {0x97 0x7d 0x3e 0x02 0x00 0x00 0x00 0x00 0xff 0xff}
     stmm7 = {0x5c 0xd1 0xff 0xff 0x00 0x00 0x00 0x00 0xff 0xff}
      ymm0 = {0xff 0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm1 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm2 = {0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm3 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm4 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm5 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm6 = {0x80 0xb0 0xcd 0x67 0x50 0xc2 0xcc 0x75 0xba 0x65 0xc5 0x95 0xd3 0x4f 0x8c 0xde 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm7 = {0x7d 0xd3 0x00 0xe4 0x9b 0x49 0x0e 0x35 0x0f 0x3a 0x26 0xcf 0x7c 0x11 0x7c 0xbd 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm8 = {0x60 0x7e 0xad 0xff 0x9d 0xda 0xd3 0x10 0xba 0x98 0x2b 0x20 0xbd 0xbd 0x01 0x9c 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm9 = {0x46 0x3f 0xff 0xed 0xd6 0x57 0x74 0x11 0x50 0x12 0x21 0x72 0xbb 0x68 0x00 0x9d 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm10 = {0xc2 0x3a 0x00 0xd7 0x8e 0x2a 0x6a 0x31 0x27 0x42 0x2d 0x15 0x30 0x07 0x25 0x47 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm11 = {0xd5 0xdc 0xa0 0x10 0x5c 0x76 0xae 0x31 0xda 0xe6 0x86 0xdf 0x20 0x67 0xd2 0x8c 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm12 = {0x75 0xbf 0xb5 0xb3 0xfb 0x95 0xdf 0x82 0xdc 0xd7 0xf2 0x97 0xec 0xd0 0xd7 0xd0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm13 = {0xa1 0xd2 0xd0 0xde 0xfd 0xa4 0x7e 0xef 0x27 0x42 0xf8 0x30 0x07 0x25 0x2a 0xbc 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm14 = {0xb0 0x80 0x50 0xd6 0x4b 0x15 0x8f 0x54 0x97 0xc2 0x7d 0xc3 0x7b 0x12 0xaa 0x13 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm15 = {0xfa 0x90 0x66 0x96 0x3d 0x81 0x22 0x9c 0xf0 0x6d 0x82 0x6a 0xb8 0xaf 0x19 0xfe 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm0 = {0xff 0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0x00}
      xmm1 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm2 = {0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00}
      xmm3 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm4 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm5 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm6 = {0x80 0xb0 0xcd 0x67 0x50 0xc2 0xcc 0x75 0xba 0x65 0xc5 0x95 0xd3 0x4f 0x8c 0xde}
      xmm7 = {0x7d 0xd3 0x00 0xe4 0x9b 0x49 0x0e 0x35 0x0f 0x3a 0x26 0xcf 0x7c 0x11 0x7c 0xbd}
      xmm8 = {0x60 0x7e 0xad 0xff 0x9d 0xda 0xd3 0x10 0xba 0x98 0x2b 0x20 0xbd 0xbd 0x01 0x9c}
      xmm9 = {0x46 0x3f 0xff 0xed 0xd6 0x57 0x74 0x11 0x50 0x12 0x21 0x72 0xbb 0x68 0x00 0x9d}
     xmm10 = {0xc2 0x3a 0x00 0xd7 0x8e 0x2a 0x6a 0x31 0x27 0x42 0x2d 0x15 0x30 0x07 0x25 0x47}
     xmm11 = {0xd5 0xdc 0xa0 0x10 0x5c 0x76 0xae 0x31 0xda 0xe6 0x86 0xdf 0x20 0x67 0xd2 0x8c}
     xmm12 = {0x75 0xbf 0xb5 0xb3 0xfb 0x95 0xdf 0x82 0xdc 0xd7 0xf2 0x97 0xec 0xd0 0xd7 0xd0}
     xmm13 = {0xa1 0xd2 0xd0 0xde 0xfd 0xa4 0x7e 0xef 0x27 0x42 0xf8 0x30 0x07 0x25 0x2a 0xbc}
     xmm14 = {0xb0 0x80 0x50 0xd6 0x4b 0x15 0x8f 0x54 0x97 0xc2 0x7d 0xc3 0x7b 0x12 0xaa 0x13}
     xmm15 = {0xfa 0x90 0x66 0x96 0x3d 0x81 0x22 0x9c 0xf0 0x6d 0x82 0x6a 0xb8 0xaf 0x19 0xfe}

Exception State Registers:
    trapno = 0x0000000d
       err = 0x00000000
  faultvaddr = 0x00000001012242a0  ffmpeg_g`hide_banner

comment:8 by Carl Eugen Hoyos, 5 years ago

Does the following configure line change anything?
$ configure --disable-everything --disable-asm --disable-vdpau --disable-vaapi --disable-zlib --disable-pthreads --disable-bzlib --disable-ffnvcodec --disable-audiotoolbox --disable-videotoolbox

comment:9 by Ryan Parman, 5 years ago

Looks a little bit different...

make clean && ./configure --disable-everything --disable-asm --disable-vdpau --disable-vaapi --disable-zlib --disable-pthreads --disable-bzlib --disable-ffnvcodec --disable-audiotoolbox --disable-videotoolbox && make -j$(nproc) ffmpeg
$ lldb ./ffmpeg_g
(lldb) target create "./ffmpeg_g"
Current executable set to './ffmpeg_g' (x86_64).
(lldb) r --help
Process 98015 launched: '/Library/WebServer/Documents/ffmpeg/ffmpeg_g' (x86_64)
Process 98015 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
    frame #0: 0x00007fff67bfb316 libdyld.dylib`stack_not_16_byte_aligned_error
libdyld.dylib`stack_not_16_byte_aligned_error:
->  0x7fff67bfb316 <+0>: movdqa %xmm0, (%rsp)
    0x7fff67bfb31b <+5>: int3   
    0x7fff67bfb31c <+6>: nop    
    0x7fff67bfb31d <+7>: nop    
Target 0: (ffmpeg_g) stopped.
(lldb) register read --all
General Purpose Registers:
       rax = 0x0000000000001430
       rbx = 0x0000000000000002
       rcx = 0x00007ffeefbfe790
       rdx = 0x000000010013589a  "%s version N-94712-gcc78783ce5"
       rdi = 0x0000000000000000
       rsi = 0x0000000000000020
       rbp = 0x00007ffeefbfe880
       rsp = 0x00007ffeefbfe698
        r8 = 0x000000000000002d
        r9 = 0x0000000000000008
       r10 = 0x00007ffeefbfeb90
       r11 = 0x0000000100176370  _dyld_private
       r12 = 0x0000000000000000
       r13 = 0x0000000000000000
       r14 = 0x00007ffeefbfe8a8
       r15 = 0x0000000000000000
       rip = 0x00007fff67bfb316  libdyld.dylib`stack_not_16_byte_aligned_error
    rflags = 0x0000000000010202
        cs = 0x000000000000002b
        fs = 0x0000000000000000
        gs = 0x0000000000000000
       eax = 0x00001430
       ebx = 0x00000002
       ecx = 0xefbfe790
       edx = 0x0013589a
       edi = 0x00000000
       esi = 0x00000020
       ebp = 0xefbfe880
       esp = 0xefbfe698
       r8d = 0x0000002d
       r9d = 0x00000008
      r10d = 0xefbfeb90
      r11d = 0x00176370
      r12d = 0x00000000
      r13d = 0x00000000
      r14d = 0xefbfe8a8
      r15d = 0x00000000
        ax = 0x1430
        bx = 0x0002
        cx = 0xe790
        dx = 0x589a
        di = 0x0000
        si = 0x0020
        bp = 0xe880
        sp = 0xe698
       r8w = 0x002d
       r9w = 0x0008
      r10w = 0xeb90
      r11w = 0x6370
      r12w = 0x0000
      r13w = 0x0000
      r14w = 0xe8a8
      r15w = 0x0000
        ah = 0x14
        bh = 0x00
        ch = 0xe7
        dh = 0x58
        al = 0x30
        bl = 0x02
        cl = 0x90
        dl = 0x9a
       dil = 0x00
       sil = 0x20
       bpl = 0x80
       spl = 0x98
       r8l = 0x2d
       r9l = 0x08
      r10l = 0x90
      r11l = 0x70
      r12l = 0x00
      r13l = 0x00
      r14l = 0xa8
      r15l = 0x00

Floating Point Registers:
     fctrl = 0x037f
     fstat = 0x0000
      ftag = 0x0000
       fop = 0x0000
     fioff = 0x00000000
     fiseg = 0x0000
     fooff = 0x00000000
     foseg = 0x0000
     mxcsr = 0x00001f80
  mxcsrmask = 0x0000ffff
     stmm0 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0xff}
     stmm1 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     stmm2 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     stmm3 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     stmm4 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     stmm5 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0xff}
     stmm6 = {0x97 0x7d 0x3e 0x02 0x00 0x00 0x00 0x00 0xff 0xff}
     stmm7 = {0x5c 0xd1 0xff 0xff 0x00 0x00 0x00 0x00 0xff 0xff}
      ymm0 = {0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm1 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm2 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm3 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm4 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm5 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm6 = {0xb9 0x49 0x61 0xa6 0xd6 0xb8 0x96 0x76 0x8b 0x77 0x45 0x04 0x91 0xdf 0xd9 0xf5 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm7 = {0xc1 0x0e 0x98 0x49 0x2e 0xde 0x58 0xf2 0x3b 0x4c 0xca 0xb2 0xa2 0x00 0x88 0x66 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm8 = {0xbc 0x7b 0x48 0x47 0xa6 0xbe 0xed 0x4e 0xba 0xe6 0x11 0x7e 0x77 0xc7 0x6c 0x38 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      ymm9 = {0x1d 0xe6 0x2a 0x4c 0xa4 0xe6 0xab 0x6d 0x21 0xae 0x8a 0xa3 0x05 0x67 0x3a 0x2c 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm10 = {0x05 0x2d 0x39 0xdf 0x1b 0xb0 0x47 0x84 0x6f 0xc3 0x48 0x36 0x3b 0x84 0x89 0x70 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm11 = {0x3d 0xd1 0x93 0x8b 0x73 0x79 0x09 0x10 0x06 0x9d 0x59 0x39 0xd1 0x79 0x81 0x76 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm12 = {0x3b 0x9b 0x35 0xe7 0x20 0x2b 0x72 0x63 0x4f 0xe8 0x3a 0x55 0x74 0x6c 0xb3 0x25 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm13 = {0x69 0xbc 0xac 0x19 0x1a 0xc5 0xa5 0x09 0x1c 0x58 0xfc 0x30 0xcd 0x21 0x7d 0x46 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm14 = {0x86 0x66 0xca 0xbd 0xa6 0x4d 0xb8 0xde 0xe9 0xa5 0x82 0x8b 0x9d 0xc9 0x31 0xae 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
     ymm15 = {0xba 0x55 0xd1 0x92 0xc1 0x98 0x8b 0x3c 0x13 0xa1 0xec 0x03 0x27 0xdd 0x73 0xba 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm0 = {0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00}
      xmm1 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm2 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x00}
      xmm3 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm4 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm5 = {0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}
      xmm6 = {0xb9 0x49 0x61 0xa6 0xd6 0xb8 0x96 0x76 0x8b 0x77 0x45 0x04 0x91 0xdf 0xd9 0xf5}
      xmm7 = {0xc1 0x0e 0x98 0x49 0x2e 0xde 0x58 0xf2 0x3b 0x4c 0xca 0xb2 0xa2 0x00 0x88 0x66}
      xmm8 = {0xbc 0x7b 0x48 0x47 0xa6 0xbe 0xed 0x4e 0xba 0xe6 0x11 0x7e 0x77 0xc7 0x6c 0x38}
      xmm9 = {0x1d 0xe6 0x2a 0x4c 0xa4 0xe6 0xab 0x6d 0x21 0xae 0x8a 0xa3 0x05 0x67 0x3a 0x2c}
     xmm10 = {0x05 0x2d 0x39 0xdf 0x1b 0xb0 0x47 0x84 0x6f 0xc3 0x48 0x36 0x3b 0x84 0x89 0x70}
     xmm11 = {0x3d 0xd1 0x93 0x8b 0x73 0x79 0x09 0x10 0x06 0x9d 0x59 0x39 0xd1 0x79 0x81 0x76}
     xmm12 = {0x3b 0x9b 0x35 0xe7 0x20 0x2b 0x72 0x63 0x4f 0xe8 0x3a 0x55 0x74 0x6c 0xb3 0x25}
     xmm13 = {0x69 0xbc 0xac 0x19 0x1a 0xc5 0xa5 0x09 0x1c 0x58 0xfc 0x30 0xcd 0x21 0x7d 0x46}
     xmm14 = {0x86 0x66 0xca 0xbd 0xa6 0x4d 0xb8 0xde 0xe9 0xa5 0x82 0x8b 0x9d 0xc9 0x31 0xae}
     xmm15 = {0xba 0x55 0xd1 0x92 0xc1 0x98 0x8b 0x3c 0x13 0xa1 0xec 0x03 0x27 0xdd 0x73 0xba}

Exception State Registers:
    trapno = 0x0000000d
       err = 0x00000000
  faultvaddr = 0x00000001000116f0  ffmpeg_g`show_banner at cmdutils.c:1181

comment:10 by Carl Eugen Hoyos, 5 years ago

I don't know if the following works on your system but it is my last suggestion to delimit the cause of the issue.

$ configure --disable-everything --disable-asm --disable-vdpau --disable-vaapi --disable-zlib --disable-pthreads --disable-bzlib --disable-ffnvcodec --disable-audiotoolbox --disable-videotoolbox --extra-ldflags=-static

comment:11 by Ryan Parman, 5 years ago

Trying again…

make clean && \
./configure --disable-everything --disable-asm --disable-vdpau --disable-vaapi --disable-zlib --disable-pthreads --disable-bzlib --disable-ffnvcodec --disable-audiotoolbox --disable-videotoolbox --extra-ldflags=-static && \
make -j$(nproc) ffmpeg

Output:

gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.

comment:12 by Zachary Waldowski, 5 years ago

It seems the 10.15 toolchain turns on "-fstack-check" by default for Clang, like some Linux distributions do. You can see that here:

Stack checking is on by default on all platforms to prevent memory corruptions. (25859140)

Some discussion here traces it back to AVX, although turning off AVX ("--disable-avx") didn't seem to help building FFMPEG. (Nor, as skyzyx saw above, did turning off ASM entirely.)

Accordingly, adding "-fno-stack-check" to "CFLAGS" - f.ex., by '--extra-cflags="-fno-stack-check"' when configuring works around the problem and builds a functioning FFMPEG.

Don't quite know what that means for us. I imagine having stack checking on is desirable, but there's at least a workaround while the source is further investigated.

comment:13 by Ryan Parman, 5 years ago

@zwaldowski: This allowed me to build the latest Git master on macOS 10.15 "Catalina" in a working state. Thank you.

comment:14 by Illya, 4 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.