[Top][All Lists]

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

[Bug Compiler/26911] New: Segfault when using `continue` in try-catch

From: m.nabipoor at yahoo dot com
Subject: [Bug Compiler/26911] New: Segfault when using `continue` in try-catch
Date: Tue, 17 Nov 2020 21:00:21 +0000


            Bug ID: 26911
           Summary: Segfault when using `continue` in try-catch
           Product: poke
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: Compiler
          Assignee: unassigned at sourceware dot org
          Reporter: m.nabipoor at yahoo dot com
                CC: poke-devel at gnu dot org
  Target Milestone: ---


This program will crash the poke:

var funs = [
  lambda void:
      raise E_generic;
  lambda void:
      raise E_generic;

for (f in funs)
    try f();
    catch (Exception ex)
        printf ("FAIL %s\n", ex.msg);
    print ("PASS\n");


#0  0x00007f837dc642f6 in pvm_env_set_var (env=<optimized out>, back=<optimized
out>, over=<optimized out>, val=140202690075558) at ../../libpoke/pvm-env.c:112
#1  0x00007f837dc7b6ac in pvm_execute_or_initialize (jitter_initialize=96,
jitter_original_state=0x561a7eb033c0) at ../../libpoke/pvm.jitter:1120
#2  0x00007f837dc7ee89 in pvm_execute_executable_routine (er=0x561a7ed986a0,
s=0x561a7eb033c0) at ../../libpoke/pvm.jitter:534
#3  0x00007f837dc6f0d8 in pvm_execute_routine (r=0x7f837b89d960,
r@entry=0x561a7edbe000, s=0x561a7eb033c0) at ../../libpoke/pvm.jitter:717
#4  0x00007f837dc606da in pvm_run (apvm=0x561a7eb033c0,
program=program@entry=0x7f837b89f7b0, res=res@entry=0x7ffc45277c30) at
#5  0x00007f837dc1c775 in pkl_execute_file (compiler=0x561a7eafe7d0,
fname=<optimized out>, exit_status=exit_status@entry=0x7ffc45277c84) at
#6  0x00007f837dc1aaeb in pk_compile_file (pkc=<optimized out>,
filename=<optimized out>, exit_status=exit_status@entry=0x7ffc45277c84) at
#7  0x0000561a7e7587a5 in parse_args_2 (argc=argc@entry=3,
argv=argv@entry=0x7ffc45277db8) at ../../poke/poke.c:434
#8  0x0000561a7e758b23 in main (argc=3, argv=0x7ffc45277db8) at


You are receiving this mail because:
You are on the CC list for the bug.

reply via email to

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