Wrong code generated on macOS 10.15

Issue #514 new
Former user created an issue

Compiling x265 3.1.2 on macOS 10.15 (Catalina) with Xcode 11 leads to segfault at runtime, with misaligned stack:

(lldb) settings set -- target.run-args  "--input-res" "80x80" "--fps" "1" "/private/tmp/x265-test-20191001-32611-hkqo30/raw.yuv" "/private/tmp/x265-test-20191001-32611-hkqo30/x265.265"
(lldb) r
Process 32849 launched: '/usr/local/Cellar/x265/3.2/bin/x265' (x86_64)
Process 32849 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
    frame #0: 0x00007fff6a103476 libdyld.dylib`stack_not_16_byte_aligned_error
libdyld.dylib`stack_not_16_byte_aligned_error:
->  0x7fff6a103476 <+0>: movdqa %xmm0, (%rsp)
    0x7fff6a10347b <+5>: int3   
    0x7fff6a10347c <+6>: nop    
    0x7fff6a10347d <+7>: nop    
Target 0: (x265) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
  * frame #0: 0x00007fff6a103476 libdyld.dylib`stack_not_16_byte_aligned_error
    frame #1: 0x00007ffeefbff9e0
    frame #2: 0x00007fff6a112405 libdyld.dylib`start + 1
    frame #3: 0x00007fff6a112405 libdyld.dylib`start + 1

Comments (0)

  1. Log in to comment