Camera sig fault on 64 bits machines.

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

Re: Camera sig fault on 64 bits machines.

Nicolas Cellier
 
Just one word: please don't forget the work from Pharo team on CMakeVMMaker, it might be a decent starting point.


2014-04-10 22:20 GMT+02:00 Andreas Wacknitz <[hidden email]>:

While we are at it: Linux is not a UNIX. Even if we are putting it under the UNIX umbrella, it is not the only UNIX.

I am trying to get Squeak/Pharo to run under Solaris (OpenSolaris) with some trouble. But also BSD folks have difficulties because
UNIX == Linux in the view of the Squeak VM.
While my first try with recent SqueakVM sources wasn’t successful (I got "DosFileDirectory(Object)>>doesNotUnderstand: #pathFromURI:“ from the provided image), I was able to build a recent pharovm after I manipulated the image in order to get the vm-sound-Sun module instead of the hard coded vm-sound-ALSA for the UNIX platform. I got everything compiled but the resulting binary stuck after showing the complete graphics
with no reactions to mouse or keyboard events. I found out that inside the aioPoll function the call to select() always returns 0.
Because of my limited spare time I didn’t get further yet.

So, please consider not only the 3 major platforms (Windows, Mac OS, Linux) when doing the great work on the VM.

Best regards
Andreas

Am 10.04.2014 um 21:53 schrieb tim Rowledge <[hidden email]>:

>
>
> On 10-04-2014, at 11:17 AM, gettimothy <[hidden email]> wrote:
>
>> David.
>>
>> I am taking Tim up on his bounty offer. Gotta love a chance to contribute, learn something new and interesting and pay the rent.
>
> OK. I’ll be very pleased if something can actually come of this. I’ve had several people claim they were going to solve the problem Real Soon Now but so far nothing. Forgive me if I seem world-weary and cynical but that’s because… I am.
>
> The aim is to get Cog on *nix being built via a mechanism as near as possible to that used for the plain interp in the squeakvm.org trunk tree. Windows & Mac may or may not ever be targets and I don’t care right now.
>
> If you read the archives of the main squeak list and the vm-dev list after searching for all messages with ‘cmake’ in the subject and dating back to last june you’ll find at least 60-some hits. After a quick scan of my local archive I see a variety of suggestions to think about. I note that Ron Teitelbaum wrote that Goran was working on the issue at 3DICC, for example.
>
> The grand aim would be to unify things so well that Eliot throws off the chains of keeping a virtual fork and starts using the main trunk since it is so easy to do. I suspect that might be more work than can be done in a few weeks even. What *I* would be happy with would be a checkout that works on my Pi, produces a working stackvm, matches the trunk cmake setup as closely as possible and is clearly documented so it can be further developed towards the Grand Aim.
>
> tim
> --
> tim Rowledge; [hidden email]; http://www.rowledge.org/tim
> Strange OpCodes: RSC: Rewind System Clock
>
>


tty
Reply | Threaded
Open this post in threaded view
|

Re: Camera sig fault on 64 bits machines.

tty
 
>>Nicolas
>>Just one word: please don't forget the work from Pharo team on CMakeVMMaker, it might be a decent starting point.

Absolutely--never underestimate how lazy I can be (:
I also have the existing standard interpreter CMake as a model as well. I am going to take the time to study CMake first instead of just modifying and hacking on other's work.

>>Andreas..
>>I am trying to get Squeak/Pharo to run under Solaris (OpenSolaris) with some trouble. But also BSD folks have difficulties because UNIX == Linux in the view of the Squeak VM.


I have considered Open Solaris and FreeBSD for my former dos partition--I don't know if CMake will work on them, but I will investigate. Do you have a link for open solaris? When I checked a few days ago Oracle had branded everything and I prefer to not deal with Ellison if I can.



thx.

tty




Reply | Threaded
Open this post in threaded view
|

Re: Camera sig fault on 64 bits machines.

Colin Putney-3
 



On Thu, Apr 10, 2014 at 3:35 PM, gettimothy <[hidden email]> wrote:
 
I have considered Open Solaris and FreeBSD for my former dos partition--I don't know if CMake will work on them, but I will investigate. Do you have a link for open solaris? When I checked a few days ago Oracle had branded everything and I prefer to not deal with Ellison if I can.

I did some work a while back to build Cog on SmartOS and OpenIndiana. I got it to compile and run, but the image couldn't do IO or respond to UI events. I've found VirtualBox handy for this sort of thing—you can get ready-made images for many operating systems, which saves installing and configuring a bare-metal installation. 
Reply | Threaded
Open this post in threaded view
|

Re: Camera sig fault on 64 bits machines.

timrowledge
In reply to this post by tty


On 10-04-2014, at 1:35 PM, gettimothy <[hidden email]> wrote:
> I also have the existing standard interpreter CMake as a model as well. I am going to take the time to study CMake first instead of just modifying and hacking on other's work.

The current plain interp build system must be the model in order to end up with a system that satisfies the need to be able to merge plain and Cog. There are three people that need to be satisfied here; me, Eliot, & Ian.

Learning about CMake is a very good thing to start with...

tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Strange OpCodes: MFC: Mangle Following Command


tty
Reply | Threaded
Open this post in threaded view
|

Re: Camera sig fault on 64 bits machines.

tty
 

>>The current plain interp build system must be the model in order to end up with a system that satisfies the need to be able to merge plain and Cog. 

Sounds good.

Cordially,

t



---- On Thu, 10 Apr 2014 15:36:53 -0700 tim Rowledge<[hidden email]> wrote ----



On 10-04-2014, at 1:35 PM, gettimothy <[hidden email]> wrote:
> I also have the existing standard interpreter CMake as a model as well. I am going to take the time to study CMake first instead of just modifying and hacking on other's work.

The current plain interp build system must be the model in order to end up with a system that satisfies the need to be able to merge plain and Cog. There are three people that need to be satisfied here; me, Eliot, & Ian.

Learning about CMake is a very good thing to start with...

tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Strange OpCodes: MFC: Mangle Following Command



Reply | Threaded
Open this post in threaded view
|

VM CMake Project (was: Camera sig fault on 64 bits machines.)

David T. Lewis
In reply to this post by timrowledge
 
On Thu, Apr 10, 2014 at 12:53:28PM -0700, tim Rowledge wrote:
>
> The grand aim would be to unify things so well that Eliot throws off the
> chains of keeping a virtual fork and starts using the main trunk since it
> is so easy to do. I suspect that might be more work than can be done in a
> few weeks even. What *I* would be happy with would be a checkout that works
> on my Pi, produces a working stackvm, matches the trunk cmake setup as closely
> as possible and is clearly documented so it can be further developed towards
> the Grand Aim.
>

This is a perfect summary, and all involved will be very happy if it can be
achieved. I will only add that if you can make Tim happy with respect to a
pi + stackvm + trunk Cmake , then in my view the remaining problems become
very managable. So go forth and make Tim happy, and make sure he pays up
if you manage to make him smile :-)

Dave
 
Reply | Threaded
Open this post in threaded view
|

Re: VM CMake Project

Stuart Cassoff
In reply to this post by tty
 
On 04/10/14 16:02, gettimothy wrote:

>  
>
>
>
> Tim,
>
> Thank you.
>
> I have changed the subject line to reflect the project.
>

Hi,


I think you can get pretty far by simply copying over all the existing cmake stuff.
For some things, like vm-* that may be all there is to do.
Probably the cmake dir contents will require the most reconciling.
This is mostly optimistic somewhat-informed guessing. :)

Stu
Reply | Threaded
Open this post in threaded view
|

Re: VM CMake Project

Tobias Pape
In reply to this post by tty
 
tty,

On 10.04.2014, at 22:02, gettimothy <[hidden email]> wrote:

> Tim,
>
> Thank you.
>
> I have changed the subject line to reflect the project.
>
>
> I will start reviewing the archives tomorrow and come up with a roadmap. I don't have any projects besides this right now so I can give it my full attention and hopefully get something intuitive, functional and documented in place by end of next week-ish.
>
> Cordially,

Steal what you want from
        https://github.com/krono/self/tree/master/vm/cmake

;)

best
        -Tobias


signature.asc (1K) Download Attachment
tty
Reply | Threaded
Open this post in threaded view
|

Re: VM CMake Project

tty
 
Tobias,

Thanks.


cheers tty

---- On Fri, 11 Apr 2014 00:50:33 -0700 Tobias Pape<[hidden email]> wrote ----

tty,

On 10.04.2014, at 22:02, gettimothy <[hidden email]> wrote:

> Tim,
>
> Thank you.
>
> I have changed the subject line to reflect the project.
>
>
> I will start reviewing the archives tomorrow and come up with a roadmap. I don't have any projects besides this right now so I can give it my full attention and hopefully get something intuitive, functional and documented in place by end of next week-ish.
>
> Cordially,


Steal what you want from
    https://github.com/krono/self/tree/master/vm/cmake

;)

best
    -Tobias


Reply | Threaded
Open this post in threaded view
|

Re: Camera sig fault on 64 bits machines.

Andreas Wacknitz
In reply to this post by tty
 

Am 10.04.2014 um 22:35 schrieb gettimothy <[hidden email]>:

>>Nicolas
>>Just one word: please don't forget the work from Pharo team on CMakeVMMaker, it might be a decent starting point.

Absolutely--never underestimate how lazy I can be (:
I also have the existing standard interpreter CMake as a model as well. I am going to take the time to study CMake first instead of just modifying and hacking on other's work.

>>Andreas..
>>I am trying to get Squeak/Pharo to run under Solaris (OpenSolaris) with some trouble. But also BSD folks have difficulties because UNIX == Linux in the view of the Squeak VM.


I have considered Open Solaris and FreeBSD for my former dos partition--I don't know if CMake will work on them, but I will investigate. Do you have a link for open solaris? When I checked a few days ago Oracle had branded everything and I prefer to not deal with Ellison if I can.


Yes, alas Solaris is closed-source again after the taker-over by Oracle. Nevertheless there are a couple of derivates from the OpenSolaris,
some commercial (like NexentraStor and SmartOS), some free (like openindiana, OpenSXCE, and DilOS). Most of them share Illumos (http://wiki.illumos.org) as a common base. While the commercial derivates typically have specialist usages (e.g. NexentraStor as big, reliable storage solution and SmartOS as a virtualization solution), the free offerings are still more or less general purpose OS's. In my eyes the most promising is openindiana (http://wiki.openindiana.org and for ISO’s: http://dlc.openindiana.org/isos/).

Regards,
Andreas

Reply | Threaded
Open this post in threaded view
|

Re: Camera sig fault on 64 bits machines.

Andreas Wacknitz
In reply to this post by Colin Putney-3
 

Am 10.04.2014 um 22:49 schrieb Colin Putney <[hidden email]>:




On Thu, Apr 10, 2014 at 3:35 PM, gettimothy <[hidden email]> wrote:
 
I have considered Open Solaris and FreeBSD for my former dos partition--I don't know if CMake will work on them, but I will investigate. Do you have a link for open solaris? When I checked a few days ago Oracle had branded everything and I prefer to not deal with Ellison if I can.

I did some work a while back to build Cog on SmartOS and OpenIndiana. I got it to compile and run, but the image couldn't do IO or respond to UI events. I've found VirtualBox handy for this sort of thing—you can get ready-made images for many operating systems, which saves installing and configuring a bare-metal installation. 
So you got as far as I did. After some thoughts I guess the heart beat Eliot introduced for Cog might be a possible cause of the problem.
When I did my first Solaris compilations of the Squeak VM a couple of years ago I had to adjust the signal handler installation. Solaris needs re-registration after a signal has been caught. I will take a look asap.

Regards,
Andreas
tty
Reply | Threaded
Open this post in threaded view
|

Re: Camera sig fault on 64 bits machines.

tty
 
Hi Andreas,

I found OpenIndiana last night and messed around with the installer this early a.m. (did not find my usb mouse, so I could not use it immediatly). I too have an interest in niche machines like Solaris and BSD, so I will return to this as I find it interesting.
That said, I am turning my attention to CMAKE and the existing infrastructure.

Cordially,

tty

---- On Fri, 11 Apr 2014 07:54:43 -0700 Andreas Wacknitz<[hidden email]> wrote ----


Am 10.04.2014 um 22:49 schrieb Colin Putney <[hidden email]>:




On Thu, Apr 10, 2014 at 3:35 PM, gettimothy <[hidden email]> wrote:
 
I have considered Open Solaris and FreeBSD for my former dos partition--I don't know if CMake will work on them, but I will investigate. Do you have a link for open solaris? When I checked a few days ago Oracle had branded everything and I prefer to not deal with Ellison if I can.

I did some work a while back to build Cog on SmartOS and OpenIndiana. I got it to compile and run, but the image couldn't do IO or respond to UI events. I've found VirtualBox handy for this sort of thing—you can get ready-made images for many operating systems, which saves installing and configuring a bare-metal installation. 
So you got as far as I did. After some thoughts I guess the heart beat Eliot introduced for Cog might be a possible cause of the problem.
When I did my first Solaris compilations of the Squeak VM a couple of years ago I had to adjust the signal handler installation. Solaris needs re-registration after a signal has been caught. I will take a look asap.

Regards,
Andreas

Reply | Threaded
Open this post in threaded view
|

Re: Camera sig fault on 64 bits machines.

Eliot Miranda-2
In reply to this post by Andreas Wacknitz
 
Hi Andreas, Hi Tty,


On Fri, Apr 11, 2014 at 7:54 AM, Andreas Wacknitz <[hidden email]> wrote:
 

Am 10.04.2014 um 22:49 schrieb Colin Putney <[hidden email]>:




On Thu, Apr 10, 2014 at 3:35 PM, gettimothy <[hidden email]> wrote:
 
I have considered Open Solaris and FreeBSD for my former dos partition--I don't know if CMake will work on them, but I will investigate. Do you have a link for open solaris? When I checked a few days ago Oracle had branded everything and I prefer to not deal with Ellison if I can.

I did some work a while back to build Cog on SmartOS and OpenIndiana. I got it to compile and run, but the image couldn't do IO or respond to UI events. I've found VirtualBox handy for this sort of thing—you can get ready-made images for many operating systems, which saves installing and configuring a bare-metal installation. 
So you got as far as I did. After some thoughts I guess the heart beat Eliot introduced for Cog might be a possible cause of the problem.
When I did my first Solaris compilations of the Squeak VM a couple of years ago I had to adjust the signal handler installation. Solaris needs re-registration after a signal has been caught. I will take a look asap.

Noe that the itemer/signal based heartbeat should be viewed as the heartbeat of last resort :-).  It has bad effects when integrating with external code, interrupting system calls etc.  Unless this external code is written to cope with interrupted calls that can't be restarted such as poll or select, the heartbeat needs to be disabled around calls to the external code.

Instead, the pthread/nanosleep based heartbeat (in platforms/unix/vm/sqUnixHeartbeat.c) is benign but does require multiple thread priorities in pthreads so that the heartbeat thread can run at a higher priority than the VM thread and hence reliably interrupt it.

--
best,
Eliot
Reply | Threaded
Open this post in threaded view
|

Re: Camera sig fault on 64 bits machines.

Andreas Wacknitz
 

Am 11.04.2014 um 18:02 schrieb Eliot Miranda <[hidden email]>:

Hi Andreas, Hi Tty,


On Fri, Apr 11, 2014 at 7:54 AM, Andreas Wacknitz <[hidden email]> wrote:
 

Am 10.04.2014 um 22:49 schrieb Colin Putney <[hidden email]>:




On Thu, Apr 10, 2014 at 3:35 PM, gettimothy <[hidden email]> wrote:
 
I have considered Open Solaris and FreeBSD for my former dos partition--I don't know if CMake will work on them, but I will investigate. Do you have a link for open solaris? When I checked a few days ago Oracle had branded everything and I prefer to not deal with Ellison if I can.

I did some work a while back to build Cog on SmartOS and OpenIndiana. I got it to compile and run, but the image couldn't do IO or respond to UI events. I've found VirtualBox handy for this sort of thing—you can get ready-made images for many operating systems, which saves installing and configuring a bare-metal installation. 
So you got as far as I did. After some thoughts I guess the heart beat Eliot introduced for Cog might be a possible cause of the problem.
When I did my first Solaris compilations of the Squeak VM a couple of years ago I had to adjust the signal handler installation. Solaris needs re-registration after a signal has been caught. I will take a look asap.

Noe that the itemer/signal based heartbeat should be viewed as the heartbeat of last resort :-).  It has bad effects when integrating with external code, interrupting system calls etc.  Unless this external code is written to cope with interrupted calls that can't be restarted such as poll or select, the heartbeat needs to be disabled around calls to the external code.

Instead, the pthread/nanosleep based heartbeat (in platforms/unix/vm/sqUnixHeartbeat.c) is benign but does require multiple thread priorities in pthreads so that the heartbeat thread can run at a higher priority than the VM thread and hence reliably interrupt it.

--
best,
Eliot
Thanks Eliot,

I will have a look at it.

Best regards,
Andreas

tty
Reply | Threaded
Open this post in threaded view
|

Cannot debug Ubuntu Camera on scratch because my webcam doesn't do linux

tty
In reply to this post by Gustavo Duarte-2
 
Hi Gustav,

I'm afraid I cannot debug this issue because I just found out that my webcam is not supported by linux. I thought it might work on Ubuntu, but after installing Ubuntu and scratch, no luck.

Cordially

tty
Reply | Threaded
Open this post in threaded view
|

Re: Camera sig fault on 64 bits machines.

timrowledge
In reply to this post by Eliot Miranda-2


On 11-04-2014, at 9:02 AM, Eliot Miranda <[hidden email]> wrote:
> Noe that the itemer/signal based heartbeat should be viewed as the heartbeat of last resort :-).  It has bad effects when integrating with external code, interrupting system calls etc.  Unless this external code is written to cope with interrupted calls that can't be restarted such as poll or select, the heartbeat needs to be disabled around calls to the external code.
>

Err, so maybe this is the cause of ALSA sound problems on the Pi with the stackVM? Damn.

tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
A hacker does for love what others would not do for money.


Reply | Threaded
Open this post in threaded view
|

Re: Camera sig fault on 64 bits machines.

Eliot Miranda-2
 



On Sat, Apr 12, 2014 at 10:20 AM, tim Rowledge <[hidden email]> wrote:


On 11-04-2014, at 9:02 AM, Eliot Miranda <[hidden email]> wrote:
> Noe that the itemer/signal based heartbeat should be viewed as the heartbeat of last resort :-).  It has bad effects when integrating with external code, interrupting system calls etc.  Unless this external code is written to cope with interrupted calls that can't be restarted such as poll or select, the heartbeat needs to be disabled around calls to the external code.
>

Err, so maybe this is the cause of ALSA sound problems on the Pi with the stackVM? Damn.

Could be.
 
A hacker does for love what others would not do for money.





--
best,
Eliot
Reply | Threaded
Open this post in threaded view
|

Re: Camera sig fault on 64 bits machines.

Eliot Miranda-2
 



On Sun, Apr 13, 2014 at 9:12 PM, Eliot Miranda <[hidden email]> wrote:



On Sat, Apr 12, 2014 at 10:20 AM, tim Rowledge <[hidden email]> wrote:


On 11-04-2014, at 9:02 AM, Eliot Miranda <[hidden email]> wrote:
> Noe that the itemer/signal based heartbeat should be viewed as the heartbeat of last resort :-).  It has bad effects when integrating with external code, interrupting system calls etc.  Unless this external code is written to cope with interrupted calls that can't be restarted such as poll or select, the heartbeat needs to be disabled around calls to the external code.
>

Err, so maybe this is the cause of ALSA sound problems on the Pi with the stackVM? Damn.

Could be.  But at Qwaq/Teleplace I had the ALSA plugin in the Cog branch working on linux using the itimer heartbeat.


Could be.
 
A hacker does for love what others would not do for money.





--
best,
Eliot



--
best,
Eliot
Reply | Threaded
Open this post in threaded view
|

Re: Camera sig fault on 64 bits machines.

Andreas Wacknitz
In reply to this post by Eliot Miranda-2
 
Hi Eliot,

Today I was able to work on this problem again. Alas heartbeat_handler() in sqUnixTimerHeartbeat.c is not called automatically as it should be.
Only if I trigger an external ALRM signal (by means of signal -ALRM <pid>) it’s being called. I wasn’t able to find out how the trigger for it is being
set. The only place I found a nanosleep() call was in block() in sqUnixMain.c.
BTW what does with ticker and without ticker mean in respect to the heartbeat?

Best regards,
Andreas

Am 11.04.2014 um 18:02 schrieb Eliot Miranda <[hidden email]>:

Hi Andreas, Hi Tty,


On Fri, Apr 11, 2014 at 7:54 AM, Andreas Wacknitz <[hidden email]> wrote:
 

Am 10.04.2014 um 22:49 schrieb Colin Putney <[hidden email]>:




On Thu, Apr 10, 2014 at 3:35 PM, gettimothy <[hidden email]> wrote:
 
I have considered Open Solaris and FreeBSD for my former dos partition--I don't know if CMake will work on them, but I will investigate. Do you have a link for open solaris? When I checked a few days ago Oracle had branded everything and I prefer to not deal with Ellison if I can.

I did some work a while back to build Cog on SmartOS and OpenIndiana. I got it to compile and run, but the image couldn't do IO or respond to UI events. I've found VirtualBox handy for this sort of thing—you can get ready-made images for many operating systems, which saves installing and configuring a bare-metal installation. 
So you got as far as I did. After some thoughts I guess the heart beat Eliot introduced for Cog might be a possible cause of the problem.
When I did my first Solaris compilations of the Squeak VM a couple of years ago I had to adjust the signal handler installation. Solaris needs re-registration after a signal has been caught. I will take a look asap.

Noe that the itemer/signal based heartbeat should be viewed as the heartbeat of last resort :-).  It has bad effects when integrating with external code, interrupting system calls etc.  Unless this external code is written to cope with interrupted calls that can't be restarted such as poll or select, the heartbeat needs to be disabled around calls to the external code.

Instead, the pthread/nanosleep based heartbeat (in platforms/unix/vm/sqUnixHeartbeat.c) is benign but does require multiple thread priorities in pthreads so that the heartbeat thread can run at a higher priority than the VM thread and hence reliably interrupt it.

--
best,
Eliot

Reply | Threaded
Open this post in threaded view
|

Re: Camera sig fault on 64 bits machines.

Eliot Miranda-2
 
Hi Andreas,


On Sat, Apr 19, 2014 at 2:52 PM, Andreas Wacknitz <[hidden email]> wrote:
 
Hi Eliot,

Today I was able to work on this problem again. Alas heartbeat_handler() in sqUnixTimerHeartbeat.c is not called automatically as it should be.
Only if I trigger an external ALRM signal (by means of signal -ALRM <pid>) it’s being called. I wasn’t able to find out how the trigger for it is being
set.

Hmmm.  In sqUnixTimerHeartbeat.c::ioInitHeartbeat() there's a sigaction call that establishes heartbeat_handle as the handler for SIGALRM.  Perhaps on FreeBSD or OpenSolaris you need to rearm the signal handler on each delivery?  But perhaps there's a flag you can set in the sigaction that avoids having to do this.

 
The only place I found a nanosleep() call was in block() in sqUnixMain.c.

See the nanosleep in sqUnixHeartbeat.c::beatStateMachine.
 
BTW what does with ticker and without ticker mean in respect to the heartbeat?

The Qwaq/Teleplace/Terf VM needs support for sound processing.  The ticker is the thread or call that provides cycles for sound processing.

But look, if FreeBSD provides pthreads you should try and use sqUnixHeartbeat.c instead of sqUnixTimerHeartbeat.c.

HTH,
Eliot


Best regards,
Andreas

Am 11.04.2014 um 18:02 schrieb Eliot Miranda <[hidden email]>:

Hi Andreas, Hi Tty,


On Fri, Apr 11, 2014 at 7:54 AM, Andreas Wacknitz <[hidden email]> wrote:
 

Am 10.04.2014 um 22:49 schrieb Colin Putney <[hidden email]>:




On Thu, Apr 10, 2014 at 3:35 PM, gettimothy <[hidden email]> wrote:
 
I have considered Open Solaris and FreeBSD for my former dos partition--I don't know if CMake will work on them, but I will investigate. Do you have a link for open solaris? When I checked a few days ago Oracle had branded everything and I prefer to not deal with Ellison if I can.

I did some work a while back to build Cog on SmartOS and OpenIndiana. I got it to compile and run, but the image couldn't do IO or respond to UI events. I've found VirtualBox handy for this sort of thing—you can get ready-made images for many operating systems, which saves installing and configuring a bare-metal installation. 
So you got as far as I did. After some thoughts I guess the heart beat Eliot introduced for Cog might be a possible cause of the problem.
When I did my first Solaris compilations of the Squeak VM a couple of years ago I had to adjust the signal handler installation. Solaris needs re-registration after a signal has been caught. I will take a look asap.

Noe that the itemer/signal based heartbeat should be viewed as the heartbeat of last resort :-).  It has bad effects when integrating with external code, interrupting system calls etc.  Unless this external code is written to cope with interrupted calls that can't be restarted such as poll or select, the heartbeat needs to be disabled around calls to the external code.

Instead, the pthread/nanosleep based heartbeat (in platforms/unix/vm/sqUnixHeartbeat.c) is benign but does require multiple thread priorities in pthreads so that the heartbeat thread can run at a higher priority than the VM thread and hence reliably interrupt it.

--
best,
Eliot





--
best,
Eliot
123