HexHive / HexType

HexType: Efficient Detection of Type Confusion Errors for C++
97 stars 20 forks source link

Segmentation fault when running Chrome with hextype #10

Open YizhuoZhai opened 1 year ago

YizhuoZhai commented 1 year ago

Hi: I have successfully built the Chrome with HexType's instrumentations, but I met two problems when running the instrumented Chrome:

  1. Program received signal SIGSEGV, Segmentation fault. 0x00005555560ea8b6 in __update_direct_oinfo ()

This happens in hextype.cc, function __update_direct_oinfo (), when checking if (ObjTypeMap[MapIndex].ObjAddr == nullptr), loading from the ObjTypeMap[MapIndex].ObjAddr causes the crash. 2. Program received signal SIGTRAP, Trace/breakpoint trap. 0x00007ffff7120c20 in base::internal::OnNoMemoryInternal(unsigned long)

This happens in hextype.cc, in function __update_phantom_info () when allocate the ObjTypeMap: ObjTypeMap = new ObjTypeMapEntry[NUMMAP];

Do you have any suggestions for solving those issues? I upgrade the hextype into llvm-14.0.5.