[Bug]: Double free or corruption detected in first parameterized test #4485
Replies: 3 comments 1 reply
-
How did you resolve this? |
Beta Was this translation helpful? Give feedback.
-
I noticed that it was happening with a single test data pair I was using as input to the test, but I believe this should be reopened for better clarification. |
Beta Was this translation helpful? Give feedback.
-
Turns out I have been building my own libraries with |
Beta Was this translation helpful? Give feedback.
-
Describe the issue
I have parameterized some tests for a particular test fixture. The input parameters are
pairs
ofint
s. Every first test of the parameterized test suite executes successfully but flagsdouble free or corruption (out)
. I find it odd that it happens in the first test only, regardless of the input values. All the other tests do not show the same issue.Steps to reproduce the problem
Test fixture class:
Note:
DSPUtils<Complex, std::vector>
andstd::make_shared<DSPUtils<Complex, std::vector>>
are custom template classes.Value-parameterized test:
Value-parameterized test suite instantiation:
What version of GoogleTest are you using?
v1.14.0 (latest).
What operating system and version are you using?
Linux Ubuntu 22.04 Jammy
What compiler and version are you using?
gcc/g++ 10.5.0
What build system are you using?
CMake 3.22.1
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions