Mac VM not responding - any ideas?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Mac VM not responding - any ideas?

Bob Arning
I occasionally get Squeak into a state that it can only be killed. Any suggestions?

Using the Squeak 4.2 all-in-one
MacOS 10.5.8

VM: Mac OS - Smalltalk [that's literally what it says!]
Image: Squeak4.2 [latest update: #10966]

here's another take on VM version:
Virtual Machine
---------------
/Users/bob/squeak/SE squeak 4.2.app/Contents/MacOS/Squeak VM Opt
Squeak3.8.1 of '28 Aug 2006' [latest update: #6747] 4.2
Mac Carbon 4.2.4b1 28-Mar-10 >45CAAEAC-5A1E-4327-9702-7973E3473FDE<

--here is what Activity Monitor thinks is going on--
Sampling process 61351 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Squeak VM Opt (pid 61351) every 1 millisecond
Call graph:
    2482 Thread_2507
      1856 accessibleObjectAfter
        1856 accessibleObjectAfter
      626 primitiveSomeInstance
        626 primitiveSomeInstance
    2482 Thread_2603
      2482 thread_start
        2482 _pthread_start
          2482 TimerThread
            2482 TSWaitOnSemaphoreCommon
              2482 TSWaitOnConditionTimedRelative
                2482 pthread_cond_timedwait_relative_np
                  2482 _pthread_cond_wait
                    2477 semaphore_timedwait_signal_trap
                      2477 semaphore_timedwait_signal_trap
                    5 _pthread_cond_wait
    2482 Thread_2703
      2482 thread_start
        2482 _pthread_start
          2482 CAPThread::Entry(CAPThread*)
            2482 HALRunLoop::OwnThread(void*)
              2482 CFRunLoopRunInMode
                2482 CFRunLoopRunSpecific
                  2482 mach_msg
                    2482 mach_msg_trap
                      2482 mach_msg_trap

Total number in stack (recursive counted multiple, when >=5):

Sort by top of stack, same collapsed (when >= 5):
        mach_msg_trap        2482
        semaphore_timedwait_signal_trap        2477
        accessibleObjectAfter        1856
        primitiveSomeInstance        626
        _pthread_cond_wait        5
Sample analysis of process 61351 written to file /dev/stdout
Reply | Threaded
Open this post in threaded view
|

Re: Mac VM not responding - any ideas?

David T. Lewis
 
On Sat, Aug 13, 2011 at 05:33:41AM -0700, Bob Arning wrote:

>  
> I occasionally get Squeak into a state that it can only be killed. Any
> suggestions?
>
> Using the Squeak 4.2 all-in-one
> MacOS 10.5.8
>
> VM: Mac OS - Smalltalk [that's literally what it says!]
> Image: Squeak4.2 [latest update: #10966]
>
> here's another take on VM version:
> Virtual Machine
> ---------------
> /Users/bob/squeak/SE squeak 4.2.app/Contents/MacOS/Squeak VM Opt
> Squeak3.8.1 of '28 Aug 2006' [latest update: #6747] 4.2
> Mac Carbon 4.2.4b1 28-Mar-10 >45CAAEAC-5A1E-4327-9702-7973E3473FDE<
>

Hi Bob,

This issue sounds familiar and I think that it has been discussed
on this list, though I cannot find a link right now. Hopefully
Esteban or someone else on the list can provide specifics, but
in the mean time you may want to try using one of Esteban's newer
VMs from the squeakvm.org web site here:

 http://squeakvm.org/mac/

Dave



> --here is what Activity Monitor thinks is going on--
> Sampling process 61351 for 3 seconds with 1 millisecond of run time between
> samples
> Sampling completed, processing symbols...
> Analysis of sampling Squeak VM Opt (pid 61351) every 1 millisecond
> Call graph:
>     2482 Thread_2507
>       1856 accessibleObjectAfter
>         1856 accessibleObjectAfter
>       626 primitiveSomeInstance
>         626 primitiveSomeInstance
>     2482 Thread_2603
>       2482 thread_start
>         2482 _pthread_start
>           2482 TimerThread
>             2482 TSWaitOnSemaphoreCommon
>               2482 TSWaitOnConditionTimedRelative
>                 2482 pthread_cond_timedwait_relative_np
>                   2482 _pthread_cond_wait
>                     2477 semaphore_timedwait_signal_trap
>                       2477 semaphore_timedwait_signal_trap
>                     5 _pthread_cond_wait
>     2482 Thread_2703
>       2482 thread_start
>         2482 _pthread_start
>           2482 CAPThread::Entry(CAPThread*)
>             2482 HALRunLoop::OwnThread(void*)
>               2482 CFRunLoopRunInMode
>                 2482 CFRunLoopRunSpecific
>                   2482 mach_msg
>                     2482 mach_msg_trap
>                       2482 mach_msg_trap
>
> Total number in stack (recursive counted multiple, when >=5):
>
> Sort by top of stack, same collapsed (when >= 5):
>         mach_msg_trap        2482
>         semaphore_timedwait_signal_trap        2477
>         accessibleObjectAfter        1856
>         primitiveSomeInstance        626
>         _pthread_cond_wait        5
> Sample analysis of process 61351 written to file /dev/stdout
>
> --
> View this message in context: http://forum.world.st/Mac-VM-not-responding-any-ideas-tp3741250p3741250.html
> Sent from the Squeak VM mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: Mac VM not responding - any ideas?

Bob Arning
Dave,

Thanks, but AFAICT, those newer VMs don't work on 10.5. If I start one up, the Squeak window remains blank white and it will not quit from the Mac menubar, only by killing. This is similar behavior to the question I posed about a month ago on the dev list and to which you replied. The difference now is that I am not trying to alter any vm parameters and the image will stay up for much longer (days) before hanging. Other than those differences, might be the same problem.

Cheers,
Bob
Reply | Threaded
Open this post in threaded view
|

Re: Mac VM not responding - any ideas?

Sean P. DeNigris
Administrator
Bob Arning wrote
Thanks, but AFAICT, those newer VMs don't work on 10.5.
I've been using 4.2.5 and the recent Stack/Cog VMs on Snow Leopard and Lion (and I think I used 4.2.5 on Leopard IIRC). The only caveat I know of is that OSProcess is broken in Stack/Cog.

Cheers.
Sean
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Mac VM not responding - any ideas?

Bob Arning
Sean,

When you say 4.2.5, are you referring to an image version or a VM version? I'm having a bit of a hard time getting my head around all the options available and particularly which will work (well) in MacOS 10.5.

Cheers,
Bob

Sean P. DeNigris wrote
Bob Arning wrote
Thanks, but AFAICT, those newer VMs don't work on 10.5.
I've been using 4.2.5 and the recent Stack/Cog VMs on Snow Leopard and Lion (and I think I used 4.2.5 on Leopard IIRC). The only caveat I know of is that OSProcess is broken in Stack/Cog.

Cheers.
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Mac VM not responding - any ideas?

Bob Arning
FWIW, I have started using CogMT and it seems to avoid at least one of the problems I encountered with the older VM.

Thanks,
Eliot