bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] Crash when computing inner product


From: Elias Mårtenson
Subject: [Bug-apl] Crash when computing inner product
Date: Thu, 10 Apr 2014 16:29:54 +0800

In trying to fully understand how the . (period) operator works, typed the following command and promptly crashed GNU APL:

(10×2 3⍴⍳6){(⍺+⍵)⊣⎕←'LEFT: ⍺=',(⍕⍺),', ⍵=',(⍕⍵)}.{(⍺×⍵)⊣⎕←'RIGHT: ⍺=',(⍕⍺),', ⍵=',(⍕⍵)}(1000×2 3⍴⍳6)

The output is:

LENGTH ERROR
λ1[1]  λ←(⍺×⍵)⊣⎕←'RIGHT: ⍺=',(⍕⍺),', ⍵=',(⍕⍵)
          ^    ^


====================================================
SEGMENTATION FAULT

----------------------------------------
-- Stack trace at main.cc:128
----------------------------------------
0x7f26884f1b05 __libc_start_main
0x435255  main
0x52153d   Workspace::immediate_execution(bool)
0x46262d    Command::process_line()
0x461557     Command::process_line(UCS_string&)
0x44dea0      Bif_OPER2_PRODUCT::eoc_inner_product(Token&, EOC_arg&)
0x44bda2       Bif_OPER2_PRODUCT::finish_inner_product(EOC_arg&)
0x7f268a549880        
0x47931a         
========================================
====================================================

Regards,
Elias

reply via email to

[Prev in Thread] Current Thread [Next in Thread]