jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

Test failure: jerry --exec-snapshot date-tostring triggers assertion

Open tilmannOSG opened this issue 10 years ago • 9 comments

In the Travis CI ARM build of https://github.com/Samsung/jerryscript/pull/1182, the following test failed:
[37/266] build/bin/debug.linux/jerry --exec-snapshot date-tostring.t9Fkk0uDHJ.snapshot: FAIL (1) Script error: assertion failed
The full log is available at https://travis-ci.org/Samsung/jerryscript/jobs/142165136.
It's pretty much impossible that https://github.com/Samsung/jerryscript/pull/1182 actually caused this failure since it only changed a Zephyr-specific Makefile and a README, e.g. no code changes.
This is either a recently introduced non-deterministic regression or an issue with our test harness.

tilmannOSG avatar Jul 04 '16 11:07 tilmannOSG

Actually this flaky test is there for a long time, and impossible to reproduce the crash. Even if it is reported by travis, and the binary is downloaded, the crash does not happen.

zherczeg avatar Jul 04 '16 11:07 zherczeg

I see, thanks for the clarification. Definitely sounds like something non-deterministic. Might be worth to run the test with AddressSanitizer/MemorySanitzer/Valgrind to get to the bottom of this. I would guess it's probably an uninitialized variable or a pointer in a hash table causing this non-determinism.
Did this show up on x86-64 as well? Or is it specific to ARM?

tilmannOSG avatar Jul 04 '16 11:07 tilmannOSG

We spent some time to figure this out (with valgrind), but no success at all. Might have some dependency which is not available in our environment. It is a date test after all.

zherczeg avatar Jul 04 '16 13:07 zherczeg

What to do with this issue? Close with "who knows why?" or keep it open as a reminder (but still, who knows why?...)

akosthekiss avatar Aug 19 '16 18:08 akosthekiss

IMHO, keep open for a while.

LaszloLango avatar Aug 20 '16 06:08 LaszloLango

We could not reproduce it on other machines so far. Very difficult to debug.

zherczeg avatar Aug 20 '16 08:08 zherczeg

@zherczeg Mentioned to me that this issues has not triggered a single time after the build system rewrite. Could very well have been a bug in the test harness of the old build system. Closing for now, feel free to reopen in case the issue shows up again.

tilmannOSG avatar Sep 06 '16 15:09 tilmannOSG

Reopening, managed to trigger the bug again: https://travis-ci.org/Samsung/jerryscript/jobs/159634805
Should be possible to reproduce with a507c08.

tilmannOSG avatar Sep 13 '16 17:09 tilmannOSG

It looks like this was fixed. Feel free to reopen if needed.

LaszloLango avatar Feb 16 '18 10:02 LaszloLango