bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Crash when refining an incorrect function


From: Elias Mårtenson
Subject: Re: [Bug-apl] Crash when refining an incorrect function
Date: Sun, 1 Dec 2013 14:15:59 +0800

Oops, if the previous message doesn't seem to make any sense, it's because I pasted the wrong version of the function.

The first function (the one that is supposed to give an error) should look like this:

∇ r←x z y
foo
r←x+y

The stack trace from GDB from the core file:

#0  0x00007ff5856cdf77 in __GI_raise (address@hidden)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ff5856d15e8 in __GI_abort () at abort.c:90
#2  0x00007ff585cd56e5 in __gnu_cxx::__verbose_terminate_handler() ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ff585cd3856 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ff585cd3883 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ff585cd435f in __cxa_pure_virtual () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00000000004c91c1 in StateIndicator::function_name (address@hidden)
    at StateIndicator.cc:221
#7  0x00000000005074ac in Workspace::is_called (this=<optimised out>, funname=...)
    at Workspace.cc:368
#8  0x000000000047422a in Nabla::open_function (this=0x7fff48c04460) at Nabla.cc:433
#9  0x0000000000474442 in Nabla::open_new_function (this=0x7fff48c04460) at Nabla.cc:498
#10 0x0000000000474fbc in Nabla::start (address@hidden) at Nabla.cc:170
#11 0x00000000004757c4 in Nabla::edit (address@hidden) at Nabla.cc:69
#12 0x0000000000475d98 in Nabla::edit_function (cmd=...) at Nabla.cc:39
#13 0x0000000000457a34 in Command::process_line (line=...) at Command.cc:100
#14 0x0000000000458e3d in Command::process_line () at Command.cc:60
#15 0x00000000005066d5 in Workspace::immediate_execution (address@hidden, 
    exit_on_error=false) at Workspace.cc:140
#16 0x0000000000433164 in main (argc=1, _argv=<optimised out>) at main.cc:1042

Regards,
Elias


On 1 December 2013 14:12, Elias Mårtenson <address@hidden> wrote:
To reproduce:

First, enter a function definition that will cause an error when called:

∇ r←x z y
r←x+y

Then, call the function:

      10 z 20
VALUE ERROR
z[1]  foo
      ^

Finally, attempt to define a correct version of the function, and the session will crash as soon as the first line is entered:

      ∇ r←x z y
pure virtual method called
terminate called without an active exception
Aborted (core dumped)

Regards,
Elias


reply via email to

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