Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a potential crash when UsageError is thrown #18

Merged
merged 1 commit into from
Jan 4, 2016

Conversation

neonichu
Copy link
Contributor

@neonichu neonichu commented Jan 3, 2016

See neonichu/Azkaban#4

I'm not 100% sure why it is happening, but assuming that the string interpolation of ErrorType does something special, as it does not officially implement StringLiteralConvertible. According to the BT, description will still be called on UsageError, but the ivars suffer some memory corruption, leading to the crash.

kylef added a commit that referenced this pull request Jan 4, 2016
Fix a potential crash when `UsageError` is thrown
@kylef kylef merged commit e94be40 into kylef:master Jan 4, 2016
@neonichu neonichu deleted the fix-usage-error-crash branch January 4, 2016 09:09
@ahti
Copy link

ahti commented Jan 17, 2016

Could you tag a new version containing this fix? I just ran into this on Linux.

@czechboy0 czechboy0 mentioned this pull request Feb 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants