Skip to content

Valgrind is not happy #1160

@saghul

Description

@saghul

==3832== Conditional jump or move depends on uninitialised value(s)
==3832==    at 0x139D3C: JS_CreateProperty (quickjs.c:9380)
==3832==    by 0x198971: js_iterator_concat_next (quickjs.c:41518)
==3832==    by 0x16147D: js_call_c_function (quickjs.c:15912)
==3832==    by 0x130445: JS_CallInternal (quickjs.c:16128)
==3832==    by 0x130886: JS_CallInternal (quickjs.c:16551)
==3832==    by 0x1AAC3C: JS_CallFree (quickjs.c:18596)
==3832==    by 0x1AAC3C: JS_EvalFunctionInternal (quickjs.c:34544)
==3832==    by 0x1ABF1F: __JS_EvalInternal (quickjs.c:34679)
==3832==    by 0x170810: JS_EvalInternal (quickjs.c:34705)
==3832==    by 0x170810: JS_EvalThis2 (quickjs.c:34760)
==3832==    by 0x170810: JS_Eval (quickjs.c:34774)
==3832==    by 0x11B4B2: eval_buf (run-test262.c:1348)
==3832==    by 0x11C8FA: run_test_buf (run-test262.c:1765)
==3832==    by 0x11D25E: run_test (run-test262.c:1948)
==3832==    by 0x11D863: run_test_dir_list (run-test262.c:2091)
==3832==  Uninitialised value was created by a stack allocation
==3832==    at 0x1985F0: js_iterator_concat_next (quickjs.c:41442)

and

ThreadSanitizer:DEADLYSIGNAL
==2753==ERROR: ThreadSanitizer: SEGV on unknown address 0x7274000f1058 (pc 0x55e9945b6cb9 bp 0x7f65e99fa190 sp 0x7f65e99fa0e0 T2757)
==2753==The signal is caused by a READ memory access.
    #0 JS_IsFunction /home/runner/work/quickjs/quickjs/quickjs.c:10214 (run-test262+0x4acb9) (BuildId: 967e148379d0b719d73b0725aed89d65337c09c7)
    #1 JS_CreateProperty /home/runner/work/quickjs/quickjs/quickjs.c:9390 (run-test262+0x4acb9)
    #2 JS_DefineProperty /home/runner/work/quickjs/quickjs/quickjs.c:9752 (run-test262+0x4b12c) (BuildId: 967e148379d0b719d73b0725aed89d65337c09c7)
    #3 js_iterator_concat_next /home/runner/work/quickjs/quickjs/quickjs.c:41940 (run-test262+0xe47fb) (BuildId: 967e148379d0b719d73b0725aed89d65337c09c7)
    #4 js_call_c_function /home/runner/work/quickjs/quickjs/quickjs.c:16313 (run-test262+0x8eb68) (BuildId: 967e148379d0b719d73b0725aed89d65337c09c7)
    #5 JS_CallInternal /home/runner/work/quickjs/quickjs/quickjs.c:16529 (run-test262+0x38327) (BuildId: 967e148379d0b719d73b0725aed89d65337c09c7)
    #6 JS_CallInternal /home/runner/work/quickjs/quickjs/quickjs.c:16952 (run-test262+0x3893c) (BuildId: 967e148379d0b719d73b0725aed89d65337c09c7)
    #7 JS_CallFree /home/runner/work/quickjs/quickjs/quickjs.c:18997 (run-test262+0xff6c6) (BuildId: 967e148379d0b719d73b0725aed89d65337c09c7)
    #8 JS_EvalFunctionInternal /home/runner/work/quickjs/quickjs/quickjs.c:34966 (run-test262+0xff6c6)
    #9 __JS_EvalInternal /home/runner/work/quickjs/quickjs/quickjs.c:35101 (run-test262+0x101a89) (BuildId: 967e148379d0b719d73b0725aed89d65337c09c7)
    #10 JS_EvalInternal /home/runner/work/quickjs/quickjs/quickjs.c:35127 (run-test262+0xa5147) (BuildId: 967e148379d0b719d73b0725aed89d65337c09c7)
    #11 JS_EvalThis2 /home/runner/work/quickjs/quickjs/quickjs.c:35182 (run-test262+0xa5147)
    #12 JS_Eval /home/runner/work/quickjs/quickjs/quickjs.c:35196 (run-test262+0xa5147)
    #13 eval_buf /home/runner/work/quickjs/quickjs/run-test262.c:1348 (run-test262+0x1660b) (BuildId: 967e148379d0b719d73b0725aed89d65337c09c7)
    #14 run_test_buf /home/runner/work/quickjs/quickjs/run-test262.c:1765 (run-test262+0x1849b) (BuildId: 967e148379d0b719d73b0725aed89d65337c09c7)
    #15 run_test /home/runner/work/quickjs/quickjs/run-test262.c:1948 (run-test262+0x19115) (BuildId: 967e148379d0b719d73b0725aed89d65337c09c7)
    #16 run_test_dir_list /home/runner/work/quickjs/quickjs/run-test262.c:2091 (run-test262+0x1983f) (BuildId: 967e148379d0b719d73b0725aed89d65337c09c7)
    #17 __tsan_thread_start_func ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1012 (libtsan.so.2+0x4edee) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571)
    #18 <null> <null> (libc.so.6+0x9caa3) (BuildId: 274eec488d230825a136fa9c4d85370fed7a0a5e)
    #19 <null> <null> (libc.so.6+0x129c6b) (BuildId: 274eec488d230825a136fa9c4d85370fed7a0a5e)

@bnoordhuis it seems to be part of the new iterator concat stuff.

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