I will enable similar log configurations on other hosts with other linux flavors and start tracking down if the problem is related to /etc/logrotate.d/tor , tor itself or if it is a one-off on the currently affected machine.
The /etc/logrotate.d/tor in all these packages does not explicitly HUP, instead it:
postrotate if invoke-rc.d tor status > /dev/null; then invoke-rc.d tor reload > /dev/null fi
Running "sudo service tor reload" manually does reload the config, but does not close the file handles, and produces, among others, this log line:
Apr 14 08:49:19.000 [notice] Received reload signal (hup). Reloading config and resetting internal state.
This line is also in all the compressed log files as well - so hup is performed but doesn't help.
Thanks, ama, for the hup pointer - I now started to look into:
./src/lib/log/log.c
./src/app/main/main.c:do_hup(void)
but the log (file) interactions are quite complex (too complex?)
I guess I will try to locate some life systems with older tor versions to get a "binary search" going - I assume this is a recent "regression", or nobody ever noticed?
Next step is to do a 'git bisect' to figure out which commit introduced the bug.
Do you know how to do one of those, and/or would you like to use this as a learning opportunity, and/or is that something somebody else should pick up?
I think from the above that this bug is another result of #33087 (closed), which was fixed in 0.4.2, though commit 8a23393e looks like it didn't go in until 0.4.3.4-rc.
In any case it was fixing a bug that went into 0.4.1. And now each of 0.4.1 and 0.4.2 and 0.4.3.3-alpha are obsolete.