bug-apl
[Top][All Lists]
Advanced

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

Re: Segmentation fault when applying reduction over empty matrix


From: Dr . Jürgen Sauermann
Subject: Re: Segmentation fault when applying reduction over empty matrix
Date: Sat, 26 Mar 2022 11:57:21 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

Hi M,

thanks, fixed in SVN 1545.

Best Regards,
Jürgen


On 3/25/22 3:12 PM, m_misaki@autistici.org wrote:
Dear maintainers,

Segmentation fault is encountered when I am trying to perform a reduction over an empty matrix:
     +/0 0⍴1


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

Here is the stack trace outputted:
----------------------------------------
-- Stack trace at main.cc:95
----------------------------------------
0x7F41302363C1 __libc_start_main
0x7F4130236310
0x55D5B2512055   main
0x55D5B26B0655    Workspace::immediate_execution(bool)
0x55D5B257B6EE     Command::process_line()
0x55D5B257B7AD      Command::finish_context()
0x55D5B2588E38       Executable::execute_body() const
0x55D5B264721C        StateIndicator::run()
0x55D5B25C5033         Prefix::reduce_statements()
0x55D5B25C65E0          Prefix::reduce_MISC_F_B_()
0x55D5B2583D69           DerivedFunction::eval_B(Value_P) const
0x55D5B2558C9B            Bif_OPER1_REDUCE::eval_LB(Token&, Value_P) const
0x55D5B25566A1             Bif_REDUCE::reduce(Token&, Value_P, unsigned int)
0x55D5B26438C3              Bif_F12_PLUS::eval_identity_fun(Value_P, short) const
0x55D5B263CC16               ScalarFunction::eval_scalar_identity_fun(Value_P, short, Value_P)
0x55D5B2596EC9                IntCell::init_other(void*, Value&, char const*) const
0x7F413024B560
0x55D5B25196C6
========================================
====================================================

The same situation occurs on higher rank arrays like 0 0 0⍴1, 0 1 0⍴1, while not on 0 1⍴1, 0 0 1⍴1.
Similarly, ⌿ also leads to segmentation fault.

Thank you for your attention.

M Misaki



reply via email to

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