-
-
Notifications
You must be signed in to change notification settings - Fork 650
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
crash: doctest with custom allocator #382
Comments
Program received signal SIGSEGV, Segmentation fault.
doctest::String::isOnStack (this=0xffff800013b6f110)
at ~/.conan/data/doctest/2.3.8/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/doctest/doctest.h:470
470 bool isOnStack() const { return (buf[last] & 128) == 0; }
(gdb) bt
#0 doctest::String::isOnStack (this=0xffff800013b6f110)
at ~/.conan/data/doctest/2.3.8/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/doctest/doctest.h:470
#1 0x0000000000ac2f99 in doctest::String::c_str (this=0xffff800013b6f110)
at ~/.conan/data/doctest/2.3.8/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/doctest/doctest.h:499
#2 0x0000000000ac2e75 in doctest::String::c_str (this=0xffff800013b6f110)
at ~/.conan/data/doctest/2.3.8/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/doctest/doctest.h:497
#3 0x0000000000ab18a8 in doctest::(anonymous namespace)::matchesAny (
name=0x7fffec479ea0 "~/.conan/data/flexlib/master/conan/stable/build/4226740ff13976194d38b9971d813a7121a397d6/include/flexlib/funcParser.hpp",
filters=std::vector of length 5864048233249, capacity 5864048233290 = {...}, matchEmpty=true, caseSensitive=false)
at ~/.conan/data/doctest/2.3.8/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/doctest/doctest.h:3535
#4 0x0000000000ab70ce in doctest::Context::run (this=0x7fffffffd6e0)
at ~/.conan/data/doctest/2.3.8/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/doctest/doctest.h:5825
#5 0x00000000004cfb65 in main (argc=1, argv=0x7fffffffd898)
at ~/.conan/data/flexlib/master/conan/stable/build/4226740ff13976194d38b9971d813a7121a397d6/tests/main.cpp:235 |
Well... one weird thing that I see is this: However I don't have the capacity to build your project and try to debug this ATM - I would appreciate if you try that, or if you provide a truly minimalistic example which would reproduce the problem. |
@onqtam Thanks for response. Issue may be not doctest-related. I'll re-open it if problem is doctest-related. |
crash with alloc shim as allocator (chromium based), https://github.com/blockspacer/chromium_base_conan
crash on
doctest::Context
destructionHow to reproduce:
used basis lib on commit blockspacer/basis@484752d
used flexlib lib on commit
blockspacer/flexlib@2695724
used base/allocator/allocator_shim.cc on commit
https://github.com/blockspacer/chromium_base_conan/blob/8e45a5dc6abfc06505fd660c08ad43c592daf5aa/base/allocator/allocator_shim.cc
related files:
flexlib/tests/doctest.test.cpp
basis/basis/doctest_util.cc
How to build with chromium based alloc shim:
conan create
as usual for all required deps, see blockspacer/chromium_base_conan#1 (comment)The text was updated successfully, but these errors were encountered: