C++: vector<string> *args = new vector<string>(); causes SIGABRT
问题 Pretty self explanatory. Here's the method that's causing the SIGABRT on the 'new vector' line: vector<string> * Task::arguments() { vector<string> *args = new vector<string>(); // CAUSES SIGABRT int count = sizeof(_arguments); for (int x = 0; x < count; x++) { string argument(_arguments[x]); args->push_back(argument); } return args; } Note that elsewhere I call that exact line without any issues. Here is the list of includes in the Task class: #include <vector> #include <unistd.h> #include