paulrockwell@Upstairs src % lldb ./apl
(lldb) target create "./apl"
Current executable set to '/Users/paulrockwell/Documents/Build/apl/trunk/src/apl' (arm64).
(lldb) run --v
Process 46819 launched: '/Users/paulrockwell/Documents/Build/apl/trunk/src/apl' (arm64)
?Process 46819 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x68)
       frame #0: 0x000000018f56d5b4 libsystem_c.dylib`flockfile + 28
libsystem_c.dylib`flockfile:
->  0x18f56d5b4 <+28>: ldr    x8, [x19, #0x68]
    0x18f56d5b8 <+32>: add    x0, x8, #0x8
    0x18f56d5bc <+36>: bl     0x196f278e0
    0x18f56d5c0 <+40>: bl     0x196f24940
Target 0: (apl) stopped.
(lldb) bt all
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x68)
   * frame #0: 0x000000018f56d5b4 libsystem_c.dylib`flockfile + 28
  ﹍ frame #1: 0x000000018f57e590 libsystem_c.dylib`fwrite + 164
  ﹉ frame #5: 0x00000001000046c0 apl`std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::operator<<[abi:nqe220106]<std::__1::char_traits<char>>(__os=<unavailable>, __str=<unavailable>) at basic_ostream.h:438:10 [opt] [artificial]
     frame #6: 0x00000001001e82ec apl`UserPreferences::parse_args_2(this=0x00000001002d81b0, logit=<unavailable>) at UserPreferences.cc:1002:15 [opt]
     frame #7: 0x00000001001e3b28 apl`UserPreferences::collect_preferences(this=0x00000001002d81b0, args=size=2) at UserPreferences.cc:157:3 [opt]
     frame #8: 0x0000000100000968 apl`init_apl(args=size=2) at main.cc:432:31 [opt]
     frame #9: 0x0000000100002038 apl`main(argc=<unavailable>, argv=<unavailable>) at main.cc:730:24 [opt]
     frame #10: 0x000000018f2ffe80 dyld`start + 6688
(lldb) quit
Quitting LLDB will kill one or more processes. Do you really want to proceed: [Y/n] y