[lkml]   [2006]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: 2.6.17-mm3: swsusp fails when process is debugged by ptrace
    Pavel Machek wrote:
    > Does it also happen when you do strace? ...I remember trying to solve
    > that, but 2.6.17-mm3 is very recent...?

    I could suspend while running "strace sleep 100" without any problem.

    I think the issue is when the process is blocked in T state,
    freeze_process() tries to kick the process with signal_wake_up(p, /*
    resume=0 */ 0), but with resume=0 it will only wake processes in
    TASK_INTERRUPTIBLE state. With resume=1, it will also kick STOPPED and
    TRACED processes. I also tried suspending while I had a process in T
    state caused by kill -STOP, and that worked, so some part of the puzzle
    is still missing.

    I noticed that when I ran sleep 100 under strace over the suspend/resume
    cycle, its nanosleep() syscall was interrupted and not restarted.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-06-28 23:54    [W:0.024 / U:92.532 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site