[FFmpeg-trac] #8073(undetermined:new): Segfault on macOS 10.15 "Catalina": stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT); libdyld.dylib`stack_not_16_byte_aligned_error

FFmpeg trac at avcodec.org
Sun Sep 1 22:39:40 EEST 2019


#8073: Segfault on macOS 10.15 "Catalina": stop reason = EXC_BAD_ACCESS
(code=EXC_I386_GPFLT); libdyld.dylib`stack_not_16_byte_aligned_error
-------------------------------------+-------------------------------------
             Reporter:  skyzyx       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:  osx          |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by skyzyx):

 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
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8073#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list