Bug 13501

Summary: svlogd stuck in endless processer loop
Product: Busybox Reporter: stransky.peter
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description stransky.peter 2021-01-29 09:53:42 UTC
On embedded devices without a valid onboard RTC, the system 
starts on 1970-01-01. Usually later on clocks are synchronized using
ntp or a proprietary solution.

When system time is correct and svlogd rolls over logfiles,
the tai-timestamp-named files are processed correctly.

Assuming some correct tai-timestamped logfiles already exist 
in the log directory and the system is booted: 

In case the "current" logfile might roll over with system time 1970-01-01.
The latest logfile now carries the oldest timestamp and will be removed in the rollover process. 

Nevertheless svlogd starts the processor on the removed log 
file. The processor will fail. svlogd now endlessly restarts 
the processor and is stuck.
Comment 1 Denys Vlasenko 2021-06-05 14:37:59 UTC
Fixed in git