Hmmm ... I smell a thread problem. I looked a little more carefully at the change log for OSPP on SqueakSource, and I see that I added this for OSPP 4.0.2 in March 2006:
VMConstruction-Plugins-OSProcessPlugin-dtl.3.mcz Dave Lewis, 5 March 2006 6:08:38 pm Version 4.0.2 Add pthread access primitive. Add pthread signal masking to ensure that forwarded signals are delivered to the interpreter thread. This is required for OS X. Strategy: Signal handler checks to see if it is executing in the context of the interpreter pthread. If yes, signal the Squeak semaphore, otherwise mask this pthread to prevent future delivery if this signum and resend the signal to the interpreter pthread. IIRC, this update was needed to ensure that SIGCHLD signals would be delivered to the pthread in which the interpreter is running. Prior to that change, Mac users would get VM crashes when a child process exited and OSPP handled the resulting SIGCHLD signal (which involves signaling a Semaphore in the image with #signalSemaphoreWithIndex:). So I think that you will need a more up to date OSPP plugin in order to run the tests on OS X. Note: A quick google check shows that Igor Stasenko solved this same problem differently in Hydra, see: http://lists.squeakfoundation.org/pipermail/vm-dev/2009-September/003223.html Dave On Wed, Nov 18, 2009 at 05:59:30PM +0100, Adrian Lienhard wrote: > I attached gdb to the VM. When running UnixProcessTestCase the VM > crashes with: > > Program received signal EXC_BAD_ACCESS, Could not access memory. > Reason: KERN_PROTECTION_FAILURE at address: 0x00000083 > 0x000e7e9d in resume () > > (gdb) bt > #0 0x000e7e9d in resume () > #1 0x4b04264b in ?? () > Previous frame inner to this frame (gdb could not unwind past this > frame) > > > Adrian > > On Nov 18, 2009, at 17:19 , Adrian Lienhard wrote: > > > OK, I'll stick to this VM version. > > > > I compared to the Squeak trunk image and the very same test cases > > crash the VM. So at least the crashing problem (on Mac) is not likely > > caused by a Pharo-specific change. > > > > Adrian > > > > On Nov 18, 2009, at 16:18 , David T. Lewis wrote: > > > >> On Wed, Nov 18, 2009 at 02:56:56PM +0100, Adrian Lienhard wrote: > >>> Hi Dave, > >>> > >>> OSProcess accessor osppModuleVersionString ==> '4.0.1' > >>> > >>> I get the same result with the Mac 4.2.2beta1U VM. > >> > >> I think that's from about November 2005, so a bit out of date. The > >> source > >> is on SqueakSource OSProcessPlugin project if you want to see what > >> has changed > >> since then. Nevertheless it should still be good enough to get most > >> of the tests > >> to pass, so I would not worry about the version difference for now. > >> > >> Dave > >> _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
