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

Bug #1079715 reported by James Hunt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
upstart
Fix Released
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

Revision history for this message
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)
Changed in upstart:
assignee: nobody → James Hunt (jamesodhunt)
importance: Undecided → High
James Hunt (jamesodhunt)
Changed in upstart:
status: New → In Progress
James Hunt (jamesodhunt)
Changed in upstart:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.