jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

can't find property in ecma_lcache_invalidate()

Open guesshaha opened this issue 4 months ago • 1 comments

I meet a bug, can't find the property in lcache, finally it accesses illegal memory, and null pointer dereference. Can you give me some suggestions on how to debug this? Image

the entry_p run off into invalid memory

Image

guesshaha avatar Aug 27 '25 08:08 guesshaha

Yes, it looks like the property is invalid, since it ends with 5, which is an unaligned address. The prop_p is read from somewhere, gdb write breakpoints can help to detect who stored the invalid value.

zherczeg avatar Aug 28 '25 12:08 zherczeg