Jump to content

Vale the Violet Mote

Members
  • Posts

    31
  • Joined

  • Last visited

  • Days Won

    1
  • Donations

    15.00 GBP 

Bug Comments posted by Vale the Violet Mote

  1. Attempting to access that (*i) value produces a segmentation fault.

    ```

    Thread 6 "mangosd" received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0x7fffecd78700 (LWP 26823)]
    0x0000000000673932 in Reference<Loot, LootValidatorRef>::isValid (this=0x2000007465677261)
        at /home/mangos/zero/src/server/src/shared/Utilities/LinkedReference/Reference.h:137
    137                 return iRefTo != NULL;

    ```

  2. The issue is here:

    https://github.com/mangoszero/server/blob/master/src/modules/Bots/playerbot/strategy/actions/LootRollAction.cpp#L26

    Iterating over group->GetRolls() [which is Rolls in Group.h & RollId in Group.cpp]  causes the core to crash without error at some point during the loop (presumably the last item). try/catch blocks cannot catch the error.

    Specifically, the core crashes when the value of the iterated item (*i) is first referenced/used in the loop. Any code executed prior to this call will be fine. So the error is really on line 28, when (*i) is invoked for ->IsValid(). IsValid() is not the issue. Any code referencing (*i) will cause the crash.

    I lack both the knowledge of both C++ and the core to truly understand why this is happening.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use