'Trouble figuring out a segmentation fault on a function call

Still new to c++ so I apologize if this is really obvious or something. Currently I have a small program (~250 lines) throwing a segmentation fault. There's a small amount of recursion within someFunction() but its throwing the error on its call. Below is a shortened version of the code throwing the error, this mock-up doesn't throw the error so I'm not sure if its a pointer error, or a memory error. I already checked my memory limit and I don't think that's the issue. Any help pointing me in the right direction will be greatly appreciated, thank you for your time.

Solved it, it appears it was an issue with how much memory the array of objects in objectA was taking up.

#include <string>
#include <iostream>
#include <vector>

using namespace std;

class objectA {
    //contains two other object arrays, a few other objects, and a few other variables
};

class objectB {
public:
    vector<objectA> aObjectA;
    void someFunction(int x, int y, string z, vector<objectA> aObjectA) {
    //do something
}
    void setVectorFunction() {
    //sets the vector with currently only 1 aObjectA
}
};


int main() {
objectB aObjectB;
aObjectB.setVectorFunction();
aObjectB.someFunction(0, 0, "0000,0000", aObjectB.aObjectA);
cout << "Test";
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source