bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] WS FULL problem


From: Juergen Sauermann
Subject: Re: [Bug-apl] WS FULL problem
Date: Fri, 17 Jun 2016 14:47:00 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi Blake,

if I start apl directly then it seems like GNU APL behaves properly (I tried your
examples and always got a WS FULL).

I could imagine, though, that your shell (resp. script) is killing APL when APL
tries to allocate too much memory (and APL can then do little about it).

It would be interesting by which signal APL is killed (try ulimit -c unlimited (e.g using bash)
to get a core file and then look at the core with gdb). I could then install a signal handler (if
the signal is catch'able) to fix this.

The question right now is if apl is killing itself (e.g. by an uncaught exception) or is being
killed from its environment.

I would also be good to check (ulimit -a inside the script) if there are any active limits related
the memory size.

/// Jürgen



On 06/16/2016 08:59 PM, Blake McBride wrote:
Sometimes, when you have, essentially, a WS full situation, GNU APL just dies instead of giving a WS FULL error.

      x←⍳100000000
      x[10000]←445
      y←x
/home/blake/bin/apl: line 3:  7341 Done                    akt
      7342 Killed                  | /usr/local/bin/apl "$@"
address@hidden ~ $ apl
      x←⍳100000000
/home/blake/bin/apl: line 3:  7964 Done                    akt
      7965 Killed                  | /usr/local/bin/apl "$@"
address@hidden ~ $ apl
      x←⍳10000000
      ⍴x
10000000
      y←x
      x←⍳10000000
      x←⍳100000000
WS FULL
      x←⍳100000000
      ^ ^
      )off

address@hidden ~ $ apl
      x←⍳100000000
/home/blake/bin/apl: line 3:  7992 Done                    akt
      7993 Killed                  | /usr/local/bin/apl "$@"



reply via email to

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