Bug 13501 - svlogd stuck in endless processer loop
Summary: svlogd stuck in endless processer loop
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-29 09:53 UTC by stransky.peter
Modified: 2021-06-05 14:37 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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