[OpenWrt-Devel] uhttpd/luci/rpcd is broken?

Hauke Mehrtens hauke at hauke-m.de
Mon Jan 6 12:23:13 EST 2020


On 1/6/20 5:39 PM, e9hack wrote:
> Am 06.01.2020 um 17:20 schrieb Petr Štetiar:
>> e9hack <e9hack at gmail.com> [2020-01-06 16:59:47]:
>>
>>> it looks like that uhttpd/luci/rpcd is broken again. The call 'ubus call
>>> luci-rpc getWirelessDevices' does fail 'Command failed: Request timed out'.
>>
>> can you provide little bit more details?  I don't see any problems with
>> `OpenWrt 19.07-SNAPSHOT, r10857-abb0665bec` running on TP-Link Archer C7 v5.
> 
> Router is a TP-Link Archer C7 v2. I'm using the last main revision: OpenWrt SNAPSHOT r11924-99dd2709b8. After login in uhttpd/luci, the first page times out and forces new login. From my last experience with a uhttp/luci crash, I checked all used ubus calls in a shell. 'ubus call luci-rpc getWirelessDevices' does time out and generates a page fault: 
> 
> Mon Jan  6 17:21:32 2020 kern.info kernel: [ 2361.197629] do_page_fault(): sending SIGSEGV to rpcd for invalid write access to 00000000
> Mon Jan  6 17:21:32 2020 kern.info kernel: [ 2361.206094] epc = 77f25588 in libc.so[77f08000+9b000]
> Mon Jan  6 17:21:32 2020 kern.info kernel: [ 2361.211275] ra  = 77df59d5 in luci.so[77df4000+15000]
>  
> Regards,
> Hartmut

I saw some strange behavior of "ubus call luci-rpc getWirelessDevices"
in master, it did not crash but showed wrong values or mixed some up
like the BSSID contains the SSID. I did a clean build and now it is
working fine for me. I haven't seen this in 19.07.

I assume this is related to the changes:
https://git.openwrt.org/?p=project/iwinfo.git;a=commitdiff;h=bf2c1069a7f14d1af1e02c8edd2b7338f0355ac8
https://git.openwrt.org/?p=project/rpcd.git;a=commitdiff;h=efe51f41d6288fa8503cc4f2efb37a777767d505

https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=8fb6be73b552618567dcfcb1eee3ffbb7deadb7e
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=2d80f7e836b5a04b214cc7f00c73517b959712ca

I saw this:
-------
                                "iwinfo": {
                                        "noise": 0,
                                        "channel": 36,
                                        "country": "40:31:3C:02:8F:BA",
                                        "phy":
"\u0001\u0004\u0010\u0010\b\u0001",
                                        "txpower": 20,
                                        "txpower_offset": 0,
                                        "frequency": 5180,
                                        "frequency_offset": 0,
                                        "hwmodes": [
                                                "ac",
                                                "n"
                                        ],
---------

Hauke

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20200106/322d2cc4/attachment.sig>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list