Export to GitHub

madwimax - issue #63

lsof hangs on event.sh


Posted on Dec 18, 2011 by Helpful Hippo

What steps will reproduce the problem? 1. run lsof with madwimax running 2. lsof hangs

What is the expected output? What do you see instead? expected normal lsof behavior, i see nothing

What version of the product are you using? On what operating system? madwimax-0.1.1-1.x86_64 on openSuSE 12.1 x86_64, compiled from source

Please provide any additional information below.

last lines of "strace lsof -n":

<-- cut --> stat("/proc/14969/", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0 open("/proc/14969/task", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4 getdents(4, /* 3 entries /, 32768) = 80 getdents(4, / 0 entries */, 32768) = 0 close(4) = 0 open("/proc/14969/stat", O_RDONLY) = 4 read(4, "14969 (event.sh) D 1 14585 14585"..., 4096) = 176 close(4) = 0 readlink("/proc/14969/cwd", "/", 4096) = 1 stat("/proc/14969/cwd", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 readlink("/proc/14969/root", "/", 4096) = 1 stat("/proc/14969/root", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 readlink("/proc/14969/exe", "/bin/bash"..., 4096) = 9 stat("/proc/14969/exe", {st_mode=S_IFREG|0755, st_size=648016, ...}) = 0 open("/proc/14969/maps", O_RDONLY) = 4 read(4, <--- lsof hangs here

Comment #1

Posted on Dec 19, 2011 by Helpful Hippo

ух ты, разработчик русскоязычный :)

апдейт: обнаружил, что event.sh периодически зависает намертво, что аж его процесс не прибивается ни kill -9 $PID, ни kill -s SIGSTOP $PID && kill -s SIGKILL $PID (что порой помогает от "особо зависших" процессов). собственно, из-за зависшего event на нём и тормозился lsof. почему event зависает и как это воспроизвести не знаю, прошу инструкцию по подробному логированию действий madwimax'а.

Status: New

Labels:
Type-Defect Priority-Medium