Bug 8521 - Regression: Starting with 1.23 ACPI shutdown stopped working within VirtualBox
Summary: Regression: Starting with 1.23 ACPI shutdown stopped working within VirtualBox
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.23.x
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-09 15:47 UTC by Axel Fontaine
Modified: 2019-10-29 20:15 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Fontaine 2015-12-09 15:47:18 UTC
Busybox worked great until 1.22.1 for Linux guests within VirtualBox.

Starting with 1.23 up to the current version (1.24.1) ACPI Shutdown from the VirtualBox UI stopped working. Reverting to Busybox 1.22.1 with no other changes makes it work again.

All versions were built from source based on the same 1.22.1 config.

Setup: Busybox init is started by the kernel and starts a shell script (referred to in the sysinit section of inittab) that calls acpid -d
Comment 1 Axel Fontaine 2015-12-09 15:48:20 UTC
By stopped working I meant: has no effect anymore, the instance keeps running instead of shutting down as expected
Comment 2 Mike Frysinger 2015-12-09 17:22:21 UTC
you probably need to trace this a bit for us to see what command is changing in behavior

if you don't mind using git, the bisect operator might help speed things up
Comment 3 Axel Fontaine 2015-12-09 17:31:58 UTC
This is the only recent commit to halt.c after 4 years: https://git.busybox.net/busybox/commit/init/halt.c?id=86a7f18f211af1abda5c855d2674b0fcb53de524

Could that be the cause?
Comment 4 Axel Fontaine 2015-12-09 17:35:22 UTC
The only other suspect could be:
https://git.busybox.net/busybox/commit/init/init.c?id=da9212667c99f2f2121747c4715d067deb7c155b

Not much else happened within https://git.busybox.net/busybox/tree/init in the affected timeframe
Comment 6 Mike Frysinger 2015-12-09 21:43:47 UTC
you have the system that's failing, so it should be pretty easy to test each one of those commits to see if they fix your system, and then you can let us know
Comment 7 Like Ma 2019-10-29 20:15:20 UTC
This issue may be similar to Bug 12071, which may be caused by 

https://git.busybox.net/busybox/commit/init/init.c?id=2bba9ad67a917de2624d427c8c107ce3e2d3d085

In addition, someone reported it in busybox github mirror:

https://github.com/mirror/busybox/commit/2bba9ad67a917de2624d427c8c107ce3e2d3d085