Re: [Jprogramming] Recursion crash WAS: depth vector APL translation

2021-05-24 Thread Hauke Rehr
… I’d never had thought things like that would be that quickly found looks like it was quite tricky to get to the root cause kudos to Henry and whoever else looked into this Am 24.05.21 um 21:30 schrieb Henry Rich: > This crash happened when a recursive explicit function was calling > itself usin

Re: [Jprogramming] Recursion crash WAS: depth vector APL translation

2021-05-24 Thread Henry Rich
This crash happened when a recursive explicit function was calling itself using a virtual argument, and the recursion gave an error.  In that case a memory block was not timely freed, and was freed later after it had gone out of scope. I don't know why it didn't show up on jconsole. Good to ha

Re: [Jprogramming] Recursion crash WAS: depth vector APL translation

2021-05-24 Thread Henry Rich
I can reproduce it!  Great, thanks. Henry Rich On 5/24/2021 10:24 AM, Raul Miller wrote: On OSX 10.14.6 (Mojave), I load the attached in j903 beta-j then run 0 dv ast and it crashes. Interestingly, if I include 0 dv ast in the script, that does not crash. I hope this helps, ---

Re: [Jprogramming] Recursion crash WAS: depth vector APL translation

2021-05-24 Thread Raul Miller
On OSX 10.14.6 (Mojave), I load the attached in j903 beta-j then run 0 dv ast and it crashes. Interestingly, if I include 0 dv ast in the script, that does not crash. I hope this helps, -- Raul Engine: j903/j64avx2/darwin Beta-j: commercial/2021-05-18T17:06:59 Library: 9.03.03 Qt IDE: 1.9.

Re: [Jprogramming] Recursion crash WAS: depth vector APL translation

2021-05-24 Thread Henry Rich
I can't get this to crash under JQt.  Can you provide detailed instructions (I know you did once, I just want to make sure I'm doing what you're doing)? And can others reproduce this crash? Henry Rich On 5/23/2021 10:37 PM, Raul Miller wrote: This does not crash for me under jconsole. This

Re: [Jprogramming] Recursion crash WAS: depth vector APL translation

2021-05-23 Thread Henry Rich
This is most unexpected.  Your sentence has finished execution, and you are freeing a symbol table, either from a locale or from an explicit definition.  It encounters an invalid address. Our Jqt and JHS divisions will need to look into this. The other front-ends have to estimate the beginnin

Re: [Jprogramming] Recursion crash WAS: depth vector APL translation

2021-05-23 Thread Raul Miller
This does not crash for me under jconsole. This does crash for me under jqt. This also crashes for me under jhs. Here's the message I get in jconsole from jhs: /Users/rauldmiller/Applications/j903/bin/jhs.command: line 2: 36569 Segmentation fault: 11 "`dirname "$0"`/jconsole" ~addons/ide/jhs/c

[Jprogramming] Recursion crash WAS: depth vector APL translation

2021-05-23 Thread Henry Rich
I entered this into a new session: N=:0 dv =: {{    if. 20 < N=: N+1 do. throw. end.    echo y    ([echo) (];(>:x) dv [)/\ |.x;}.y }} t=:'.' ast=:t;(t;t);(t;(t;t);t);(t;(t;t;t);(t;t;t);t) 0 dv ast I got the result +-+-+---+-+---+---+-+ |.|+-+-+|+-+-+-+|.|+-+-+-+|+-+-+