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

Error in kinetics test with _GLIBCXX_ASSERTIONS #1430

Closed
musicinmybrain opened this issue Jan 26, 2023 · 2 comments · Fixed by #1441
Closed

Error in kinetics test with _GLIBCXX_ASSERTIONS #1430

musicinmybrain opened this issue Jan 26, 2023 · 2 comments · Fixed by #1441

Comments

@musicinmybrain
Copy link

Problem description

Compiling with _GLIBCXX_ASSERTIONS enabled appears to reveal an out-of-bounds read in the tests.

Steps to reproduce

  1. scons build cc_flags='-Wp,-D_GLIBCXX_ASSERTIONS' cxx_flags='-Wp,-D_GLIBCXX_ASSERTIONS -std=c++14' -j16
  2. scons test -j16

Behavior

[ RUN      ] Reaction.FalloffFromYaml2
/usr/include/c++/12/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::oper
ator[](size_type) [with _Tp = double; _Alloc = std::allocator<double>; reference = double&; size_type = long u
nsigned int]: Assertion '__n < this->size()' failed.
FAILED: Test 'kinetics' exited with code -6

Compare to

scons build -j16
scons test -j16

which succeeds.

System information

  • Cantera version: c0ae563
  • OS: Fedora Linux 37 (x86_64)
  • Python/MATLAB/other software versions: Python 3.11.1

Attachments

Additional context

@musicinmybrain
Copy link
Author

FYI @mefuller

@mefuller
Copy link
Contributor

Thanks @musicinmybrain

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

Successfully merging a pull request may close this issue.

2 participants