Lisp HUG Maillist Archive

Application won't run on MacOS when Sandboxed

Hello,

I’ve managed to get my app code signed, sandboxed and packaged into a MacOS .pkg installer after some research.  Now, after I install my app with the installer, my app doesn’t run properly, or at least the main window doesn’t appear when I run the application and it hangs, requiring a forced quit.  I have the basic sandboxing enabled using the example entitlements file on the lispworks website:

 <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
       <key>com.apple.security.app-sandbox</key>
       <true/>
       <key>com.apple.security.files.user-selected.read-write</key>
       <true/>
</dict>
</plist>

Something relevant from the stack trace might be:

  37  ??? [0x4000050712]
  37  start_sockserv + 135 (lispworks-7-0-0-amd64-darwin + 25491) [0x100006393]
  37  __strcpy_chk + 83 (libsystem_c.dylib + 549189) [0x7fffaf7ce145]
  37  __chk_fail_overflow + 16 (libsystem_c.dylib + 548600) [0x7fffaf7cdef8]
  37  __chk_fail + 48 (libsystem_c.dylib + 548648) [0x7fffaf7cdf28]
  36  abort_report_np + 181 (libsystem_c.dylib + 390546) [0x7fffaf7a7592]
  36  abort + 129 (libsystem_c.dylib + 390176) [0x7fffaf7a7420]
 
I can provide the full crash report if needed.  

I’m also assuming sandboxing is the culprit, but I could be wrong.  Any ideas on what might be going wrong with my packaged up Mac App that’s keeping it from running properly?

—
Burton Samograd

Re: Application won't run on MacOS when Sandboxed

Solved. Was a silly unrelated problem not due to sandboxing. 

Burton


Sent with Unibox

On Feb 5, 2017, at 8:18 PM, BusFactor1 <busfactor1@gmail.com> wrote:

Hello,

I’ve managed to get my app code signed, sandboxed and packaged into a MacOS .pkg installer after some research.  Now, after I install my app with the installer, my app doesn’t run properly, or at least the main window doesn’t appear when I run the application and it hangs, requiring a forced quit.  I have the basic sandboxing enabled using the example entitlements file on the lispworks website:

 <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
       <key>com.apple.security.app-sandbox</key>
       <true/>
       <key>com.apple.security.files.user-selected.read-write</key>
       <true/>
</dict>
</plist>

Something relevant from the stack trace might be:

  37  ??? [0x4000050712]
  37  start_sockserv + 135 (lispworks-7-0-0-amd64-darwin + 25491) [0x100006393]
  37  __strcpy_chk + 83 (libsystem_c.dylib + 549189) [0x7fffaf7ce145]
  37  __chk_fail_overflow + 16 (libsystem_c.dylib + 548600) [0x7fffaf7cdef8]
  37  __chk_fail + 48 (libsystem_c.dylib + 548648) [0x7fffaf7cdf28]
  36  abort_report_np + 181 (libsystem_c.dylib + 390546) [0x7fffaf7a7592]
  36  abort + 129 (libsystem_c.dylib + 390176) [0x7fffaf7a7420]
 
I can provide the full crash report if needed.  

I’m also assuming sandboxing is the culprit, but I could be wrong.  Any ideas on what might be going wrong with my packaged up Mac App that’s keeping it from running properly?

—
Burton Samograd
Updated at: 2020-12-10 08:31 UTC