Skip to content

Segmentation Fault in gc_mark_all #36

@FrancescoLucarini

Description

@FrancescoLucarini

$ ./mqjs x.js
[COV] no shared memory bitmap available, skipping
[COV] edge counters initialized. Shared memory: (null) with 5765 edges
UndefinedBehaviorSanitizer:DEADLYSIGNAL
==1136300==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000002 (pc 0x6235603cad67 bp 0x7abeafcfe010 sp 0x7ffd4e719520 T1136300)
==1136300==The signal is caused by a READ memory access.
==1136300==Hint: address points to the zero page.
#0 0x6235603cad67 in gc_mark_all /home/mag/mquickjs/mquickjs.c:12061:34
#1 0x6235603cad67 in JS_GC2 /home/mag/mquickjs/mquickjs.c:12420:5
#2 0x6235603bd242 in JS_GC /home/mag/mquickjs/mquickjs.c:12432:5
#3 0x6235603bd242 in check_free_mem /home/mag/mquickjs/mquickjs.c:508:9
#4 0x6235603daf21 in js_malloc /home/mag/mquickjs/mquickjs.c:539:9
#5 0x6235603bea5b in js_alloc_value_array /home/mag/mquickjs/mquickjs.c:2219:11
#6 0x6235603be85e in js_alloc_props /home/mag/mquickjs/mquickjs.c:2717:11
#7 0x6235603db528 in js_create_property /home/mag/mquickjs/mquickjs.c:2885:19
#8 0x6235603db528 in JS_DefinePropertyInternal /home/mag/mquickjs/mquickjs.c:3032:10
#9 0x6235603bf9b3 in JS_SetPropertyInternal /home/mag/mquickjs/mquickjs.c:3323:12
#10 0x6235603c3efc in JS_Call /home/mag/mquickjs/mquickjs.c:5946:27
#11 0x6235603cab4b in JS_Run /home/mag/mquickjs/mquickjs.c:11774:11
#12 0x6235603ba36b in eval_file /home/mag/mquickjs/mqjs.c:465:11
#13 0x6235603b9c58 in main /home/mag/mquickjs/mqjs.c:924:18
#14 0x7abeb122a577 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#15 0x7abeb122a63a in __libc_start_main csu/../csu/libc-start.c:360:3
#16 0x62356038f2f4 in _start (/home/mag/mquickjs/mqjs+0x102f4)

==1136300==Register values:
rax = 0x0000000000000000 rbx = 0x00007ffd4e719528 rcx = 0x00007abeafcfe010 rdx = 0x00006235603ffdc0
rdi = 0x00006235604227cc rsi = 0x00007abeafcfe2c9 rbp = 0x00007abeafcfe010 rsp = 0x00007ffd4e719520
r8 = 0x0000000000000000 r9 = 0x0000000000000000 r10 = 0x000000001c93bb9d r11 = 0x00007abeb1397c80
r12 = 0x00007abeafcfe2c8 r13 = 0x00007abeafcfe0e8 r14 = 0x00006235604227cc r15 = 0x0000000000000002
UndefinedBehaviorSanitizer can not provide additional info.
SUMMARY: UndefinedBehaviorSanitizer: SEGV /home/mag/mquickjs/mquickjs.c:12061:34 in gc_mark_all
==1136300==ABORTING

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions