[OpenSmalltalk/opensmalltalk-vm] primitiveSSLCreate fails sporadically on Windows (#554)

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

Re: [OpenSmalltalk/opensmalltalk-vm] primitiveSSLCreate fails sporadically on Windows (#554)

David T Lewis
 

Hi win32 folks,

coincidentally I found a huge bug with external primitives on win32
Spur VMs. The bug was the VM code generator not using the EXPORT macro to
export primitive accessor depths. This macro does nothing on unix & macos
(hence I didn't notice the bug), but is required on win32. The transparent
forwarding mechanism for primitives is broken by this bug. Hence any
external primitive that needs to retry to follow a forwarder (e.g. after a
pin operation or a become to grow something, etc) won't retry on win32. I
fon't know if this will fix the SSL issue on win32. But it is certainly a
smoking gun.

The bug is fixed in my most recent commit.

On Fri, Apr 9, 2021 at 12:45 AM Marcel Taeumel ***@***.***>
wrote:

> Well, I wouldn't immediately celebrate "Got it!" 😄 but yes, I can
> reproduce this in Squeak 5.3 (64-bit) with the VM 202003021730. So, what
> does this behavior tell us? At least, it is releated to some kind of memory
> management. Renaming "Squeak.exe" to something else or using
> "SqueakConsole.exe" or changing the VM to 202011120327 ... all options
> still show that bug in that "broken" image.
>
> There is something wrong with module loading. Is there some interference
> between Squeak's object memory and how modules are loaded? Maybe take a
> look at how primitive 571 is implemented. (SmalltalkImage >>
> #unloadModule:)
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/554#issuecomment-816486966>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ADY5VUE6HYN67FMHCWUIMQTTH2WA5ANCNFSM4ZCQMSXA>
> .
>


--
_,,,^..^,,,_
best, Eliot


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/554#issuecomment-818462338", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/554#issuecomment-818462338", "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] primitiveSSLCreate fails sporadically on Windows (#554)

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

Sounds reasonable!


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/554#issuecomment-818479399", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/554#issuecomment-818479399", "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] primitiveSSLCreate fails sporadically on Windows (#554)

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

Well ... if it helps ... try to avoid the file-chooser when starting the OSVM under Windows. Either specify the image path on the command line or do drag-and-drop or just have a single image in your VM path. There is something fishy going on there. Last time, I had repeated issues with FFI that I could repeatedly resolve with directly opening the image file. This is very strange! (Maybe it has something to do with those dialogs being obsolete in Windows 10? See:


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/554#issuecomment-830774945", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/554#issuecomment-830774945", "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] primitiveSSLCreate fails sporadically on Windows (#554)

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

Note that I cannot reproduce the SSL bug as described by Christoph above in recent VMs. Seems that Eliot fix worked. :-)


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/554#issuecomment-830819576", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/554#issuecomment-830819576", "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] primitiveSSLCreate fails sporadically on Windows (#554)

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

Hi all!

I just pulled the latest changes from OSVM and was still able to reproduce the steps from above. I'm sorry to say that the issue is not yet resolved for me.


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/554#issuecomment-841852536", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/554#issuecomment-841852536", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
12