Bug 580235 - Restarting a RCP App from within a macOS sandbox container
Summary: Restarting a RCP App from within a macOS sandbox container
Status: NEW
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 4.22   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-21 12:58 EDT by Ralph Bosson CLA
Modified: 2022-06-21 12:58 EDT (History)
0 users

See Also:


Attachments
Crash report at execute PlatformUI.getWorkbench().restart() (17.32 KB, text/rtf)
2022-06-21 12:58 EDT, Ralph Bosson CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Bosson CLA 2022-06-21 12:58:21 EDT
Created attachment 288589 [details]
Crash report at execute PlatformUI.getWorkbench().restart()

First - thanks for all you do!

Executing PlatformUI.getWorkbench().restart() crashes a RCP-3 app when the application is running within a macOS sandbox container. I have contacted Apple Tech on this issue. Their position is that the crash report shows "a very characteristic signature and it’s definitely caused by your program trying to re-initialise its sandbox.  The most likely cause is your program spawning a copy of itself (using `posix_spawn` or fork/exec) or re-execing itself (using `execve` or one of its friends).  Neither of these is feasible in a sandboxed app." 
I have not yet uncovered a work around although a significant effort has been made.  Any help on this would be truly appreciated.

Step by:
Launch COR•REG™
Programmatically create database
User select Accounting setup
PlatformUI.getWorkbench().restart()
(Crash)

Be well
Ralph