Skip to content

[BUG]: Crash On AddtoPlayer for custom weapon? #380

@Natsheh11

Description

@Natsheh11

👉👈 Contact Details (optional)

No response

🤔 What happened?

A crash bug happened!

(gdb) bt full
#0  0xe87c1a9f in __cxxabiv1::__dynamic_cast (src_ptr=0xa308d30, 
    src_type=0xe2683b50 <typeinfo for CBaseEntity>, 
    dst_type=0xe2691fe0 <typeinfo for CBasePlayerItem>, src2dst=0)
    at /valve/build/targets/src/gcc-4.6.1/libstdc++-v3/libsupc++/dyncast.cc:61
        vtable = 0xe268cecc <vtable for CBasePlayer+8>
        prefix = <optimized out>
        whole_type = 0xe19ee000
        whole_ptr = 0xa308d30
        result = {dst_ptr = 0x0, 
          whole2dst = __cxxabiv1::__class_type_info::__unknown, 
          whole2src = __cxxabiv1::__class_type_info::__unknown, 
          dst2src = __cxxabiv1::__class_type_info::__unknown, 
          whole_details = 16}
#1  0xe24b043a in OnFreeEntPrivateData(edict_s*) ()
   from /home/container/cstrike/dlls/cs.so
No symbol table info available.
#2  0xe1654dcd in ?? ()
No symbol table info available.
#3  0xe7e3a000 in ?? () from /home/container/engine_i486.so
No symbol table info available.
#4  0xe1d56295 in RegisterHam(tagAMX*, int*) ()
   from cstrike/addons/amxmodx/modules/hamsandwich_amxx_i386.so
No symbol table info available.```

### ⚠️ Meta-information

```shell
Linux

📄 Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions