Fascinating.

This also fails:

    18!:4@(13!:8) 9  NB. or 1...

but look:

    z =. 18!:4
    z@(13!:8) 9
|length error
|       z@(13!:8)9


Somehow, the 18!:4 lives on and gives trouble after the error, but only 
if it is directly in the stream and not through a name.  18!:4 is a 
queer beast: it has an effect outside the verb it runs in, so maybe 
that's part of what's happening.

If you execute it indirectly, there's no failure.

    ('18!:4 y' 4 : '". x' ])@(13!:8) 9
|length error
|       ('18!:4 y'4 :'". x'])@(13!:8)9

If you suppress its execution, there's no failure.

    18!:4^:0@(13!:8) 9
|length error
|       18!:4^:0@(13!:8)9

If you allow its execution, there's still no failure!!!

    18!:4^:1@(13!:8) 9
|length error
|       18!:4^:1@(13!:8)9

If you put a NOP before the 18!:4, there's no failure.

    18!:4@]@(13!:8) 9
|length error
|       18!:4@]@(13!:8)9



I think the problem is just a quirk of 18!:4.  Someday I'll learn the 
source enough to explain what's happening.

Henry Rich



On 11/28/2011 9:12 PM, bill lam wrote:
> invoke dyad cocurrent should already raise by segmentation fault.
>
> ''cocurrent'base'
>
> Втр, 29 Ноя 2011, Ian Clark писал(а):
>> Yes, it doesn't like it at all, does it?
>>
>> Here's what I see in "Terminal" on the Mac under Snow leopard:
>>
>> ---
>> /Applications/j64-701/bin/jhs.command: line 2:  7524 Segmentation
>> fault      "`dirname "$0"`/jconsole" ~addons/ide/jhs/core.ijs -js "
>> init_jhs_'' "
>> logout
>>
>> [Process completed]
>> ---
>>
>>     JVERSION
>> Engine: j701/2011-01-10/11:25 build: Feb  6 2011 16:16:29
>> Library: 7.01.050
>> Platform: Darwin 64
>> Installer: j701a_mac64.dmg
>>
>> InstallPath: /Applications/j64-701
>>
>>
>>
>> On Mon, Nov 28, 2011 at 3:26 PM, John Baker<[email protected]>  wrote:
>>> The following typo kills J.  The failure occurs in JHS and JGTK  in J 7
>>>
>>>   clear [ '' cocurrent 'base'
>>>
>>>
>>> The crash is very hard. It bring up the Visual Studio debugger on my win
>>> machine.
>>>
>>> --
>>> John D. Baker
>>> [email protected]
>>> ----------------------------------------------------------------------
>>> 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