#18258: procd: in uml, procd crashes with too long command lineat times (and
loops)
------------------------------+------------------------
Reporter: fingon+openwrt@… | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: base system | Version: Trunk
Keywords: |
------------------------------+------------------------
Same as the other procd observation, given month old procd (and latest
trunk), everything is fine. With current, some of the uml VMs crash:
procd: - ubus -
procd: - init -
[ 5.130000] procd[1]: segfault at 0 ip 0000000040e5f340 sp
0000007fbfd48908 error 4 in libuClibc-0.9.33.2.so[40e33000+50000]
procd: Rebooting as procd has crashed
procd: reboot
..
and it loops.
I noticed that the new command line parsing code uses the define
COMMAND_LINE_LENGTH (or whatever) of 512 which is retrieved from asm-
generic; however, my platform has longer command line length support
(uml=2k), and I want to use it.
(Of course, why it crashes with too long command line is another story but
debugging procd is painful so I rather not)
TL;DR: Please get it from arch-specific file (not sure which one that is),
or just hardcode 'big enough' number like it used to be (1024). There is
no really harm putting >4k (biggest one I could find on quick grep, mips
IIRC) figure there either.
--
Ticket URL: <https://dev.openwrt.org/ticket/18258>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets