bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] )IN crashes


From: Juergen Sauermann
Subject: Re: [Bug-apl] )IN crashes
Date: Sun, 15 Jun 2014 16:19:52 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hi David,

thanks for isolating the fault. I fixed it in SVN 327.

The fault was created by native functions being )OUT-ed and )IN-ed.
They are now handled properly, but the file created by )OUT is no longer
suitable as workspace exchange file when it contains native functions
(because native functions are a GNU APL extension that will not be understood
by other APL interpreters).

)OUT issues a warning for every native function being written.

/// Jürgen


On 06/14/2014 08:16 PM, David B. Lamkins wrote:
Here's the minimal test case to tickle the `)IN crashes` bug:

---- file: foo.apl ----
⍝!

'lib_file_io' ⎕fx 'pkg⍙fileio'
---- end file ----

In GNU APL:

       )load foo
loading )DUMP file /home/dlamkins/APL/workspaces/foo.apl...
WAS CLEAR WS
pkg⍙fileio
       )out foo
       )in foo
DOMAIN ERROR+


immediate_execution() caught APL error 0x50004 (DOMAIN ERROR)


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

----------------------------------------
-- Stack trace at main.cc:121
----------------------------------------
0x7f79b8733d65 __libc_start_main
0x435645  main
0x5294ba   Workspace::immediate_execution(bool)
0x5009ae    TestFiles::apl_error(char const*)
0x7f79ba404750
0x4859aa
========================================
====================================================


Process apl exited abnormally with code 3







reply via email to

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