Skip to content

Workaround possible TH environment overflow running wine #1517

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

Merged
merged 1 commit into from
Jun 16, 2022

Conversation

hamishmack
Copy link
Collaborator

We still do not understand the cause, but wine seems to fail to start (we get a segfault) when building cardano-wallet-cli test unit. It seems to be an overflow somewhere in bash or very early in the wine startup code (since nothing is logged even with WINEDEBUG=+all).

This changes unsets the large pkgsHostTargetAsString environment variable before wine is started (after that variable has been used). This seems to be enough to avoid the issue though it is worrying that it is not clear why.

We still do not understand the cause, but wine seems to fail to start (we get a segfault) when building `cardano-wallet-cli` test `unit`.  It seems to be an overflow somewhere in bash or very early in the `wine` startup code (since nothing is logged even with `WINEDEBUG=+all`).

This changes `unsets` the large `pkgsHostTargetAsString` environment variable before wine is started (after that variable has been used).  This seems to be enough to avoid the issue though it is worrying that it is not clear why.
@hamishmack
Copy link
Collaborator Author

bors try

iohk-bors bot added a commit that referenced this pull request Jun 16, 2022
@hamishmack hamishmack requested a review from angerman June 16, 2022 08:22
Copy link
Collaborator

@angerman angerman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷‍♂️

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 16, 2022

@hamishmack hamishmack merged commit 5a310b0 into master Jun 16, 2022
@iohk-bors iohk-bors bot deleted the hkm/th-wine-overflow branch June 16, 2022 08:58
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.

2 participants