[Suspend2-devel] Wierd hang in the hibernate script while resuming

Sunil Kumar devsku at gmail.com
Thu Jul 6 05:09:49 UTC 2006


suspend-2.2.7, with kernel 2.6.17.3. hibernate script hangs at this after
resume:

hibernate: [01] Executing LockFilePut ...
hibernate: [00] Executing RemoveSwsuspProcCruft ...

The temp files that RemoveSwsuspProcCruft is supposed to remove are not
present, which means that it returned and the script is stuck in this loop
somehow:

    # Resume and cleanup and stuff.
    for bit in `SortResumeBits` ; do
        THIS_POS="`awk \"BEGIN{print substr(\\\"$bit\\\", 1, 2)}\"`"
        [ -z "$THIS_POS" ] && continue
        bit=${bit##$THIS_POS}
        [ "$THIS_POS" -gt "$CHAIN_UP_TO" ] && continue
        vecho 1 "$EXE: [$THIS_POS] Executing $bit ... "
        [ -n "$OPT_DRY_RUN" ] && continue
        $bit
    done


Does anybody have any idea what might be wrong with this loop? Is it a
resume problem with bash itself?

$ lsof -p 27988
COMMAND     PID USER   FD   TYPE DEVICE    SIZE    NODE NAME
hibernate 27988 root  cwd    DIR 253,10    4096 1618851 /home/sunil
hibernate 27988 root  rtd    DIR 253,10    4096       2 /
hibernate 27988 root  txt    REG 253,10  740132 2027784 /bin/bash
hibernate 27988 root  mem    REG    0,0               0 [heap] (stat: No
such file or directory)
hibernate 27988 root  mem    REG 253,10  104813 1129632 /lib/ld-2.3.6.so
hibernate 27988 root  mem    REG 253,10 1173560 1129609 /lib/tls/libc-
2.3.6.so
hibernate 27988 root  mem    REG 253,10   11680 1129630 /lib/libdl-2.3.6.so
hibernate 27988 root  mem    REG 253,10  281544 1129577
/lib/libncurses.so.5.5
hibernate 27988 root    0u   CHR  136,3               5 /dev/pts/3
hibernate 27988 root    1u   CHR  136,3               5 /dev/pts/3
hibernate 27988 root    2u   CHR  136,3               5 /dev/pts/3
hibernate 27988 root  255r   REG 253,10   25149 2044795 /usr/sbin/hibernate

$ ps|grep sbin/hiber
root     27988 27364  0 20:09 pts/3    00:00:00 /bin/sh /usr/sbin/hibernate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tuxonice.net/pipermail/tuxonice-devel/attachments/20060705/0aa19ea7/attachment.html>


More information about the TuxOnIce-devel mailing list