Skip to content

A segmentation fault generated after add collection several times #143

@kurtlau

Description

@kurtlau
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff69c2860 in __memset_sse2 () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install glibc-2.17-196.tl2.3.x86_64 libgcc-7.3.1-6.tl2.x86_64 libstdc++-7.3.1-6.tl2.x86_64 zlib-1.2.7-15.el7.x86_64
(gdb) bt
#0  0x00007ffff69c2860 in __memset_sse2 () from /lib64/libc.so.6
#1  0x0000000000b79d6b in memSet (count=<optimized out>, c=<optimized out>, dest=<optimized out>) at /data/rwbyguo/trunk/server/external/PhysX/PxShared/include/foundation/unix/PxUnixIntrinsics.h:166
#2  physx::shdfnd::internal::HashBase<physx::shdfnd::Pair<physx::PxBase* const, unsigned long>, physx::PxBase*, physx::shdfnd::Hash<physx::PxBase*>, physx::shdfnd::internal::HashMapBase<physx::PxBase*, unsigned long, physx::shdfnd::Hash<physx::PxBase*>, physx::shdfnd::NonTrackingAllocator>::GetKey, physx::shdfnd::NonTrackingAllocator, true>::reserveInternal (this=this@entry=0x680af90, size=268435456) at /data/rwbyguo/trunk/server/external/PhysX/PxShared/src/foundation/include/PsHashInternals.h:381
#3  0x0000000000b778fc in reserve (size=<optimized out>, this=0x680af90) at /data/rwbyguo/trunk/server/external/PhysX/PxShared/src/foundation/include/PsHashInternals.h:209
#4  reserve (size=<optimized out>, this=0x680af90) at /data/rwbyguo/trunk/server/external/PhysX/PxShared/src/foundation/include/PsHashInternals.h:777
#5  physx::Cm::Collection::add (this=0x680af50, _collection=...) at /data/rwbyguo/trunk/server/external/PhysX/PhysX_3.4/Source/Common/src/CmCollection.cpp:117

Collection::add reserved too many entries. After added collection serveral times, reserve size reached 268435456.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions