Got FFI working on my own builds (production and debug) but downloaded all-in-one always never works

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

Got FFI working on my own builds (production and debug) but downloaded all-in-one always never works

LawsonEnglish
So, with Craig Latta’s help, I managed to build my own vm. I added back in the 5.3-19435 image and changes files, and sources file, and changed the plist appropriately and it works just fine.

Yay!

However, I never did get the distributed version to work. I can sorta make it work with enough swapping of files, but it eventually crashes on startup even though FFI to my own dylib is working.

The unmodified distributed 5.3 all-in-work apparently ALWAYS eventually crashes onstartup after trying to load a dylib and then staving, if I do it enough times, but thus far the ones I built do not do this.

I can continue with my FFI experiments now (thanks everyone for their help), but unless something is very wrong with my Mac’s setup, the latst vesion of catalina isn’t stable for FFI via dylib.


L



Reply | Threaded
Open this post in threaded view
|

Re: Got FFI working on my own builds (production and debug) but downloaded all-in-one always never works

Eliot Miranda-2
Hi Lawson,

On Thu, Aug 20, 2020 at 1:56 PM LawsonEnglish <[hidden email]> wrote:
So, with Craig Latta’s help, I managed to build my own vm. I added back in the 5.3-19435 image and changes files, and sources file, and changed the plist appropriately and it works just fine.

Yay!

However, I never did get the distributed version to work. I can sorta make it work with enough swapping of files, but it eventually crashes on startup even though FFI to my own dylib is working.

The unmodified distributed 5.3 all-in-work apparently ALWAYS eventually crashes onstartup after trying to load a dylib and then staving, if I do it enough times, but thus far the ones I built do not do this.

If you run with an assert 5.3 VM build do you see anything indicative?  And are you saying that the 5.3 distribution also crashes on a recent VM?
 
I can continue with my FFI experiments now (thanks everyone for their help), but unless something is very wrong with my Mac’s setup, the latst vesion of catalina isn’t stable for FFI via dylib.


L

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


Reply | Threaded
Open this post in threaded view
|

test

LawsonEnglish
test

Reply | Threaded
Open this post in threaded view
|

Re: Got FFI working on my own builds (production and debug) but downloaded all-in-one always never works

LawsonEnglish
In reply to this post by Eliot Miranda-2
testing (sorry my email won’t send a real response)

L

Reply | Threaded
Open this post in threaded view
|

Re: Got FFI working on my own builds (production and debug) but downloaded all-in-one always never works

LawsonEnglish
In reply to this post by Eliot Miranda-2
>On Thu, Aug 20, 2020 at 1:56 PM LawsonEnglish <[hidden email]> wrote:
>>So, with Craig Lattas help, I managed to build my own vm. I added back in the >>5.3-19435 image and changes files, and sources file, and changed the plist >>appropriately and it works just fine.

>>Yay!

>>However, I never did get the distributed version to work. I can sorta make it >>work with enough swapping of files, but it eventually crashes on startup even >>though FFI to my own dylib is working.

>>The unmodified distributed 5.3 all-in-work apparently ALWAYS eventually >>crashes onstartup after trying to load a dylib and then staving, if I do it >>enough times, but thus far the ones I built do not do this.

>If you run with an assert 5.3 VM build do you see anything indicative?  And >are you saying that the 5.3 distribution also crashes on a recent VM?
 
>>I can continue with my FFI experiments now (thanks everyone for their help), >>but unless something is very wrong with my Macs setup, the latst vesion of >>catalina isnt stable for FFI via dylib.



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

Reply | Threaded
Open this post in threaded view
|

Re: Got FFI working on my own builds (production and debug) but downloaded all-in-one always never works

LawsonEnglish
In reply to this post by Eliot Miranda-2
This is another test (please disregard).

L

Reply | Threaded
Open this post in threaded view
|

Re: Got FFI working on my own builds (production and debug) but downloaded all-in-one always never works

LawsonEnglish
In reply to this post by Eliot Miranda-2
This is a test to see if there is still aproblem responding to Eliot’s message (my ISP wouldn’t let me respond directly but I could respond in private.

If you can see this message, it means that the problem has corrected itself.


L

On Aug 22, 2020, at 10:38 AM, Eliot Miranda <[hidden email]> wrote:

Hi Lawson,

On Thu, Aug 20, 2020 at 1:56 PM LawsonEnglish <[hidden email]> wrote:
So, with Craig Latta’s help, I managed to build my own vm. I added back in the 5.3-19435 image and changes files, and sources file, and changed the plist appropriately and it works just fine.

Yay!

However, I never did get the distributed version to work. I can sorta make it work with enough swapping of files, but it eventually crashes on startup even though FFI to my own dylib is working.

The unmodified distributed 5.3 all-in-work apparently ALWAYS eventually crashes onstartup after trying to load a dylib and then staving, if I do it enough times, but thus far the ones I built do not do this.

If you run with an assert 5.3 VM build do you see anything indicative?  And are you saying that the 5.3 distribution also crashes on a recent VM?
 
I can continue with my FFI experiments now (thanks everyone for their help), but unless something is very wrong with my Mac’s setup, the latst vesion of catalina isn’t stable for FFI via dylib.


L

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




Reply | Threaded
Open this post in threaded view
|

Re: test

Ron Teitelbaum
In reply to this post by LawsonEnglish
ack 

On Mon, Aug 24, 2020 at 2:49 AM LawsonEnglish <[hidden email]> wrote:
test



Reply | Threaded
Open this post in threaded view
|

Re: Got FFI working on my own builds (production and debug) but downloaded all-in-one always never works

LawsonEnglish
In reply to this post by Eliot Miranda-2
[hopefully this won’t cause my ISP more headaches like it did last night]

I did the test of changing info.plist and adding the libraries and image/changes files to the SqueakDebug, Squeak and Squeak.assert apps and they all work just fine with my FFI.

So my own compiled Squeak dylib doesn’t have the problem, while the Squeak dylib in the MacOS director in the all-in-one package does.

.



The big holdup now is to get mpfr_get_str() working.

char * mpfr_get_str (char *str, mpfr_exp_t *expptr, int base, size_t n, mpfr_t op, mpfr_rnd_t rnd)

In the  simplest call, giving a NULL buffer and passing 0 via expptr returns the answer in a string buffer allocated by mpfr itself and returns the exponent via expptr.


Thus far, I can’t quite get that to work. Crashes squeak every time.

Some people didn’t even realize that you can pass a "hand-made” external pointer into a variable using the FFI library, so the documentation isn’t exactly clear here. I couldn’t find an example of doing this in the test library so I’m trying to figure it out on my own and so far, Its not quite working.

anyway, thanks for everyone’s suggestions.

L


On Aug 22, 2020, at 10:38 AM, Eliot Miranda <[hidden email]> wrote:

Hi Lawson,

On Thu, Aug 20, 2020 at 1:56 PM LawsonEnglish <[hidden email]> wrote:
So, with Craig Latta’s help, I managed to build my own vm. I added back in the 5.3-19435 image and changes files, and sources file, and changed the plist appropriately and it works just fine.

Yay!

However, I never did get the distributed version to work. I can sorta make it work with enough swapping of files, but it eventually crashes on startup even though FFI to my own dylib is working.

The unmodified distributed 5.3 all-in-work apparently ALWAYS eventually crashes onstartup after trying to load a dylib and then staving, if I do it enough times, but thus far the ones I built do not do this.

If you run with an assert 5.3 VM build do you see anything indicative?  And are you saying that the 5.3 distribution also crashes on a recent VM?
 
I can continue with my FFI experiments now (thanks everyone for their help), but unless something is very wrong with my Mac’s setup, the latst vesion of catalina isn’t stable for FFI via dylib.


L

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