Code Monkey home page Code Monkey logo

Comments (3)

rdaum avatar rdaum commented on June 4, 2024
2023-09-25T00:47:07.905280Z DEBUG ThreadId(05) task_run: crates/kernel/src/vm/vm_call.rs:245: Calling builtin: eval("this=#59;; return \"Written by Firesong (#337)@Weyrmount\";;") caller_perms: #2
2023-09-25T00:47:07.906286169Z 2023-09-25T00:47:07.906213Z DEBUG ThreadId(05) task_run: crates/kernel/src/vm/vm_unwind.rs:308: unwind_stack why=Return("Written by Firesong (#337)@Weyrmount") this=Objid(2) from="eval" line=2
2023-09-25T00:47:07.906320537Z 2023-09-25T00:47:07.906276Z DEBUG ThreadId(05) task_run: crates/kernel/src/vm/vm_unwind.rs:308: unwind_stack why=Return({1, "Written by Firesong (#337)@Weyrmount"}) this=Objid(-1) from="eval" line=0
2023-09-25T00:47:07.906369032Z 2023-09-25T00:47:07.906315Z DEBUG ThreadId(05) task_run: crates/kernel/src/vm/vm_unwind.rs:308: unwind_stack why=Return({1, "Written by Firesong (#337)@Weyrmount"}) this=Objid(38) from="eval" line=13
2023-09-25T00:47:07.906415894Z 2023-09-25T00:47:07.906378Z DEBUG ThreadId(05) task_run: crates/kernel/src/vm/vm_call.rs:245: Calling builtin: match("info = this:get_task_display();", "^\"%([^\\\"]%|\\.%)*\";$") caller_perms: #2
2023-09-25T00:47:07.906470551Z 2023-09-25T00:47:07.906427Z DEBUG ThreadId(05) task_run: crates/kernel/src/vm/vm_unwind.rs:308: unwind_stack why=Return({}) this=Objid(-1) from="match" line=0
2023-09-25T00:47:07.906566138Z 2023-09-25T00:47:07.906468Z DEBUG ThreadId(05) task_run: crates/kernel/src/vm/vm_unwind.rs:308: unwind_stack why=Return({":@sched*uler()   <-- A Feature Verb to diplay an alternate task list on the scheduler.", "", "Sample output:", "", "[SCHEDULER] Browse Mode", "", "The Scheduler is currently ticking away", "  Tasks waiting in queue : 31", "  Current system time    : Tue Apr  9 18:38:09 1996 HDT", "", "                                                                   Running in..", "-------------------------------------------------------------------------------", "Verb  : #280:DO_check_kids()                                          8 seconds", "Perms : Firesong (#337)                           Task ID : 1300241341", "Player: Firesong (#337)                           Interval: 60 seconds", "-------------------------------------------------------------------------------", "Done..", "", "Written by Firesong (#337)@Weyrmount"}) this=Objid(59) from="verb_documentation" line=17
2023-09-25T00:47:07.906584174Z thread 'tokio-runtime-worker' panicked at 'TODO: CatchLabel where we didn't expect it...', crates/kernel/src/vm/vm_unwind.rs:367:25
2023-09-25T00:47:07.906613251Z stack backtrace:

from moor.

rdaum avatar rdaum commented on June 4, 2024

Last executed code being the return @ line 17 from here:

 1:  ":verb_documentation([object,verbname]) => documentation at beginning of verb code, if any";
 2:  "default is the calling verb";
 3:  set_task_perms(caller_perms());
 4:  c = callers()[1];
 5:  {?object = c[4], ?vname = c[2]} = args;
 6:  try
 7:      code = verb_code(object, vname);
 8:  except error (ANY)
 9:      return error[2];
10:  endtry
11:  doc = {};
12:  for line in (code)
13:      if (match(line, "^\"%([^\\\"]%|\\.%)*\";$"))
14:          "... now that we're sure `line' is just a string, eval() is safe...";
15:          doc = {@doc, $no_one:eval("; return " + line)[2]};
16:      else
17:          return doc;
18:      endif
19:  endfor
20:  return doc;

Invoked as #59:verb_documentation(#99, "@sched")

from moor.

rdaum avatar rdaum commented on June 4, 2024

Can reproduce with this limited block code. Something to do with try blocks followed by a loop with a return inside. Without the 'return' inside the for, the crash doesn't happen.

 1:  try
 2:      player:tell(5);
 3:  except error (ANY)
 4:      return 1;
 5:  endtry
 6:  for x in ({1, 2, 3})
 7:      player:tell(x);
 8:      return 5;
 9:  endfor

from moor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.