Error #41
tancatThe bmxd crashes when the link_window_size parameter is set to 1.
Descripció
# bmxd -d3 & sleep 5 && bmxd -c --link_window_size 1 [...] [19751 5017] INFO bmx_save_config(): link_window_size p:1 c:1 [19751 5017] INFO uci_save_option(): bmx.general.link_window_size=1 [19751 5017] INFO --link_window_size 1 [19751 5192] INFO get_lndev(): creating new lndev 172.22.0.14 ath0:bmx 172.22.0.16 [1]+ Floating point exception bmxd -d3
Actualitzat per Simó Albert i Beltran fa més de 13 anys
- Estat ha canviat de En progrés a Resolt
- % realitzat ha canviat de 0 a 100
Applied in changeset 4c69c998322fcd3e896c4718b5a3e632efffbd84.
Actualitzat per Simó Albert i Beltran fa més de 13 anys
- Estat ha canviat de Resolt a Tancat
The link_window_size parameter is specified in the ARG_LWS constant (line 40 of originator.h).
The link_window_size parameter is saved to local_lws variable (line 2046 of originator.c).
The value of local_lws variable is passed to update_lounged_metric function (line 803 of originator.c).
The update_lounged_metric funtion gets this value as ws variable (line 39 of mectrics.c).
In update_lounged_metric funtion this value is divided by 2 and saved as a integer on m_weight variable (line 53 of metrics.c).
If link_window_size is 1, the value of m_weight is 0.
This value is used to divide in line 63 of metrics.c.
This divison by zero causes a floating point exception.
To solve this problem, the patch added in 4c69c998322fcd3e896c4718b5a3e632efffbd84 increase the minium value of the link_window_size parameter to 2.
Reported bug to upstream with `this ticket`:http://www.bmx6.net/issues/2.