I've narrowed down where the segfault occurs to this block of code in showStats():
I think the server dies at or near line #977...
Code:
while (resultMaps && dbi_nextrow(resultMaps) > 0) {
console_print(0,"after MARK 11 looped") //jrn-debug
dbi_nextrow(resultMaps)
}
dbi_result(resultMaps, "curDate", qryFirstDate, maxFinishedMaps-1)
I added console_print()s to find where it died.
The last successful debug message comes from this loop.
So, do you think there could be any problems after this code?