bug-apl
[Top][All Lists]
Advanced

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

Re: Segfault when applying ⎕FIO[49] to an empty file


From: Dr . Jürgen Sauermann
Subject: Re: Segfault when applying ⎕FIO[49] to an empty file
Date: Sat, 30 May 2020 11:19:05 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

Hi Ben,

thanks, fixed in SVN 1288.

Best Regards,
Jürgen


On 5/29/20 5:34 PM, Ben Harris wrote:
When using Subversion revision 1287, loading an empty file with ⎕FIO[49] gives a segmentation fault.  Here, /tmp/empty is an empty file:

-rw-r--r-- 1 bjh21 bjh21 0 May 29 16:13 /tmp/empty

This happens when I try to load it:

      ⎕FIO[49]'/tmp/empty'


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

----------------------------------------
-- Stack trace at main.cc:88
----------------------------------------
0xF786BE81 __libc_start_main
0x56681638  main
0x5684D717   Workspace::immediate_execution(bool)
0x566ED05E    Command::process_line()
0x566EDC09     Command::do_APL_expression(UCS_string&)
0x566ED14E      Command::finish_context()
0x566F6B96       Executable::execute_body() const
0x567DD341        StateIndicator::run()
0x56734689         Prefix::reduce_statements()
0x5672EC8D          Prefix::reduce_MISC_F_C_B()
0x56790911           Quad_FIO::eval_XB(Value_P, Value_P)
0xF7F4E090            __kernel_sigreturn
0x56689A36
========================================
====================================================

Goodbye.
Session duration: 8.58066 seconds

I would expect this to return an empty list of strings, something like 0⍴⊂''.



reply via email to

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