[FS#3331] network restart endless
OpenWrt Bugs
openwrt-bugs at lists.openwrt.org
Fri Sep 11 00:27:50 EDT 2020
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - WengZuyang (wengzuyang)
Attached to Project - OpenWrt/LEDE Project
Summary - network restart endless
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - All
Due in Version - Undecided
Due Date - Undecided
Details - 1. Software versions
Chaos Calmer
2. there is two ways to reproduce:
a).type commond "/etc/init.d/network restart" when device power on and starting network.(small chance to reproduce in this way)
b). type commond "/etc/init.d/network restart;/etc/init.d/network restart".(always reproduce in this way)
3. I fllowed codes and find the reason:
netifd can not be terminate by "ubus call service delete '{"name":"network"}'"
there are multiple netifd processing:
5962 ? S 0:02 [kworker/0:0]
7576 ttymxc0 Ss 0:00 -ash
8708 ? S 0:00 /sbin/netifd
8723 ? S 0:00 [kworker/0:1]
8965 ? S 0:00 /sbin/netifd
9011 ? S 0:00 /sbin/netifd
9054 ? S 0:00 /sbin/netifd
9125 ? S 0:00 /sbin/netifd
9212 ? S 0:00 /sbin/netifd
9317 ? S 0:00 /sbin/netifd
9392 ? S 0:00 /sbin/netifd
the reason of netifd can not be killed is:
netifd reseived TERM signal and run uloop_end() before uloop_run()
so uloop_cancelled(in libubox) is reset to false when uloop_run()
4. my solution:
delete the line:
uloop_cancelled = false; --> in void uloop_run(void) --> in uloop.c --> in libubox-2015-11-08(new version libubox have this line too)
uloop_cancelled is already init by "bool uloop_cancelled = false;",it is no need reset to false by uloop_run() again.
More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=3331
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
More information about the openwrt-bugs
mailing list