anacron blocks resume from suspend

Bug #429009 reported by Matt Zimmerman
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
anacron (Ubuntu)
Fix Released
High
Scott James Remnant (Canonical)

Bug Description

I suspect this failure was due to bug 429001, which I already reported. After reporting that bug, I rebooted, and the suspend/resume failure was detected.

ProblemType: KernelOops
Annotation: This occured during a previous suspend and prevented it from resuming properly.
AplayDevices:
 **** List of PLAYBACK Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC272 Analog [ALC272 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC272 Analog [ALC272 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: mdz 2643 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf0440000 irq 22'
   Mixer name : 'Realtek ALC272'
   Components : 'HDA:10ec0272,102802f4,00100001'
   Controls : 9
   Simple ctrls : 5
Date: Sun Sep 13 11:40:36 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/share/apport/apportcheckresume
Failure: suspend/resume
HibernationDevice: RESUME=UUID=a29dd540-dfc8-4fa4-a121-8f9bcc78afec
InterpreterPath: /usr/bin/python2.6
MachineType: Dell Inc. Inspiron 1011
NonfreeKernelModules: wl
Package: linux-image-2.6.31-10-generic 2.6.31-10.32
PccardctlIdent:

PccardctlStatus:

ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.31-10-generic root=UUID=0e0805c9-684a-4646-9724-954e05f7dd01 ro quiet splash
ProcCmdline: /usr/bin/python /usr/share/apport/apportcheckresume
ProcEnviron: PATH=(custom, no user)
ProcVersionSignature: Ubuntu 2.6.31-10.32-generic
RelatedPackageVersions:
 linux-backports-modules-2.6.31-10-generic N/A
 linux-firmware 1.16
SourcePackage: linux
Tags: resume suspend ubuntu-unr
Title: [Dell Inc. Inspiron 1011] suspend/resume failure [non-free: wl]
Uname: Linux 2.6.31-10-generic i686
UserGroups:

WpaSupplicantLog:

dmi.bios.date: 03/20/2009
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A00
dmi.board.name: CN0Y53
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: A00
dmi.modalias: dmi:bvnDellInc.:bvrA00:bd03/20/2009:svnDellInc.:pnInspiron1011:pvrA00:rvnDellInc.:rnCN0Y53:rvrA00:cvnDellInc.:ct8:cvrA00:
dmi.product.name: Inspiron 1011
dmi.product.version: A00
dmi.sys.vendor: Dell Inc.

Related branches

Revision history for this message
Matt Zimmerman (mdz) wrote :
Revision history for this message
Matt Zimmerman (mdz) wrote :

This failure seems to be easily reproducible for me with 2.6.31-10.32

Revision history for this message
Matt Zimmerman (mdz) wrote :

Note I am running with ~ubuntu-boot PPA packages as well

tags: added: regression-potential
Changed in linux (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

I'm also just adding a note about bug 408860 which was an earlier suspend/resume bug Matt reported against the same hw reported here.

Tobin Davis (gruemaster)
tags: removed: ubuntu-unr
Revision history for this message
Matt Zimmerman (mdz) wrote :

Further investigation shows this failure is not only unrelated to the warning in bug 429001, but also doesn't look like a kernel problem:

root 2024 0.0 0.3 6932 3732 ? S Sep14 0:14 /usr/lib/devicekit-power/devkit-power-daemon
root 17328 0.0 0.0 1848 556 ? S Sep15 0:00 \_ /bin/sh /usr/sbin/pm-suspend
root 17598 0.0 0.0 1848 496 ? S 09:42 0:00 \_ /bin/sh /usr/lib/pm-utils/sleep.d/95anacron resume
root 17599 0.0 0.0 2316 824 ? S 09:42 0:00 \_ start -q anacron

that's where the resume process is hung. I assume it's running the scripts in reverse order, and so as 95anacron never completes, it doesn't get to 55NetworkManager (which explains why networking is disabled).

ii upstart 0.6.3-2~boot8 event-based init daemon

affects: linux (Ubuntu) → upstart (Ubuntu)
Changed in upstart (Ubuntu):
importance: Medium → High
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Is anacron running?

summary: - [Dell Inc. Inspiron 1011] suspend/resume failure [non-free: wl]
+ anacron blocks resume from suspend
affects: upstart (Ubuntu) → anacron (Ubuntu)
Changed in anacron (Ubuntu):
assignee: nobody → Scott James Remnant (scott)
Revision history for this message
Matt Zimmerman (mdz) wrote : Re: [Bug 429009] Re: [Dell Inc. Inspiron 1011] suspend/resume failure [non-free: wl]

On Wed, Sep 16, 2009 at 04:51:43PM -0000, Scott James Remnant wrote:
> Is anacron running?

atomicity:[~] ps aux |grep anacron
mdz 18485 0.0 0.0 2188 780 pts/5 S+ 10:17 0:00 grep anacron

--
 - mdz

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

On Wed, 2009-09-16 at 17:17 +0000, Matt Zimmerman wrote:

> On Wed, Sep 16, 2009 at 04:51:43PM -0000, Scott James Remnant wrote:
> > Is anacron running?
>
> atomicity:[~] ps aux |grep anacron
> mdz 18485 0.0 0.0 2188 780 pts/5 S+ 10:17 0:00 grep anacron
>
But the "start" command is still blocking?

Could you try "status anacron"

Scott
--
Scott James Remnant
<email address hidden>

Revision history for this message
Matt Zimmerman (mdz) wrote :

On Wed, Sep 16, 2009 at 06:05:08PM -0000, Scott James Remnant wrote:
> On Wed, 2009-09-16 at 17:17 +0000, Matt Zimmerman wrote:
>
> > On Wed, Sep 16, 2009 at 04:51:43PM -0000, Scott James Remnant wrote:
> > > Is anacron running?
> >
> > atomicity:[~] ps aux |grep anacron
> > mdz 18485 0.0 0.0 2188 780 pts/5 S+ 10:17 0:00 grep anacron
> >
> But the "start" command is still blocking?
>
> Could you try "status anacron"

I upgraded to the latest Karmic, and something clobbered this state
(perhaps the anacron upgrade stopping and starting it?).

I haven't been able to reproduce the problem yet with the latest bits (now
running all Karmic, with the ubuntu-boot PPA packages superseded).

--
 - mdz

Revision history for this message
Matt Zimmerman (mdz) wrote :
Download full text (3.4 KiB)

/var/log/pm-suspend.log attached

atomicity:[~] grep anacron /var/log/pm-suspend.log
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: success.
/usr/lib/pm-utils/sleep.d/95anacron resume suspend: success.
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron resume suspend: success.
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron resume suspend: success.
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron resume suspend: success.
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron resume suspend: success.
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron resume suspend: success.
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron resume suspend: success.
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron resume suspend: success.
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron resume suspend: success.
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron resume suspend: success.
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend: stop: Unknown instance:
/usr/lib/pm-utils/sleep.d/95anacron resume suspend: success.
/usr/lib/pm-utils/sleep.d/95anacron suspe...

Read more...

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

On Wed, 2009-09-16 at 18:20 +0000, Matt Zimmerman wrote:

> I upgraded to the latest Karmic, and something clobbered this state
> (perhaps the anacron upgrade stopping and starting it?).
>
Could you have had packages from the ubuntu-boot PPA installed?

The anacron that was there certainly had this bug, and anacron was one
of the last things to get built in the archive.

Scott
--
Scott James Remnant
<email address hidden>

Revision history for this message
Matt Zimmerman (mdz) wrote :

On Wed, Sep 16, 2009 at 08:14:17PM -0000, Scott James Remnant wrote:
> On Wed, 2009-09-16 at 18:20 +0000, Matt Zimmerman wrote:
>
> > I upgraded to the latest Karmic, and something clobbered this state
> > (perhaps the anacron upgrade stopping and starting it?).
> >
> Could you have had packages from the ubuntu-boot PPA installed?

I definitely did, yes (as noted in comment #3).

--
 - mdz

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Great, this can be marked Fixed then

Changed in anacron (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Matt Zimmerman (mdz) wrote :

On Wed, Sep 16, 2009 at 08:14:17PM -0000, Scott James Remnant wrote:
> Could you have had packages from the ubuntu-boot PPA installed?
>
> The anacron that was there certainly had this bug, and anacron was one
> of the last things to get built in the archive.

I've just reproduced the bug again. I think it may only happen when the
system has been suspended for a period of time (in recent cases, overnight).

root 3858 0.0 0.0 1836 512 ? S 09:25 0:00 \_ /bin/sh /usr/lib/pm-utils/sleep.d/95anacron resume suspend
root 3859 0.0 0.0 2304 828 ? S 09:25 0:00 \_ start -q anacron
root 3861 0.0 0.0 1764 580 ? Ss 09:25 0:00 anacron -s

ii anacron 2.3-13.1ubuntu9 cron-like program that doesn't go by time

--
 - mdz

Changed in anacron (Ubuntu):
status: Fix Released → Triaged
Revision history for this message
Matt Zimmerman (mdz) wrote :

Here's where start(8) is blocked:

(gdb) bt full
#0 0x0065e422 in __kernel_vsyscall ()
No symbol table info available.
#1 0x00242b6b in poll () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#2 0x0016f10b in _dbus_poll (fds=0xbfa33734, n_fds=1, timeout_milliseconds=-1) at dbus-sysdeps-unix.c:1970
No locals.
#3 0x001670df in socket_do_iteration (transport=0x1438518, flags=6, timeout_milliseconds=-1) at dbus-transport-socket.c:1066
        poll_fd = {fd = 3, events = 1, revents = 0}
        poll_res = 6
        poll_timeout = -1
#4 0x001652fc in _dbus_transport_do_iteration (transport=0x1438518, flags=6, timeout_milliseconds=-1) at dbus-transport.c:956
No locals.
#5 0x0014fbf3 in _dbus_connection_do_iteration_unlocked (connection=0x1438928, flags=6, timeout_milliseconds=1) at dbus-connection.c:1163
No locals.
#6 0x00152344 in _dbus_connection_block_pending_call (pending=0x1438bd0) at dbus-connection.c:2423
        start_tv_sec = 21209452
        start_tv_usec = 8
        tv_sec = 1253204795
        tv_usec = 453647
        status = <value optimized out>
        connection = 0x1438928
        client_serial = 2
        timeout = 0x0
        timeout_milliseconds = -1
        elapsed_milliseconds = -1
#7 0x0015fa81 in dbus_pending_call_block (pending=0xfffffdfc) at dbus-pending-call.c:705
        __FUNCTION__ = "dbus_pending_call_block"
#8 0x00811ab2 in start_action (command=0x1438074, args=0x1438364) at initctl.c:406
        upstart = 0x1438b34
        upstart_job = 0x1438384 "anacron"
        upstart_instance = 0x0
        job_class_path = 0x143a12c "/com/ubuntu/Upstart/jobs/anacron"
        job_class = 0x143a16c
        job_path = 0x0
        job = 0x0
        pending_call = <value optimized out>
        ret = 1
        err = <value optimized out>
        __FUNCTION__ = "start_action"
#9 0x0082664e in nih_command_handle (parent=<value optimized out>, argc=<value optimized out>, argv=0xbfa33ab4, options=0x8350f8, commands=0x1438074, command=0x1438074) at command.c:344
        cmd_opts = <value optimized out>
        opts = 0x14381c4
        ret = -1
        __FUNCTION__ = "nih_command_handle"
#10 0x008267a5 in nih_command_parser (parent=0x0, argc=3, argv=0xbfa33ab4, options=0x8350f8, commands=0x83514c) at command.c:135
        cmds = 0x1438074
        cmd = 0x1438074
        footer = 0x0
        stem = 0x0
        args = 0x0
        arg = <value optimized out>
        ret = <value optimized out>
        __FUNCTION__ = "nih_command_parser"
#11 0x008100aa in main (argc=3, argv=0xbfa33ab4) at initctl.c:1372
        ret = <value optimized out>
#12 0x0019ab56 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#13 0x0080ff51 in _start () at ../sysdeps/i386/elf/start.S:106
No locals.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote : Re: [Bug 429009] Re: anacron blocks resume from suspend

On Thu, 2009-09-17 at 16:34 +0000, Matt Zimmerman wrote:

> Here's where start(8) is blocked:
>
> (gdb) bt full
>
This is not interesting ;) But if you could provide the "ps" and
"status" output as before ... ?

Scott
--
Scott James Remnant
<email address hidden>

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote : Re: [Bug 429009] Re: [Dell Inc. Inspiron 1011] suspend/resume failure [non-free: wl]

On Thu, 2009-09-17 at 16:29 +0000, Matt Zimmerman wrote:

> On Wed, Sep 16, 2009 at 08:14:17PM -0000, Scott James Remnant wrote:
> > Could you have had packages from the ubuntu-boot PPA installed?
> >
> > The anacron that was there certainly had this bug, and anacron was one
> > of the last things to get built in the archive.
>
> I've just reproduced the bug again. I think it may only happen when the
> system has been suspended for a period of time (in recent cases, overnight).
>
> root 3858 0.0 0.0 1836 512 ? S 09:25 0:00 \_ /bin/sh /usr/lib/pm-utils/sleep.d/95anacron resume suspend
> root 3859 0.0 0.0 2304 828 ? S 09:25 0:00 \_ start -q anacron
> root 3861 0.0 0.0 1764 580 ? Ss 09:25 0:00 anacron -s
>
> ii anacron 2.3-13.1ubuntu9
> cron-like program that doesn't go by time
>
Oh, you did. LP just delivered them out of order.

It's not actually failing - it's just running your cron scripts and
waiting for them. Probably shouldn't be waiting <g>

There's two possible fixes for this:

 1) remove "task" from /etc/init/anacron.conf

 2) add "-n" to that start invocation

I suspect that the "task" is the right one.

Scott
--
Scott James Remnant
<email address hidden>

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package anacron - 2.3-13.1ubuntu10

---------------
anacron (2.3-13.1ubuntu10) karmic; urgency=low

  * debian/upstart: anacron should not be a task, otherwise
    "start anacron" (as used in many scripts) will block. It's just a
    short-lived service. LP: #429009.

 -- Scott James Remnant <email address hidden> Thu, 17 Sep 2009 20:28:52 +0100

Changed in anacron (Ubuntu):
status: Triaged → 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.