Subject: "Space between Heartbeats causes crash" Previous topic | Next topic
Printer-friendly copy Email this topic to a friend CF Website
Top General Discussions Bug Submissions Topic #23136
Show all folders

Urukhan (Guest)Sun 30-Dec-18 05:58 AM

  
#23136, "Space between Heartbeats causes crash"


          

Like this:

<1092/1427h 416m 727v indoor new civilized 1 AM none> You begin trying to entrap your opponent's weapon.
A wandering knight is gushing blood.

<1092/1427h 416m 727v indoor new civilized 1 AM none>
A wandering knight narrows his eyes and glares in your direction.
A wandering knight's heavenly wrath MASSACRES you!
You keep a wandering knight at bay with your polearm.
A wandering knight's piercing electricity EVISCERATES you!
A wandering knight tries to disarm you, but fails.
Your pierce DISMEMBERS a wandering knight!
Your pierce EVISCERATES a wandering knight!
Your pierce MASSACRES a wandering knight!
A wandering knight is writhing in agony.

<977/1427h 416m 727v indoor new civilized 1 AM none>
You entrap a long titanium spear and disarm a wandering knight!
You keep a wandering knight at bay with your polearm.
You parry a wandering knight's divine power.
Your pierce EVISCERATES a wandering knight!
Your pierce MASSACRES a wandering knight!
Your pierce DISMEMBERS a wandering knight!
A wandering knight is convulsing on the ground.

<977/1427h 416m 727v indoor new civilized 1 AM none>



I reproduced this one more time, by another disarm timed so that the mob will die when trying to pick up the weapon.

I think it's likely to be a segfault caused by trying to do some get weapon function after the mob is dead (do you deallocate memory after mob dies?). i.e.

1. Disarm
2. Mob attempts to pick up.
3. Space is checked, and fires.
4. At each hit, we always check for death.
5. Death returns true, mob dies and deallocates.
6. MobPointer->GetWeapon(TitaniumSpearID) called.
Segfault!

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

IshuliMon 22-Aug-22 04:45 PM
Member since 13th Feb 2017
2260 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#24420, "Fixed maybe."
In response to Reply #0


          

Added some sanity checks to prevent this.

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

Top General Discussions Bug Submissions Topic #23136 Previous topic | Next topic