https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91185

--- Comment #1 from Dávid Bolvanský <david.bolvansky at gmail dot com> ---
(gdb) r bw
Starting program: /home/xbolva00/IFJ16/src/ifj16c bw

Program received signal SIGSEGV, Segmentation fault.
0x000055555555eac5 in eval (op=0x555555768b80) at interpret.c:37
37              tVar *a = op->offset + frame_stack.top->frame->local;
(gdb) disassemble
Dump of assembler code for function eval:
   0x000055555555eab9 <+0>:     test   %rdi,%rdi
   0x000055555555eabc <+3>:     je     0x55555555eaf4 <eval+59>
   0x000055555555eabe <+5>:     mov    0x205d8b(%rip),%rax        #
0x555555764850 <frame_stack>
=> 0x000055555555eac5 <+12>:    mov    (%rax),%rsi
   0x000055555555eac8 <+15>:    mov    0x10(%rdi),%edx
   0x000055555555eacb <+18>:    movslq %edx,%rax

Reply via email to