-
Notifications
You must be signed in to change notification settings - Fork 6
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: CHECK failed: ((ptr[0] == kCurrentStackFrameMagic)) != (0)
#4
Comments
I noticed a few things. Ruby does in fact use And when running with ASAN, they do recommend setting the following: However, when I set those compiler flags and ASAN options the issue still persists. On one hand, this does indeed seem like some weird behavior with |
Some additional interesting links: |
I forgot to fill out the repro steps from the original crash. Here are the details...
# frozen_string_literal: true
require 'ruzzy'
require 'bson'
test_one_input = lambda do |data|
begin
Hash.from_bson(BSON::ByteBuffer.new(data))
rescue Exception
# We're looking for memory corruption, not Ruby exceptions
end
return 0
end
Ruzzy.fuzz(test_one_input) If I compile with
However, if compile with just
Run like so:
|
When fuzzing
bson-ruby
I'm repeatedly getting this error.sigaltstack
:memcpy
:clock_gettime
:It looks like I'm not the only one:
CHECK failed: asan_thread.cpp:371 "((ptr[0] == kCurrentStackFrameMagic)) != (0)"
google/sanitizers#1531The text was updated successfully, but these errors were encountered: