Upstart fails run with --session: child-subreaper-failed event
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart |
New
|
Undecided
|
Unassigned |
Bug Description
I'm running upstart 1.8 with --session --user options. Using a script that looks like this:
#!/bin/sh
if [ -z "${UPSTART_HOME}" ]; then
UPSTART_
export UPSTART_HOME
fi
PATH=$HOME/
XDG_CONFIG_
export XDG_CONFIG_HOME
XDG_CONFIG_DIRS=
export XDG_CONFIG_DIRS
XDG_CACHE_
export XDG_CACHE_HOME
exec ${UPSTART_
--inherit-env \
--
It finds the config files I want it to find, then says:
init: Unable to register as subreaper: Invalid argument
event_new: Pending child-subreaper
Then lots more stuff about starting my services, then
Handling child-subreaper
event_finished: Finished child-subreaper
init:com.
Aborted (core dumped)
Upstart 1.5 doesn't fail this way, but I need --inherit-env, for what I'm trying to do.
I get exactly the same result with a 3.2 kernel, as with the kernel I'm now running which is 3.4.37 from Quantal.
Libc from Quantal doesn't help either.
The child-subreaper -failed event may be a red herring: If I remove the code that raises it, init still crashes as described above:
init:com. ubuntu. Upstart. c:2651: Assertion failed in control_ emit_event_ emitted: env != NULL
Aborted (core dumped)
In fact if I remove all the config files, so that I'm asking Upstart to start up and do nothing, the following is the result:
main: Running with UID 511 as PID 26756 (PPID 8298) upstart/ sessions handle_ bus_type: Using session bus ubuntu. Upstart. c:2651: Assertion failed in control_ emit_event_ emitted: env != NULL
Loading configuration from <home>/test/upstart
Loading configuration from <home>/.init
Loading configuration from /etc/xdg/upstart
Loading configuration from /usr/share/
control_
event_new: Pending diaas-start event
Handling diaas-start event
event_finished: Finished diaas-start event
init:com.
Aborted (core dumped)
So this is more like 'upstart doesn't start with --user or --session'