# A fiber issue with \`autoload\`: \`fiber called across stack rewinding barrier (FiberError)\`

**URL:** <https://www.ruby-forum.com/t/a-fiber-issue-with-autoload-fiber-called-across-stack-rewinding-barrier-fibererror/233202>\
**Category:** Ruby\
**Created:** [November 24, 2014, 10:22am UTC](https://www.ruby-forum.com/t/a-fiber-issue-with-autoload-fiber-called-across-stack-rewinding-barrier-fibererror/233202 "2014-11-24T10:22:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [November 24, 2014, 10:22am UTC](https://www.ruby-forum.com/t/a-fiber-issue-with-autoload-fiber-called-across-stack-rewinding-barrier-fibererror/233202/1 "2014-11-24T10:22:52Z")

</div>

Hi folks,

We are using fiber with eventmachine (em-synchrony) in our production  
env for quite a long time, and it works very well. We use the outdated  
ruby 1.9.3 and ActiveRecord 3.x for over 2 years. We are migrating those  
two big parts to the latest versions.

When trying to upgrade ruby to the latest, we got an exception `fiber called across stack rewinding barrier (FiberError)` in 2.0+, but not in  
1.9.3. Can you guys help us to figure out this problem?

Sample codes are in this repo:

> **[GitHub - qqshfox/test\_fiber](https://github.com/qqshfox/test_fiber)**
>
> Contribute to qqshfox/test\_fiber development by creating an account on GitHub.

Any help would be appreciated!

Thanks,  
Hanfei
