Re: Strange crashes with std::vector push_back() and emplace_back()
Undisclosed via Gcc-help <[email protected]> Sat, 18 Jul 2026 15:13:18 +0000
| Newsgroups | gmane.comp.gcc.help |
|---|---|
| Message-ID | <[email protected]> |
All the code is assembled into a DLL, which is an audio plugin loaded and l= aunched by 3rd party software=2E There is just this dll=2E Therefore I can't provide any executable to run and reproduce the crash=2E I never experienced any other strange issues in the past=2E I've been codi= ng audio plugins since 2019 using the same workflow, even quite complex and= cpu intensive stuff=2E Be sure it's not my workflow, it's something very s= ubtle=2E As for the problem being outside std::vector, I can reassure you that I en= ded up with this minimal code, to track down the issue, no other operations= are carried=2E Just push_back() or emplace_back() crash=2E Again, invoking reserve() on the vector before using it apparently fixes t= he problem=2E And resizing the vector by hand then copying the object by ha= nd to its back also seems never crashing=2E Still struggling and testing to find more clues=2E=2E=2E