Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddressSanitizer SEGV src/array.c:259:20 #3244

Closed
ghost opened this issue Nov 10, 2016 · 2 comments
Closed

AddressSanitizer SEGV src/array.c:259:20 #3244

ghost opened this issue Nov 10, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 10, 2016

Repro file:

Base64: ICAqYSA9DTw8LTU1LDIsKmEgPS01PDwtNTUKd2hl9iAqYyA9AAA=

stacktrace

ASAN:DEADLYSIGNAL
=================================================================
==10068==ERROR: AddressSanitizer: SEGV on unknown address 0x00009fff8002 (pc 0x0000006068e9 bp 0x7fff2a2821d0 sp 0x7fff2a282150 T0)
==10068==The signal is caused by a READ memory access.
    #0 0x6068e8 in ary_concat /home/fuzzer/git/mruby/src/array.c:259:20
    #1 0x606850 in mrb_ary_concat /home/fuzzer/git/mruby/src/array.c:273:3
    #2 0x5b281a in mrb_vm_exec /home/fuzzer/git/mruby/src/vm.c:2137:7
    #3 0x592b6a in mrb_vm_run /home/fuzzer/git/mruby/src/vm.c:766:10
    #4 0x5bd377 in mrb_top_run /home/fuzzer/git/mruby/src/vm.c:2452:12
    #5 0x64bde8 in load_exec /home/fuzzer/git/mruby/mrbgems/mruby-compiler/core/parse.y:5711:7
    #6 0x64a775 in mrb_load_file_cxt /home/fuzzer/git/mruby/mrbgems/mruby-compiler/core/parse.y:5720:10
    #7 0x4f28c7 in main /home/fuzzer/git/mruby/mrbgems/mruby-bin-mruby/tools/mruby/mruby.c:226:9
    #8 0x7f4281cbf82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
    #9 0x41a0e8 in _start (/home/fuzzer/git/mruby/build/test/bin/mruby+0x41a0e8)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/fuzzer/git/mruby/src/array.c:259:20 in ary_concat
@matz
Copy link
Member

matz commented Nov 11, 2016

I confirmed the issue. Thank you for the report.

@matz
Copy link
Member

matz commented Nov 11, 2016

fixed by 45aadd7

@matz matz closed this as completed Nov 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant