powerd fails to properly exit because android_input_stack_stop() is hung

Bug #1199897 reported by Matt Fischer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libhybris (Ubuntu)
Fix Released
Undecided
Ricardo Salveti

Bug Description

powerd fails to properly exit when stopped from upstart. It is hanging in android_input_stack_stop(). I set the timeout to 60 seconds and it was still killed, never getting past that call.

EDIT: If you press the power button when it's stuck in this state it will exit cleanly.

To test this, edit the powerd.conf upstart job and add "kill timeout 120" to the file, then run sudo initctl stop powerd. You can tail the syslog while you do this. Pressing power will allow the stop to continue. If you don't press the power button you will eventually get a KILL signal from the kernel (after 2 minutes if you set kill timeout, default is I think 5 seconds)

Matt Fischer (mfisch)
summary: - powerd fails to properly exit
+ powerd fails to properly exit because android_input_stack_stop() is hung
description: updated
Changed in powerd:
assignee: nobody → Thomas Voß (thomas-voss)
affects: powerd → libhybris
Changed in libhybris:
assignee: Thomas Voß (thomas-voss) → Ricardo Salveti (rsalveti)
affects: libhybris → libhybris (Ubuntu)
Changed in libhybris (Ubuntu):
status: New → 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.