bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] another dfun bug


From: Juergen Sauermann
Subject: Re: [Bug-apl] another dfun bug
Date: Tue, 07 Jun 2016 15:01:20 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi,

thanks, fixed in SVN 736.

Both assertions were caused by the same bug (introduced recently)

/// Jürgen


On 06/05/2016 09:35 AM, Christian Robert wrote:
something similar,


      )reset
      ∇z←Push func;f2c;fh
[1]  f2c←{(⎕ucs 10),⍨¨{(∼⌽∧\⌽⍵=' ')/⍵}¨{⊂[1+⎕io]⎕cr ⍵} ⍵}    ⍝ Internal macro to transform a function to text
[2]  fh←'w' ⎕fio[3] 18 ⎕cr {(∼⌽∧\⌽⍵=' ')/⍵}func              ⍝ Open a file, no trailing blanks, honor utf-8 names
[3]  ⊣{⍵ ⎕fio[43] fh} ¨ f2c func                             ⍝ Write each line, no trailing blanks, LF terminated
[4]  ⊣⎕fio[4] fh                                             ⍝ Close the file
[5]  z←func                                                  ⍝ Just return the function name
[6] ∇
items_allocated = 128
items[33] = USER-F2 λ1←'f2c←ENDL'funcUSER-F2 λ2⎕CRVALUE3«18»]VALUE3«3»[⎕FIOVALUE3«w»←'fh←ENDL'func'f2c¨USER-F2 λ3⊣ENDL'fh]VALUE3«4»[⎕FIO⊣ENDL'func←'z←ENDL
idx = 33

==============================================================================
Assertion failed: 0 && "Bad index"
in Function:      operator[]
in file:          Simple_string.hh:150

Call stack:

----------------------------------------
-- Stack trace at Simple_string.hh:150
----------------------------------------
0x7ff43122e580 __libc_start_main
0x4443e5  main
0x57eaad   Workspace::immediate_execution(bool)
0x48d6c2    Command::process_line()
0x4baeec     Nabla::edit_function(UCS_string const&)
0x4ba8d2      Nabla::edit()
0x567cbf       UserFunction::fix(UCS_string const&, int&, bool, char const*, UTF8_string const&, bool)
0x567ab6        UserFunction::UserFunction(UCS_string, bool, char const*, UTF8_string const&, bool)
0x56716c         UserFunction::parse_body(char const*, bool)
0x56482b          UserFunction::adjust_line_starts()
0x455b28           do_Assert(char const*, char const*, char const*, int)
========================================

SI stack:


==============================================================================
*** immediate_execution() caught other exception ***


On 2016-06-02 01:51, Xiao-Yong Jin wrote:
Hello, perhaps it’s another dfun bug.

      )clear
CLEAR WS
      ∇z←x f y
[1] x{⍺ g ⍵}y
[2] →0
[3] ∇
items_allocated = 16
items[7] = 'yUSER-F2 λ1'xENDLVALUE3«0»→ENDL
idx = 7

==============================================================================
Assertion failed: 0 && "Bad index"
in Function:      operator[]
in file:          Simple_string.hh:150

Call stack:

----------------------------------------
-- Stack trace at Simple_string.hh:150
----------------------------------------
========================================

SI stack:


==============================================================================
*** immediate_execution() caught other exception ***







reply via email to

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