Skip to content

sgame crash after game decided #1939

@necessarily-equal

Description

@necessarily-equal

Spotted on experimental. A dretch took some pulse rifle damage, and it seems it did so after the timelimit.

Die: 5 1 MOD_LEVEL3_CLAW: [bot] Muxika killed [bot] Malo                                                                                                                
Die: 2 4 MOD_PRIFLE 3 2: [bot] Alistair killed [bot] Nolwen; [bot] Baudry assisted                                                                                      
Die: 3 6 MOD_PAINSAW 2 2: [bot] Baudry killed [bot] Itsaso; [bot] Alistair assisted                                                                                     
Broadcast: Empty teams skip map time exceeded.                                                                                                                          
                                                                                                                                                                        
Exit: Timelimit hit.                                                                
score: 157  ping: 69  client: 1 [bot] Malo                                                                                                                              
score: 150  ping: 64  client: 3 [bot] Baudry                                                                                                                            score: 140  ping: 91  client: 2 [bot] Alistair                                                                                                                          
score: 102  ping: 67  client: 5 [bot] Muxika                                                                                                                            
score: 87  ping: 51  client: 4 [bot] Nolwen                                                                                                                             
score: 78  ping: 76  client: 6 [bot] Itsaso                                                                                                                             
Die: 2 4 MOD_PRIFLE: [bot] Alistair killed [bot] Nolwen                                                                                                                 
]

Thread 38 "daemonded" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7ffff32dc640 (LWP 67)]                                                                                                                           0x000000000000007b in ?? ()

Thread 38 (Thread 0x7ffff32dc640 (LWP 67) "daemonded"):
#0  0x000000000000007b in ?? ()
#1  0x00007ffff5877ade in Entity::SendMessage (data=0x7ffff32db150, msg=EntityMessage::Die, this=<optimized out>) at /build/source/src/sgame/backend/CBSEBackend.cpp:27
#2  Entity::Die (meansOfDeath=MOD_PRIFLE, killer=0x7ffff5418790, this=<optimized out>) at /build/source/src/sgame/backend/CBSEBackend.cpp:68
#3  HealthComponent::HandleDamage (this=0x7fffbd85fb50, amount=<optimized out>, source=0x7ffff5418790, location=..., direction=..., flags=<optimized out>, meansOfDeath=MOD_PRIFLE) at /build/source/src/sgame/components/HealthComponent.cpp:231           
#4  0x00007ffff5898324 in h_Dretch_Damage (_entity=0x7fffbd85fb20, _data=0x7ffff32db480) at /build/source/src/sgame/backend/CBSEBackend.cpp:2039                        
#5  0x00007ffff5897616 in Entity::SendMessage (data=0x7ffff32db480, msg=EntityMessage::Damage, this=<optimized out>) at /build/source/src/sgame/backend/CBSEBackend.cpp:27                                                                                                                                                                      
#6  Entity::Damage (this=<optimized out>, amount=<optimized out>, source=<optimized out>, location=..., direction=..., flags=<optimized out>, meansOfDeath=<optimized out>) at /build/source/src/sgame/backend/CBSEBackend.cpp:63                                                                                                               
#7  0x00007ffff584e465 in MissileImpact (trace=0x7ffff32db5d0, ent=0x7ffff54ac798) at /build/source/src/sgame/sg_missile.cpp:406    

The corresponding code:

bool Entity::Die(gentity_t* killer, meansOfDeath_t meansOfDeath) {
        std::tuple<gentity_t*, meansOfDeath_t> data(killer, meansOfDeath);
        return SendMessage(EntityMessage::Die, &data);
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions