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

NullRefException from shutdown in 2.0.16 #118

Closed
erikmav opened this issue Mar 8, 2024 · 11 comments
Closed

NullRefException from shutdown in 2.0.16 #118

erikmav opened this issue Mar 8, 2024 · 11 comments
Milestone

Comments

@erikmav
Copy link
Contributor

erikmav commented Mar 8, 2024

This commit introduced after 2.0.15 results in an NRE during some shutdown cases where m_lockingModel is null during Close/Dispose.

The simplistic fix is to add a check to FileAppender. The better fix is to enable nullability on FileAppender, RollingFileAppender, and their unit tests, and fix all nullability problems.

A fix is needed as a 2.0.17 package in addition to the proposed 3.0 package.

@erikmav
Copy link
Contributor Author

erikmav commented Mar 8, 2024

@FreeAndNil

@FreeAndNil
Copy link
Contributor

Thanks for reporting.
I will take a look.

@erikmav
Copy link
Contributor Author

erikmav commented Mar 8, 2024

I'm putting together a large PR with the nullability setting change. It's a lot to review so for faster release it's probably better to fix the dispose case as a quick fix then ship 2.0.17.

@FreeAndNil
Copy link
Contributor

@erikmav I agree. Please rebase/start your nullability PR on Feature/111-Dropping-support-for-older-runtimes.
Will you provide the quick fix or should I do?

@FreeAndNil FreeAndNil added this to the 2.0.17 milestone Mar 8, 2024
@erikmav
Copy link
Contributor Author

erikmav commented Mar 8, 2024

Can you add the quick fix? I'm heads-down on the large PR.

@erikmav
Copy link
Contributor Author

erikmav commented Mar 8, 2024

@FreeAndNil Small and large PRs posted.

@FreeAndNil
Copy link
Contributor

Will be fixed in 2.0.17 (2024-03-22).

@andreycha
Copy link

Hi @FreeAndNil any ETA when 2.0.17 stable version is going to be released? I need some changed from 2.0.16 but don't want to upgrade without this hotfix.

@FreeAndNil
Copy link
Contributor

@andreycha definitely next week.

@FreeAndNil
Copy link
Contributor

@andreycha
Copy link

@FreeAndNil thanks a lot!

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

No branches or pull requests

3 participants