[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 23:27:49 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:  git-master   |               Resolution:
             Keywords:  osx          |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by skyzyx):

 > [...] 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 the`bt` 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
 }}}

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


More information about the FFmpeg-trac mailing list