The application discloses an
abnormality determination method and device, a storage medium and an electronic device, relates to the technical field of smart homes, and comprises the following steps: in the case that a calling event of a first thread is captured through a hook mechanism, generating a memory allocation
record item corresponding to each first
memory block according to the thread identifier of the first thread and the attribute information of each first
memory block, and writing a plurality of memory allocation
record items into a memory tracking table in the first thread, the first thread being used for allocating a plurality of first memory blocks in a target
system; in the process of inspecting the first thread based on a preset inspection period, determining a health degree index corresponding to the first thread based on the memory tracking table, and determining a target
score corresponding to the first thread according to the health degree index, the health degree index at least comprising one of the following: an aging degree index, a cross-thread inconsistency index; and performing
abnormality determination on the first thread according to the health degree index and the target
score to determine whether the first thread has abnormal behavior.