I decided I should try taking a look at this... but I'm running into
numerous errors trying to compile j9.4.3 (or, for that matter, j902).

So... I guess I won't try to look into this. But I figure I should
give people a heads up that at least one machine has issues with
compiling J.

-- 
Raul

On Thu, Dec 28, 2023 at 5:40 AM bill lam <bbill....@gmail.com> wrote:
>
> I got a similar result. I believe this bug is related to the boolean
> argument.
> coercing the array to integer can work correctly.
>
> p =. 00 + 8 2 $ 0 0 1 1 1 0 0 0 0 1 1 0 1 0 0 0
>
> On Thu, Dec 28, 2023 at 6:02 PM Marcin Żołek <
> marcin.zo...@students.mimuw.edu.pl> wrote:
>
> > Hello,
> > I was trying to run my code on j9.4 Linux, j9.4 MacOS, j9.5 MacOS and it
> > crashes.
> >
> > In terminal
> > /Applications/j9.5/bin/jconsole bug.ijs < input.txt
> > JE has crashed, likely due to an internal bug.  Please report the code
> > which caused the crash, as well as the following printout, to the J
> > programming forum.
> > Could not generate stack trace: no debug info in Mach-O executable (-1)
> > ...
> >
> > -----------------------------------------------------------------------------
> > 5 3 1 1[1]    6692 abort      /Applications/j9.5/bin/jconsole bug.ijs <
> > input.txt
> >
> > bug.ijs:
> > ":@((#/.~ +/@, ~.)@/:~)@(".;._2)&.stdin''
> >
> > input.txt:
> > 0 0
> > 1 1
> > 1 0
> > 0 0
> > 0 1
> > 1 0
> > 1 0
> > 0 0
> > I figured out that the problem is with sorting:
> >     p =. 8 2 $ 0 0 1 1 1 0 0 0 0 1 1 0 1 0 0 0
> >     p
> > 0 0
> > 1 1
> > 1 0
> > 0 0
> > 0 1
> > 1 0
> > 1 0
> > 0 0
> >     /:~ p NB. returns various and wrong results
> > 0 0
> > 0 0
> > 0 0
> > 1 0
> > 1 0
> > 1 0
> > 1 1
> > 1 1
> >
> > or
> >
> > 0 0
> > 0 0
> > 0 0
> > 1 0
> > 1 0
> > 1 0
> > 0 0
> > 0 0
> >     ~.@:/:~ p NB. crashes jqt
> >
> > Best regards,
> > Marcin
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to