[OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

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

[OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

David T Lewis
 

Building via mvm scripts results in a VM that segfaults when attempting to load a Pharo 8 image.
Building via cmake requires some tweaks to compile (for example, SDL had to be told not to build Wayland support due to symbol duplication bugs) as well as adding -Wl,--whole-archive /usr/lib/libexecinfo.a -Wl,--no-whole-archive to the linker flags.
The compiled virtual machine results in a primitive failed exception and the VM is unusably slow.

pharo script must be modified to point the platform library path to /lib where libmusl lives.
cap flag has to be set to get around scheduling error setcap cap_sys_nice=eip lib/pharo/pharo

The error: PrimitiveFailed: primitive #'insufficient object memory' in File class failed
VM brand: phcogspurlinuxspurmhdlssdl264+sdl2


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

David T Lewis
 

I suggest you take this up with the "PharoVM" team who claim the VM as their own and profess to have the expertise to support it.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-686203911", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-686203911", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

David T Lewis
In reply to this post by David T Lewis
 

Closed #519.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#event-3722605592", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#event-3722605592", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

David T Lewis
In reply to this post by David T Lewis
 

this is an incredibly rude way to ask if the problem persists with other smalltalk images.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-686369377", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-686369377", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

David T Lewis
In reply to this post by David T Lewis
 

Hello there and welcome.

This might seem very strange to you, but there is a bit of history that leads to this outcome.

You report seems to indicate that you used a Pharo-issued VM and a Pharo image.

In that case, your inital question might be better answered at https://github.com/pharo-project/opensmalltalk-vm

That repo states

This is a fork of OpenSmalltalk-vm. We are doing our best to keep compatibility and contribute back, as long as it fits the objective of Pharo community.

For seveal reasons, including a perceivedly low amount of "keep compatibility and contribute back" we cannot offer any support for VMs from that repo.

If you have used a VM from this repo and the error pops up with a non-Pharo image, please say so and we can reopen this issue.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-686380078", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-686380078", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

David T Lewis
In reply to this post by David T Lewis
 

the VM was from this repo, that is why i reported it here.
the cmake files in this repo default to turning "pharo branding" on.
i launched a squeak 5 image and it did appear to throw out any primitive failures and the stock code browser was working correctly.
the VM also said to report here how to get it working since it did not recognize where libc was.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-686387398", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-686387398", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

David T Lewis
In reply to this post by David T Lewis
 

Reopened #519.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#event-3724001446", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#event-3724001446", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

David T Lewis
In reply to this post by David T Lewis
 

Thanks, can you give a few more hints about the primivite failures?

Please use the mvm script for now. Where there any significant warnings or errors during compilation with MUSL?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-686396165", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-686396165", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

David T Lewis
In reply to this post by David T Lewis
 



> On Sep 3, 2020, at 2:28 AM, IcedQuinn <[hidden email]> wrote:
>
> 
> this is an incredibly rude way to ask if the problem persists with other smalltalk images.
>
The PharoVM team’s behaviour is far worse than merely rude. Your own assumption that I would support the PharoVM after all they have done and continue to do to steal credit and not contribute back could also be construed as rude, but perhaps it is merely ignorant. If the problem occurs in other images and non-Pharo builds of OpenSmalltalk perhaps you could provide steps to reproduce the problem. Until that time my response to requests for support with a Pharo branded vm with be a firm rejection.
> —
> You are receiving this because you modified the open/close state.
> Reply to this email directly, view it on GitHub, or unsubscribe.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-686556780", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-686556780", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

David T Lewis
In reply to this post by David T Lewis
 

Closed #519.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#event-3725227943", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#event-3725227943", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

David T Lewis
In reply to this post by David T Lewis
 

Ok, reopening and awaiting input on the Squeak primitve errors :)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-686573340", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-686573340", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

David T Lewis
In reply to this post by David T Lewis
 

Reopened #519.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#event-3725339519", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#event-3725339519", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

David T Lewis
In reply to this post by David T Lewis
 

(this is coordinated with @eliotmiranda , I'm assigning myself here)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-686573673", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-686573673", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

David T Lewis
In reply to this post by David T Lewis
 

Closed #519.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#event-3727553258", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#event-3727553258", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

David T Lewis
In reply to this post by David T Lewis
 

i apologize for cloning your repository and attempting to use it.
you may wish to modify your public README to better indicate new users are not welcome.
i will not be returning.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-686861668", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-686861668", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

David T Lewis
In reply to this post by David T Lewis
 

:(


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-686965293", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-686965293", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

David T Lewis
In reply to this post by David T Lewis
 

you may wish to modify your public README to better indicate new users are not welcome.

That would be a lie, as new users are welcome here.
What should be written there is that the Pharo VMs in this repository are obsolete and unsupported. I see little to no value in having them built by the CI, but someone seems to disagree with that idea, as they are still there. Their presence may even be a source of confusion.
If Pharo 8 was really released with a VM from this repository, then that was a mistake by the Pharo team.
If you need a Pharo VM, you'll find it at https://github.com/pharo-project/opensmalltalk-vm.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-687128055", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-687128055", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

Pierce Ng-3
In reply to this post by David T Lewis
 
On Thu, Sep 03, 2020 at 03:03:50AM -0700, IcedQuinn wrote:
> the VM was from this repo, that is why i reported it here.  the cmake
> files in this repo default to turning "pharo branding" on.  i launched
> a squeak 5 image and it did appear to throw out any primitive failures
> and the stock code browser was working correctly.  the VM also said to
> report here how to get it working since it did not recognize where
> libc was.

Hi,

I've built the OpenSmalltalk VM on Alpine Linux for use with Pharo.
Entire build process happens within Docker. Take a look:

  https://github.com/pharo-contributions/Docker-Alpine/tree/master/vm.build

The modified source to build on Alpine comes from my fork:

  https://github.com/PierceNg/opensmalltalk-vm/tree/pierce_alpine_839a5ca

The hex string at the end of the branch name is the OpenSmalltalk
commitish the branch is based on.

This VM runs my blog in an Alpine Linux Docker container.

HTH.

Pierce

Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

David T Lewis
In reply to this post by David T Lewis
 

Hi Pierce,

thanks for the info, but I don't see how these changes can alleviate the primitive erros.
But that said, maybe i can investigate the whole thing with the docker image, thank you.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-687586463", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#issuecomment-687586463", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Insufficient Object Memory: Building on Alpine (#519)

David T Lewis
In reply to this post by David T Lewis
 

Reopened #519.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#event-3732814039", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/519#event-3732814039", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
12