Skip to content

Fix Native Crash on Windows. #67

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
Aug 5, 2020
Merged

Conversation

dellis1972
Copy link
Contributor

@dellis1972 dellis1972 commented Aug 5, 2020

We had a problem in Xamarin.Android where libzip
would crash on our test machine. This turned out
to be a bung in libzip itself. nih-at/libzip#202

There was a missing NULL check in zip_stat_index.
This PR adds a patch to allow us to patch this problem
in the latest release of libzip so that we can
bump to the latest version in Xamrain.Android.

We had a problem in Xamarin.Android where libzip
would crash on our test machine. This turned out
to be a bung in libzip itself.

	nih-at/libzip#202

There was a missing `NULL` check in `zip_stat_index`.
This PR adds a patch to allow us to patch this problem
in the latest release of `libzip` so that we can
bump to the latest version in Xamrain.Android.
@dellis1972 dellis1972 requested a review from grendello August 5, 2020 13:42
@dellis1972
Copy link
Contributor Author

Tested the output on Windows both 32 bit and 64 bit and its working.

@grendello grendello merged commit b332af0 into dotnet:master Aug 5, 2020
@dellis1972 dellis1972 deleted the windowscrash branch August 5, 2020 14:16
@dellis1972 dellis1972 mentioned this pull request Aug 19, 2020
dellis1972 added a commit to dellis1972/LibZipSharp that referenced this pull request Aug 19, 2020
Commit 755a42a reverted the system which built the native libzip.dll in Windows.
This was because we suspected that the change from using mingw was causing a runtime
crash. However this turned out not to be the case (see dotnet#67).

So this PR adds back in the code which builds the windows dll on windows.

It also updates the libzip-changes.patch so that it would apply on windows via `git apply`.
This patch now works on all platforms.

Also testing out a new release package system. Rather than just publishing to stable on nuget,
we will first publish an `x.x.x-rc` release candidate. This will allow us to do a test PR on
xamarin.android without breaking the current stable package. We had a situation over
the last few months where the "stable" package actually had a crash on windows.
This is not ideal for people consuming the nuget.

So from now on we will publish an `-rc` do a bump in xamarin.android and if that
passes, then we can publish a stable release.
grendello pushed a commit that referenced this pull request Aug 19, 2020
Commit 755a42a reverted the system which built the native libzip.dll in Windows.
This was because we suspected that the change from using mingw was causing a runtime
crash. However this turned out not to be the case (see #67).

So this PR adds back in the code which builds the windows dll on windows.

It also updates the libzip-changes.patch so that it would apply on windows via `git apply`.
This patch now works on all platforms.

Also testing out a new release package system. Rather than just publishing to stable on nuget,
we will first publish an `x.x.x-rc` release candidate. This will allow us to do a test PR on
xamarin.android without breaking the current stable package. We had a situation over
the last few months where the "stable" package actually had a crash on windows.
This is not ideal for people consuming the nuget.

So from now on we will publish an `-rc` do a bump in xamarin.android and if that
passes, then we can publish a stable release.
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