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: Crash on ProcessDelayedDamages #16166

Merged
merged 1 commit into from
May 3, 2023
Merged

Conversation

Nefertumm
Copy link
Member

@Nefertumm Nefertumm commented May 3, 2023

Changes Proposed:

  • Check if the victim exists, if not, there is no point in processing the delayed dmg. This will prevent the server from crashing, as the victim must not be null.
  • Also added a check before dereferencing attacker, since it could be null.

Issues Addressed:

SOURCE:

Tests Performed:

  • None

How to Test the Changes:

Known Issues and TODO List:

  • [ ]
  • [ ]

How to Test AzerothCore PRs

When a PR is ready to be tested, it will be marked as [WAITING TO BE TESTED].

You can help by testing PRs and writing your feedback here on the PR's page on GitHub. Follow the instructions here:

http://www.azerothcore.org/wiki/How-to-test-a-PR

REMEMBER: when testing a PR that changes something generic (i.e. a part of code that handles more than one specific thing), the tester should not only check that the PR does its job (e.g. fixing spell XXX) but especially check that the PR does not cause any regression (i.e. introducing new bugs).

For example: if a PR fixes spell X by changing a part of code that handles spells X, Y, and Z, we should not only test X, but we should test Y and Z as well.

@yehonal-bot yehonal-bot added CORE Related to the core file-cpp Used to trigger the matrix build labels May 3, 2023
@Nefertumm
Copy link
Member Author

Nefertumm commented May 3, 2023

@WildBlizzard @Fireevil could you test it please?

@Nyeriah Nyeriah merged commit 3dbdea5 into azerothcore:master May 3, 2023
@WildBlizzard
Copy link

Thx for your help, i'll try it but the result may be slower (I now feel that such crashes are more likely to occur when everyone is playing instance.).

@Nyeriah
Copy link
Member

Nyeriah commented May 3, 2023

It shouldn’t crash anymore but if it does do let us know

@WildBlizzard
Copy link

It shouldn’t crash anymore but if it does do let us know

Sorry, service crash is still happening.
rev. is 3dbdea5
System: CentOS 7.9 2009
image

Gultask added a commit to Gultask/azerothcore-wotlk that referenced this pull request May 12, 2023
Nyeriah pushed a commit that referenced this pull request May 13, 2023
* Revert "fix(Core/Spells): Delayed Damage system (#16183)"

This reverts commit d282cce.

* Revert "fix: Crash on ProcessDelayedDamages (#16166)"

This reverts commit 3dbdea5.

* Revert "fix(core\player): Missing combat animation (#14199)"

This reverts commit a238e5e.
@Nefertumm Nefertumm deleted the crashfix9 branch July 13, 2023 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CORE Related to the core file-cpp Used to trigger the matrix build
Projects
None yet
5 participants