You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fibers=[]counter=0loopdofibers << Fiber.newdoloopdoFiber.yieldendendfibers.eachdo |fiber|
fiber.resumefibers.delete(fiber)endcounter += 1puts"ends of loop ##{counter}"end
The previous snippet is causing a segmentation fault using the last compiled version of mrbuy (commit: c45ed46) on Linux (Ubuntu 16.04) and MacOS (10.11.6)
...
ends of loop #1310
ends of loop #1311
ends of loop #1312
ends of loop #1313
ends of loop #1314
ends of loop #1315
ends of loop #1316
ends of loop #1317
ends of loop #1318
ends of loop #1319
ends of loop #1320
ends of loop #1321
ends of loop #1322
ends of loop #1323
[1] 12903 segmentation fault (core dumped) bin/mruby ../failure.rb
but is working fine (without any segmentation fault) using mruby 1.2.0 (version tagged as 1.2.0)
It's also working disabling the garbage collector, with the following code:
GC.disablefibers=[]counter=0loopdofibers << Fiber.newdoloopdoFiber.yieldendendfibers.eachdo |fiber|
fiber.resumefibers.delete(fiber)endcounter += 1puts"ends of loop ##{counter}"end
I think is a garbage collector problem. I would like to know what is causing this, and if is possible to know how to fix it.
The text was updated successfully, but these errors were encountered:
The previous snippet is causing a segmentation fault using the last compiled version of mrbuy (commit: c45ed46) on Linux (Ubuntu 16.04) and MacOS (10.11.6)
but is working fine (without any segmentation fault) using mruby 1.2.0 (version tagged as 1.2.0)
It's also working disabling the garbage collector, with the following code:
I think is a garbage collector problem. I would like to know what is causing this, and if is possible to know how to fix it.
The text was updated successfully, but these errors were encountered: