Issue #17408 has been updated by marcandre (Marc-Andre Lafortune).


Good catch.

@ioquatix confirms it should be `nil` and is looking into it.

I'll update the doc.

----------------------------------------
Bug #17408: Fiber.backtrace returns [] when unavailable, unlike Thread
https://bugs.ruby-lang.org/issues/17408#change-89407

* Author: zverok (Victor Shepelev)
* Status: Open
* Priority: Normal
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
```ruby
t = Thread.new{}
p t.backtrace
# => nil

f = Fiber.new{}
p f.backtrace
# => []
```

It seems inconsistent, is this intentional?

Ping @ioquatix



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>