AStopher / Wildfire-Public

Public bug-reporting & feature suggestions.
0 stars 0 forks source link

Wildfire4Linux - General - Crashing Issue #4

Open AStopher opened 3 years ago

AStopher commented 3 years ago

Under Wildfire4Linux, the Wildfire Core service module crashes. Under further inspection this appears to be a stack overflow, which points to likely some counter overflowing.

This is likely a regression from network statistic tracking within the Ceres module (the Wildfire component for system logs).

For this fix:

I am hoping that the above will resolve this issue (some of the obsolete code still runs and dates back to 2015, so this needs to be addressed). As you may know, back in January 2019 I said that I would no longer be actively supporting the Wildfire system (especially now as I work full-time as a software engineer) but I will pledge to fix this issue as it is long-standing (the first report was #2 in 2017) but will not be adding further features unless absolutely required.

I can't say when the issue will be fixed (because as above I work with code as my full-time job now, so going home and working on this won't be happening, if any progress is made it'll be on weekends)- I am hoping to have this fixed within the next month or so though.

AStopher commented 3 years ago

Work on this has now commenced, I believe I have identified the source of the StackOverflowException crashes (we were creating database connections but returning before they were closed, resulting in the MySQL library keeping the connections open and therefore reaching its maximum connection limit and falling over) but to fix this requires either dumping data to a variable, closing the connection, and then returning the variable (easy), or to fix the issue properly by centralising the database interface into one class (more difficult).

Today I have: