proukornew / madwimax

Automatically exported from code.google.com/p/madwimax
0 stars 0 forks source link

lsof hangs on event.sh #63

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by k...@rhynn.net on 18 Dec 2011 at 7:17

GoogleCodeExporter commented 9 years ago
ух ты, разработчик русскоязычный :)

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

Original comment by k...@rhynn.net on 19 Dec 2011 at 5:55