[FS#3277] malta/mipseb64:

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Wed Aug 12 04:45:13 EDT 2020


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#3277 - malta/mipseb64:
User who did this - Tony Ambardar (guidosarducci)

----------
Still seeing the same error after updating to current openwrt commit b59a98b009b9. Enabling debug of procd init shows a little more information.


 ./scripts/qemustart malta be64 -append "init_debug=4"

[...]

[    1.264652] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
[    1.276184] scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     2.5+ PQ: 0 ANSI: 5
[    1.311226] Freeing unused kernel memory: 21628K
[    1.311469] This architecture does not have kernel memory protection.
[    1.311787] Run /init as init process
[    1.418543] init: Console is alive
[    1.436103] init: Ping
[    1.447138] init: Ping
[    1.457733] init: Ping
[    1.468352] init: Ping
[    1.478950] init: Ping
[    1.489642] init: Ping
[    1.500256] init: Ping
[    1.506097] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    1.511427] init: Ping
[    1.516345] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    1.522048] init: Ping
[    1.525605] init: - preinit -
[    1.529807] init: Launched preinit instance, pid=505
[    1.535329] do_page_fault(): sending SIGSEGV to init for invalid read access from 0000000000000360
[    1.535755] epc = 0000000000000360 in init[aaab9d8000+4000]
[    1.536552] ra  = 000000fffc2f05f0 in
[    1.538997] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    1.540118] Rebooting in 1 seconds..


Looking at the [[https://lxr.openwrt.org/source/procd/initd/init.c|procd code]], the main init seems to start OK, then forks kmodloader which also completes without error. The subsequent code does:
uloop_init();
preinit();
uloop_run();

Looking at the [[https://lxr.openwrt.org/source/procd/initd/preinit.c#L125|preinit() code]], it appears to fork plugd:
/sbin/procd -h /etc/hotplug-preinit.json
and then fork a preinit instance:
/bin/sh /etc/preinit
before printing a DEBUG message and returning. The above seems to have worked.

The kernel panic is immediately after, and the logged "exitcode=0x0000000b" is:
EAGAIN 11 Resource temporarily unavailable

Perhaps there's an issue with one of the forked process, or during uloop_run().
----------

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=3277#comment8650

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