[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Segfault when applying ⎕FIO[49] to an empty file
From: |
Ben Harris |
Subject: |
Segfault when applying ⎕FIO[49] to an empty file |
Date: |
Fri, 29 May 2020 16:34:07 +0100 (BST) |
User-agent: |
Alpine 2.11 (DEB 23 2013-08-11) |
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⍴⊂''.
--
Ben Harris
- Segfault when applying ⎕FIO[49] to an empty file,
Ben Harris <=