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

ASAN_OPTIONS=allocator_may_return_null=1 is ignored #1377

Open
nolden opened this issue Feb 19, 2021 · 4 comments
Open

ASAN_OPTIONS=allocator_may_return_null=1 is ignored #1377

nolden opened this issue Feb 19, 2021 · 4 comments

Comments

@nolden
Copy link

nolden commented Feb 19, 2021

I did set ASAN_OPTIONS=allocator_may_return_null=1 but I still get this output:

==72449==ERROR: AddressSanitizer: allocator is out of memory trying to allocate 0x7f09ece28d01 bytes
#0 0x7f09f51d8bb7 in operator new(unsigned long) (/lib64/libasan.so.6+0xacbb7)
#1 0x7f09f47fd371 in std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_assign(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) (/lib64/libstdc++.so.6+0x141371)
#2 0x7f09ece28cff (/home/nolden/Qt/5.15.2/gcc_64/lib/libQt5WebEngineCore.so.5+0xddacff)

==72449==HINT: if you don't care about these errors you may set allocator_may_return_null=1
SUMMARY: AddressSanitizer: out-of-memory (/lib64/libasan.so.6+0xacbb7) in operator new(unsigned long)
==72449==ABORTING

gcc / libasan 10.2.1 on Fedora 33.

@hbsun2113
Copy link

I met the same issue

@Mem2019
Copy link

Mem2019 commented Jun 2, 2022

For my case, it seems that this option is ignored when new [] is used for allocation.

@nsmithtt
Copy link

nsmithtt commented Apr 9, 2023

+1

@shiyu-ren
Copy link

+1. Did you solve this problem?

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

5 participants