ok, after some clues from David I built a mostly broken unix vm, however it was enough to build a OSProcessPlugin as a side effect.
In testing I see that calling primitiveForkSqueakWithoutSigHandler crashes things, I'll suspect forking the carbon vm is a no no.
clues are...
[
squeak: could not load plugin `XDisplayControlPlugin' ioFindExternalFunctionIn(primitiveForkSqueakWithoutSigHandler, 4251344) Switching to process 4134 thread 0x6977] Program received signal: "EXC_BAD_ACCESS".
(gdb) call (int) printAllStacks() SmallInteger 149288092 ProcessorScheduler class>idleProcess 149211076 [] in ProcessorScheduler class>startUp 149211168 [] in BlockContext>newProcess $1 = 259985308 (gdb) bt #0 0x0002bd24 in resume (aProcess=131462172) at /Users/johnmci/ Documents/Squeak3.8.0/src/vm/interp.c:21212 #1 0x0002eb98 in synchronousSignal (aSemaphore=131461696) at /Users/ johnmci/Documents/Squeak3.8.0/src/vm/interp.c:22390 #2 0x00005b38 in checkForInterrupts () at /Users/johnmci/Documents/ Squeak3.8.0/src/vm/interp.c:3134 #3 0x000103fc in interpret () at /Users/johnmci/Documents/ Squeak3.8.0/src/vm/interp.c:8247 #4 0x9002b1e0 in _pthread_body ()
Anyway other things work, geting file permissions, working directory etc etc, and I guess it's enough for folks who want limited support under os-x using the carbon vm at 3.8.10 level. IF anyone wants to fix or alter the sunits so that they won't fork the vm if platform is Mac OS & not unix then feel free...
On 1-Mar-06, at 3:57 AM, David T. Lewis wrote:
OK, let me know if I can be of help.
Dave
On Wed, Mar 01, 2006 at 02:38:55AM -0800, John M McIntosh wrote:
David thank you the instructions, I was hoping to avoid having to follow all of them. I'll do other things this week, and perhaps revisit the issue in a couple of weeks..
On 28-Feb-06, at 4:01 AM, David T. Lewis wrote:
On Mon, Feb 27, 2006 at 10:57:45AM -0800, John M McIntosh wrote:
in my spare time today I was going to run the Sunits for OSProcess under mac carbon 3.8.10b15. However I'm unable to find a version of the plugin anywhere and I'm a bit lazy and don't want to face the hassle of trying to build a plugin from scratch. Therefore if someone has a pre-build plugin for os-x somewhere please email a link or how to obtain it.
Hi John,
In case you don't get someone to send a pre-built OSPP:
-- ======================================================================== === John M. McIntosh johnmci@smalltalkconsulting.com 1-800-477-2659 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ======================================================================== ===