'telinit u' run from within a chroot causes a crash

Bug #1079715 reported by James Hunt on 2012-11-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
upstart
High
James Hunt

Bug Description

To recreate:

1) Boot a system with Upstart 1.6.
2) Create an Ubuntu chroot.
3) Enter the chroot as root.
4) Run 'telinit u'.

Crash occurs in job_class_add_safe() line 381:

379 existing = (JobClass *)nih_hash_search (job_classes, class->name, NULL);
380
381 nih_assert (! existing);
382
383 job_class_add (class);

Problem is related to Upstarts session namespacing I suspect.

Related branches

James Hunt (jamesodhunt) wrote :

Problem is only manifested when initctl is run prior to telinit within the chroot, so the correct sequence to recreate is actually:

1) Boot a system with Upstart 1.6.
2) Create an Ubuntu chroot.
3) Enter the chroot as root.
4) Run 'initctl list'.
5) Run 'telinit u'.

James Hunt (jamesodhunt) on 2012-11-16
Changed in upstart:
assignee: nobody → James Hunt (jamesodhunt)
importance: Undecided → High
James Hunt (jamesodhunt) on 2012-11-29
Changed in upstart:
status: New → In Progress
James Hunt (jamesodhunt) on 2012-12-07
Changed in upstart:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers