|
From: | Louis de Forcrand |
Subject: | Re: [Bug-apl] ravel with axis - assertion failed |
Date: | Thu, 19 May 2016 23:16:58 +0200 |
Hi again, I believe you must first define a function, then define another function as the first (in an incorrect way, look at the example). The second fun works, as long as you don't try to edit it using ∇ (for example ∇G[⎕]∇). After a few edits GNU APL crashes: F←{(+⌿⍵)÷≢⍵} G←F G 3 4 5 4 ∇G[⎕]∇ ∇ [0] λ←F ⍵ [1] λ←(+⌿⍵)÷≢⍵ ∇ G 3 4 5 ============================================================================== Assertion failed: get_ValueType() == TV_FUN in Function: Token in file: ./Token.hh:63 Call stack: ---------------------------------------- -- Stack trace at ./Token.hh:63 ---------------------------------------- 0xa @@@@ 0xa @@@@ 0xa @@@@ 0xa @@@@ 0xa @@@@ 0xa @@@@ 0xa @@@@ 0xa @@@@ 0xa @@@@ ======================================== SI stack: Depth: 0 Exec: 0x7f9a585137b0 Safe ex: no Pmode: ◊ G 3 4 5 PC: 1 'G Stat: G 3 4 5 err_code: 0x0 thrown: at StateIndicator.cc:40 e_msg_1: 'No Error' e_msg_2: '' e_msg_3: '' ============================================================================== G 3 4 5 ============================================================================== Assertion failed: get_ValueType() == TV_FUN in Function: Token in file: ./Token.hh:63 Call stack: ---------------------------------------- -- Stack trace at ./Token.hh:63 ---------------------------------------- 0xa @@@@ 0xa @@@@ 0xa @@@@ 0xa @@@@ 0xa @@@@ 0xa @@@@ 0xa @@@@ 0xa @@@@ 0xa @@@@ ======================================== SI stack: Depth: 1 Exec: 0x7f9a58400200 Safe ex: no Pmode: ◊ G 3 4 5 PC: 1 'G Stat: G 3 4 5 err_code: 0x0 thrown: at StateIndicator.cc:40 e_msg_1: 'No Error' e_msg_2: '' e_msg_3: '' Depth: 0 Exec: 0x7f9a585137b0 Safe ex: no Pmode: ◊ G 3 4 5 PC: 1 'G Stat: G 3 4 5 err_code: 0xA01 thrown: at ./Token.hh:63 e_msg_1: 'Assertion failed' e_msg_2: '' e_msg_3: '' ============================================================================== ∇G[⎕]∇ ==================================================== SEGMENTATION FAULT ---------------------------------------- -- Stack trace at main.cc:63 ---------------------------------------- 0xa @@@@ 0xa @@@@ 0xa @@@@ 0xa @@@@ 0xa @@@@ 0xa @@@@ 0x0 @@@@ 0x0 @@@@ 0xa @@@@ ======================================== ==================================================== Goodbye. Louis
|
[Prev in Thread] | Current Thread | [Next in Thread] |