|
From: | Dr . Jürgen Sauermann |
Subject: | Re: Format by example |
Date: | Sat, 8 Aug 2020 20:34:16 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 |
I still see a segfault.
wheagy@bigflight:~/apl_svn/apl/trunk$ akt src/apl
______ _ __ __ __ ___ ____ __
/ ____// | / // / / / / | / __ \ / /
/ / __ / |/ // / / / / /| | / /_/ // /
/ /_/ // /| // /_/ / / ___ | / ____// /___
\____//_/ |_/ \____/ /_/ |_|/_/ /_____/
Welcome to GNU APL version 1.8 / 1334M
Copyright (C) 2008-2020 Dr. Jürgen Sauermann
Banner by FIGlet: www.figlet.org
This program comes with ABSOLUTELY NO WARRANTY;
for details run: src/apl --gpl.
This program is free software, and you are welcome to redistribute it
according to the GNU Public License (GPL) version 3 or later.
'This is a description 55,550.' ⍕ 5 5⍴1
==============================================================================
Assertion failed: row.size() == format.size()
in Function: format_by_example
in file: Bif_F12_FORMAT.cc:289
Call stack:
----------------------------------------
-- Stack trace at Bif_F12_FORMAT.cc:289
----------------------------------------
0x7FFA3BF15CCA __libc_start_main
0x556DAC21C045 main
0x556DAC395175 Workspace::immediate_execution(bool)
0x556DAC27B4CB Command::process_line()
0x556DAC27C04A Command::do_APL_expression(UCS_string&)
0x556DAC27B56F Command::finish_context()
0x556DAC284878 Executable::execute_body() const
0x556DAC338121 StateIndicator::run()
0x556DAC2B75EE Prefix::reduce_statements()
0x556DAC2B0A98 Prefix::reduce_A_F_B_()
0x556DAC244E00 Bif_F12_FORMAT::eval_AB(Value_P, Value_P)
0x556DAC244CA9 Bif_F12_FORMAT::format_by_example(Value_P, Value_P)
0x556DAC2373C9 do_Assert(char const*, char const*, char const*, int)
========================================
SI stack:
Depth: 0
Exec: 0x556dacb32980
Safe exec: 0
Pmode: ◊ 'This is a description 55,550.' ⍕ 5 5⍴1
PC: 5 (7) ENDL
Stat: 'This is a description 55,550.' ⍕ 5 5⍴1
err_code: 0x0
==============================================================================
===================================================
SEGMENTATION FAULT
----------------------------------------
-- Stack trace at main.cc:88
----------------------------------------
0x7FFA3BF15CCA __libc_start_main
0x556DAC21C045 main
0x556DAC395175 Workspace::immediate_execution(bool)
0x556DAC27B4CB Command::process_line()
0x556DAC27C04A Command::do_APL_expression(UCS_string&)
0x556DAC27B56F Command::finish_context()
0x556DAC284878 Executable::execute_body() const
0x556DAC338121 StateIndicator::run()
0x556DAC2B75EE Prefix::reduce_statements()
0x556DAC2B3C93 Prefix::reduce_END_B__()
0x556DAC338A55 StateIndicator::statement_result(Token&, bool)
0x556DAC38E9BD Value::print(std::ostream&) const
0x556DAC2D4F6E PrintBuffer::PrintBuffer(Value const&, PrintContext const&, std::ostream*)
munmap_chunk(): invalid pointer
wheagy@bigflight:~/apl_svn/apl/trunk$
On 8/8/20 8:59 AM, Dr. Jürgen Sauermann wrote:
Hi Bill,
I believe I have fixed this, *SVN 1334*.
However, I would try to avoid "format by example" where possible. It looks simple at
first glance, but seems to allow somewhat quirky format strings (e.g. numbers with
multiple decimal points) whose proper implementation would require far more effort
than the current implementation.
Best Regards,
Jürgen
On 8/6/20 10:09 PM, Bill Daly wrote:
I was not really sure of how format by example worked:
'This is a description 55,550.' ⍕ t1[1;1]
==============================================================================
Assertion failed: row.size() == format.size()
in Function: format_by_example
in file: Bif_F12_FORMAT.cc:289
Call stack:
----------------------------------------
-- Stack trace at Bif_F12_FORMAT.cc:289
----------------------------------------
0x7FA80A0F4B97 __libc_start_main
0x5574C5E7DFE5 main
0x5574C6006085 Workspace::immediate_execution(bool)
0x5574C5EDEAB8 Command::process_line()
0x5574C5EDF6F8 Command::do_APL_expression(UCS_string&)
0x5574C5EDEBCD Command::finish_context()
0x5574C5EE7C37 Executable::execute_body() const
0x5574C5FA4734 StateIndicator::run()
0x5574C5F1E470 Prefix::reduce_statements()
0x5574C5F16A52 Prefix::reduce_A_F_B_()
0x5574C5EA29E3 Bif_F12_FORMAT::eval_AB(Value_P, Value_P)
0x5574C5EA2701 Bif_F12_FORMAT::format_by_example(Value_P, Value_P)
0x5574C5E93EE7 do_Assert(char const*, char const*, char const*, int)
========================================
SI stack:
Depth: 0
Exec: 0x5574c8288a90
Safe exec: 0
Pmode: ◊ 'This is a description 55,550.' ⍕ t1[1;1]
PC: 8 (10) ENDL
Stat: 'This is a description 55,550.' ⍕ t1[1;1]
err_code: 0x0
==============================================================================
===================================================
SEGMENTATION FAULT
----------------------------------------
-- Stack trace at main.cc:88
----------------------------------------
0x7FA80AE278A0
0x5574C5E8512B
========================================
====================================================
Process apl exited abnormally with code 3
w
[Prev in Thread] | Current Thread | [Next in Thread] |