bug-apl
[Top][All Lists]
Advanced

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

[Bug-apl] Bug in ⎕CR function. Writes: "T HIS IS A BUG"


From: Elias Mårtenson
Subject: [Bug-apl] Bug in ⎕CR function. Writes: "T HIS IS A BUG"
Date: Thu, 5 Dec 2013 14:12:32 +0800

The following code reproduces the problem:

4⎕CR (4 5⍴⍳10),(4 1⍴⊂"foo") ⍝ Crashes

If I change the 10 to 9, it works. This suggests that the problem is somewhere in the formatting code when the values are double digits:

4⎕CR (4 5⍴⍳9),(4 1⍴⊂"foo") ⍝ Works

The error message is below:

==============================================================================
Assertion failed: is_rectangular()
in Function:      add_frame
in file:          PrintBuffer.cc:483

Call stack:

----------------------------------------
-- Stack trace at PrintBuffer.cc:483
----------------------------------------
0x7fc029070bc5 __libc_start_main
0x432fb4  main
0x50506d   Workspace::immediate_execution(bool)
0x45852d    Command::process_line()
0x4571ad     Command::process_line(UCS_string&)
0x460bec      Executable::execute_body() const
0x4ca1f0       StateIndicator::run()
0x482d71        Prefix::reduce_statements()
0x480183         Prefix::reduce_A_F_B_()
0x4cac8d          StateIndicator::eval_AB(Token&, Token&, Token&)
0x4adfbb           Quad_CR::eval_AB(Value_P, Value_P)
0x4ade02            Quad_CR::do_CR(long, Value_P)
0x4adb98             Quad_CR::do_CR(long, Value_P)
0x4a32ef              PrintBuffer::PrintBuffer(Value const&, PrintContext const&)
0x485057               PointerCell::character_representation(PrintContext const&) const
0x4a2ae6                PrintBuffer::add_frame(PrintStyle, unsigned int, unsigned int)
0x43eae2                 do_Assert(char const*, char const*, char const*, int)
========================================

SI stack:

Depth:    20
Exec:     0xf03ab0
Pmode:    ◊  4⎕CR (4 5⍴⍳10),(4 1⍴⊂"foo") ⍝ Works
PC:       15 ENDL
Stat:     4⎕CR (4 5⍴⍳10),(4 1⍴⊂"foo") ⍝ Works
err_code: 0x0
thrown:   at StateIndicator.cc:38
e_msg_1:  'No Error'
e_msg_2:  ''
e_msg_3:  ''

Depth:    19
Exec:     0xf14750
Pmode:    ◊  4⎕CR (4 5⍴⍳10),(4 1⍴⊂"foo") ⍝ Crashes
PC:       15 ENDL
Stat:     4⎕CR (4 5⍴⍳10),(4 1⍴⊂"foo") ⍝ Crashes
err_code: 0x902
thrown:   at StateIndicator.cc:726
e_msg_1:  'THIS IS A BUG !!!'
e_msg_2:  '      4 ⎕CR(4 5⍴⍳10),(4 1⍴⊂'foo')'
e_msg_3:  '      ^    ^'

Depth:    18
Exec:     0xf13410
Pmode:    ◊  4⎕CR (4 5⍴⍳10),(4 1⍴⊂"foo")
PC:       15 ENDL
Stat:     4⎕CR (4 5⍴⍳10),(4 1⍴⊂"foo")
err_code: 0x902
thrown:   at StateIndicator.cc:726
e_msg_1:  'THIS IS A BUG !!!'
e_msg_2:  '      4 ⎕CR(4 5⍴⍳10),(4 1⍴⊂'foo')'
e_msg_3:  '      ^    ^'

Depth:    17
Exec:     0xf0c0c0
Pmode:    ◊  4⎕CR (4 5⍴1 2 3 4 5 6 7 8 9 10),(4 1⍴⊂"foo")
PC:       14 ENDL
Stat:     4⎕CR (4 5⍴1 2 3 4 5 6 7 8 9 10),(4 1⍴⊂"foo")
err_code: 0x902
thrown:   at StateIndicator.cc:726
e_msg_1:  'THIS IS A BUG !!!'
e_msg_2:  '      4 ⎕CR(4 5⍴1 2 3 4 5 6 7 8 9 10),(4 1⍴⊂'foo')'
e_msg_3:  '      ^    ^'

Depth:    16
Exec:     0xf09320
Pmode:    ◊  4⎕CR (4 5⍴1 2 3 4 5 6 7 8 9 10 11 12 13 14),(4 1⍴⊂"foo")
PC:       14 ENDL
Stat:     4⎕CR (4 5⍴1 2 3 4 5 6 7 8 9 10 11 12 13 14),(4 1⍴⊂"foo")
err_code: 0x902
thrown:   at StateIndicator.cc:726
e_msg_1:  'THIS IS A BUG !!!'
e_msg_2:  '      4 ⎕CR(4 5⍴1 2 3 4 5 6 7 8 9 10 11 12 13 14),(4 1⍴⊂'foo')'
e_msg_3:  '      ^    ^'

Depth:    15
Exec:     0xefb700
Pmode:    ◊  4⎕CR (4 5⍴⍳20),(4 1⍴⊂"foo")
PC:       15 ENDL
Stat:     4⎕CR (4 5⍴⍳20),(4 1⍴⊂"foo")
err_code: 0x902
thrown:   at StateIndicator.cc:726
e_msg_1:  'THIS IS A BUG !!!'
e_msg_2:  '      4 ⎕CR(4 5⍴⍳20),(4 1⍴⊂'foo')'
e_msg_3:  '      ^    ^'

Depth:    14
Exec:     0xeb4410
Pmode:    ◊  foo
PC:       1 ENDL
Stat:     foo
err_code: 0x30001
thrown:   at Symbol.cc:669
e_msg_1:  'VALUE ERROR'
e_msg_2:  '      foo'
e_msg_3:  '      ^'

Depth:    13
Exec:     0xee2f60
Pmode:    ◊  foo
PC:       1 ENDL
Stat:     foo
err_code: 0x30001
thrown:   at Symbol.cc:669
e_msg_1:  'VALUE ERROR'
e_msg_2:  '      foo'
e_msg_3:  '      ^'

Depth:    12
Exec:     0xf02800
Pmode:    ◊  foo
PC:       1 ENDL
Stat:     foo
err_code: 0x30001
thrown:   at Symbol.cc:669
e_msg_1:  'VALUE ERROR'
e_msg_2:  '      foo'
e_msg_3:  '      ^'

Depth:    11
Exec:     0xefa5a0
Pmode:    ◊  4⎕CR (4 5⍴⍳20),(4 1⍴⊂"foo")
PC:       15 ENDL
Stat:     4⎕CR (4 5⍴⍳20),(4 1⍴⊂"foo")
err_code: 0x902
thrown:   at StateIndicator.cc:726
e_msg_1:  'THIS IS A BUG !!!'
e_msg_2:  '      4 ⎕CR(4 5⍴⍳20),(4 1⍴⊂'foo')'
e_msg_3:  '      ^    ^'

Depth:    10
Exec:     0xeede40
Pmode:    ◊  2⎕CR (4 5⍴⍳20),(4 1⍴⊂"foo")
PC:       15 ENDL
Stat:     2⎕CR (4 5⍴⍳20),(4 1⍴⊂"foo")
err_code: 0x902
thrown:   at StateIndicator.cc:726
e_msg_1:  'THIS IS A BUG !!!'
e_msg_2:  '      2 ⎕CR(4 5⍴⍳20),(4 1⍴⊂'foo')'
e_msg_3:  '      ^    ^'

Depth:    9
Exec:     0xefaee0
Pmode:    ◊  3⎕CR (4 5⍴⍳20),(4 1⍴⊂"foo")
PC:       15 ENDL
Stat:     3⎕CR (4 5⍴⍳20),(4 1⍴⊂"foo")
err_code: 0x902
thrown:   at StateIndicator.cc:726
e_msg_1:  'THIS IS A BUG !!!'
e_msg_2:  '      3 ⎕CR(4 5⍴⍳20),(4 1⍴⊂'foo')'
e_msg_3:  '      ^    ^'

Depth:    8
Exec:     0xeed3e0
Pmode:    ◊  4⎕CR (4 5⍴⍳20),(4 1⍴⊂"foo")
PC:       15 ENDL
Stat:     4⎕CR (4 5⍴⍳20),(4 1⍴⊂"foo")
err_code: 0x902
thrown:   at StateIndicator.cc:726
e_msg_1:  'THIS IS A BUG !!!'
e_msg_2:  '      4 ⎕CR(4 5⍴⍳20),(4 1⍴⊂'foo')'
e_msg_3:  '      ^    ^'

Depth:    7
Exec:     0xef0ba0
Pmode:    ◊  4⎕CR (4 5⍴⍳20),(4 1⍴⊂"foo")
PC:       15 ENDL
Stat:     4⎕CR (4 5⍴⍳20),(4 1⍴⊂"foo")
err_code: 0x902
thrown:   at StateIndicator.cc:726
e_msg_1:  'THIS IS A BUG !!!'
e_msg_2:  '      4 ⎕CR(4 5⍴⍳20),(4 1⍴⊂'foo')'
e_msg_3:  '      ^    ^'

Depth:    6
Exec:     0xef0580
Pmode:    ◊  4⎕CR (4 5⍴⍳20),(4 1⍴⊂'foo')
PC:       15 ENDL
Stat:     4⎕CR (4 5⍴⍳20),(4 1⍴⊂'foo')
err_code: 0x902
thrown:   at StateIndicator.cc:726
e_msg_1:  'THIS IS A BUG !!!'
e_msg_2:  '      4 ⎕CR(4 5⍴⍳20),(4 1⍴⊂'foo')'
e_msg_3:  '      ^    ^'

Depth:    5
Exec:     0xee75a0
Pmode:    ◊  4⎕CR (4 5⍴⍳20),(4 1⍴⊂'foo')
PC:       15 ENDL
Stat:     4⎕CR (4 5⍴⍳20),(4 1⍴⊂'foo')
err_code: 0x902
thrown:   at StateIndicator.cc:726
e_msg_1:  'THIS IS A BUG !!!'
e_msg_2:  '      4 ⎕CR(4 5⍴⍳20),(4 1⍴⊂'foo')'
e_msg_3:  '      ^    ^'

Depth:    4
Exec:     0xee5a70
Pmode:    ◊  4⎕CR (4 5⍴⍳100),(4 1⍴⊂'foo')
PC:       15 ENDL
Stat:     4⎕CR (4 5⍴⍳100),(4 1⍴⊂'foo')
err_code: 0x902
thrown:   at StateIndicator.cc:726
e_msg_1:  'THIS IS A BUG !!!'
e_msg_2:  '      4 ⎕CR(4 5⍴⍳100),(4 1⍴⊂'foo')'
e_msg_3:  '      ^    ^'

Depth:    3
Exec:     0xeb8f30
Pmode:    ◊  4⎕CR (x[⍒x←4 5⍴⍳100;]),(4 1⍴⊂'foo')
PC:       22 ENDL
Stat:     4⎕CR (x[⍒x←4 5⍴⍳100;]),(4 1⍴⊂'foo')
err_code: 0x902
thrown:   at StateIndicator.cc:726
e_msg_1:  'THIS IS A BUG !!!'
e_msg_2:  '      4 ⎕CR(x[⍒x←4 5⍴⍳100;]),(4 1⍴⊂'foo')'
e_msg_3:  '      ^    ^'

Depth:    2
Exec:     0xee82c0
Pmode:    ◊  4⎕CR (x[⍒x←4 5⍴⍳100;]),(4 1⍴⊂'foo')
PC:       22 ENDL
Stat:     4⎕CR (x[⍒x←4 5⍴⍳100;]),(4 1⍴⊂'foo')
err_code: 0x902
thrown:   at StateIndicator.cc:726
e_msg_1:  'THIS IS A BUG !!!'
e_msg_2:  '      4 ⎕CR(x[⍒x←4 5⍴⍳100;]),(4 1⍴⊂'foo')'
e_msg_3:  '      ^    ^'

Depth:    1
Exec:     0xebcfd0
Pmode:    ◊  1¨2
PC:       3 ENDL
Stat:     1¨2
err_code: 0x50001
thrown:   at Function.cc:95
e_msg_1:  'VALENCE ERROR'
e_msg_2:  '      1¨2'
e_msg_3:  '      ^^'

Depth:    0
Exec:     0xee42b0
Pmode:    ◊  ¨2
PC:       3 RETURN_STATS
Stat:     ¨2
err_code: 0x20002
thrown:   at Prefix.cc:291
e_msg_1:  'SYNTAX ERROR'
e_msg_2:  '      ¨2'
e_msg_3:  '      ^'


==============================================================================
THIS IS A BUG !!!

reply via email to

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