Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

asserts causing a SIGABRT? #17

Open
abhiaiyer91 opened this issue Jan 4, 2017 · 1 comment
Open

asserts causing a SIGABRT? #17

abhiaiyer91 opened this issue Jan 4, 2017 · 1 comment

Comments

@abhiaiyer91
Copy link

abhiaiyer91 commented Jan 4, 2017

Over the past few weeks, since the introduction to Promise.await to our codebase, we have been getting strange SIGABRT (exit code 6) in both production and local environments. After looking at the code I see there are asserts:

https://github.com/meteor/promise/blob/master/promise_server.js#L47

If these asserts fail, I believe this would be the cause of our exit? Do you have any information or clues I should look into?

The log lines we have before the exit are running code that uses async/await or Promise.await

@abhiaiyer91 abhiaiyer91 changed the title asserts causing a SIGABORT? asserts causing a SIGABRT? Jan 4, 2017
@benjamn
Copy link
Contributor

benjamn commented Jan 4, 2017

Are you sure require("meteor-promise").makeCompatible(Promise, require("fibers")) is getting called early enough? If it's a Meteor app, that should happen automatically, but I guess it's possible you have multiple Promise constructors floating around.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants