Skip to contentSkip to conversation

trinity 1.1-677-g7bbde28 just hangs after creating fd and sockets in a user mode linux

DISCUSSION Toralf Förster 2 participants 3 messages Aug 30, 2013

lore
Share & tools
lore
#0 lore raw

the last lines are :

fd[376] = domain:1 (PF_LOCAL) type:0x5 protocol:1 fd[377] = domain:2 (PF_INET) type:0x2 protocol:17 fd[378] = domain:10 (PF_INET6) type:0x1 protocol:0 fd[379] = domain:1 (PF_LOCAL) type:0x1 protocol:1 fd[380] = domain:2 (PF_INET) type:0x1 protocol:0 created 375 sockets
fd[380] = domain:2 (PF_INET) type:0x1 protocol:0 created 375 sockets
fd[5] = pipe
fd[381] = pipe
fd[382] = pipe
fd[383] = pipe

thats' all, a
$> ps axf | grep trinity | grep -v grep

just gives

$ ssh tfoerste@trinity "ps axf | grep trinity | grep -v grep"
 1072 ?        Ss     0:00  |       \_ bash -c cd ~; sudo su -c 'if [[ -d ./t3 ]]; then chmod -R a+rwx ./t3; rm -rf ./t3; fi'; mkdir ./t3; cd ./t3; logger M=; if [[ -n "" ]]; then if [[ -d /victims/v1 ]]; then sudo chmod -R a+rwx /victims/v1; sudo rm -rf /victims/v1; fi; mkdir -p /victims/v1/v2; for i in $(seq -w 1 100); do touch /victims/v1/v2/f$i 2>/dev/null; mkdir /victims/v1/v2/d$i 2>/dev/null; done; fi;  trinity -C 1 -N 10000
 1080 ?        S      0:00  |           \_ trinity -C 1 -N 10000
 1081 ?        S      0:00  |               \_ trinity -C 1 -N 10000
 1082 ?        R      2:37  |               \_ trinity -C 1 -N 10000
$ ssh tfoerste@trinity "ls -l ~/t3/*log"
-rw-r--r-- 1 tfoerste users     0 Aug 30 17:49 /home/tfoerste/t3/trinity-child0.log
-rw-r--r-- 1 tfoerste users 19610 Aug 30 17:49 /home/tfoerste/t3/trinity.log

Because I updated both trinity and the UML kernel I'm unsure were to start

Signature · 3 lines
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
#1 lore raw
Quoted 31 lines · Toralf Förster

the last lines are :

fd[376] = domain:1 (PF_LOCAL) type:0x5 protocol:1 fd[377] = domain:2 (PF_INET) type:0x2 protocol:17 fd[378] = domain:10 (PF_INET6) type:0x1 protocol:0 fd[379] = domain:1 (PF_LOCAL) type:0x1 protocol:1 fd[380] = domain:2 (PF_INET) type:0x1 protocol:0 created 375 sockets
fd[380] = domain:2 (PF_INET) type:0x1 protocol:0 created 375 sockets
fd[5] = pipe
fd[381] = pipe
fd[382] = pipe
fd[383] = pipe

thats' all, a
$> ps axf | grep trinity | grep -v grep

just gives

$ ssh tfoerste@trinity "ps axf | grep trinity | grep -v grep"
 1072 ?        Ss     0:00  |       \_ bash -c cd ~; sudo su -c 'if [[ -d ./t3 ]]; then chmod -R a+rwx ./t3; rm -rf ./t3; fi'; mkdir ./t3; cd ./t3; logger M=; if [[ -n "" ]]; then if [[ -d /victims/v1 ]]; then sudo chmod -R a+rwx /victims/v1; sudo rm -rf /victims/v1; fi; mkdir -p /victims/v1/v2; for i in $(seq -w 1 100); do touch /victims/v1/v2/f$i 2>/dev/null; mkdir /victims/v1/v2/d$i 2>/dev/null; done; fi;  trinity -C 1 -N 10000
 1080 ?        S      0:00  |           \_ trinity -C 1 -N 10000
 1081 ?        S      0:00  |               \_ trinity -C 1 -N 10000
 1082 ?        R      2:37  |               \_ trinity -C 1 -N 10000
$ ssh tfoerste@trinity "ls -l ~/t3/*log"
(quoted diff) +0 -2
-rw-r--r-- 1 tfoerste users     0 Aug 30 17:49 /home/tfoerste/t3/trinity-child0.log
-rw-r--r-- 1 tfoerste users 19610 Aug 30 17:49 /home/tfoerste/t3/trinity.log
Quoted 1 line

Because I updated both trinity and the UML kernel I'm unsure were to start

ah, I think I know what's up here. It's hanging just before it tries to create some 'perf' fds. I bet that either you have that config'd off in your uml kernel, or uml doesn't support perf.

I'll add some error handling later today.

Dave

#2 lore raw
Quoted 38 lines · Dave Jones
Quoted 31 lines · Toralf Förster

the last lines are :

fd[376] = domain:1 (PF_LOCAL) type:0x5 protocol:1 fd[377] = domain:2 (PF_INET) type:0x2 protocol:17 fd[378] = domain:10 (PF_INET6) type:0x1 protocol:0 fd[379] = domain:1 (PF_LOCAL) type:0x1 protocol:1 fd[380] = domain:2 (PF_INET) type:0x1 protocol:0 created 375 sockets
fd[380] = domain:2 (PF_INET) type:0x1 protocol:0 created 375 sockets
fd[5] = pipe
fd[381] = pipe
fd[382] = pipe
fd[383] = pipe

thats' all, a
$> ps axf | grep trinity | grep -v grep

just gives

$ ssh tfoerste@trinity "ps axf | grep trinity | grep -v grep"
 1072 ?        Ss     0:00  |       \_ bash -c cd ~; sudo su -c 'if [[ -d ./t3 ]]; then chmod -R a+rwx ./t3; rm -rf ./t3; fi'; mkdir ./t3; cd ./t3; logger M=; if [[ -n "" ]]; then if [[ -d /victims/v1 ]]; then sudo chmod -R a+rwx /victims/v1; sudo rm -rf /victims/v1; fi; mkdir -p /victims/v1/v2; for i in $(seq -w 1 100); do touch /victims/v1/v2/f$i 2>/dev/null; mkdir /victims/v1/v2/d$i 2>/dev/null; done; fi;  trinity -C 1 -N 10000
 1080 ?        S      0:00  |           \_ trinity -C 1 -N 10000
 1081 ?        S      0:00  |               \_ trinity -C 1 -N 10000
 1082 ?        R      2:37  |               \_ trinity -C 1 -N 10000
$ ssh tfoerste@trinity "ls -l ~/t3/*log"
(quoted diff) +0 -2
-rw-r--r-- 1 tfoerste users     0 Aug 30 17:49 /home/tfoerste/t3/trinity-child0.log
-rw-r--r-- 1 tfoerste users 19610 Aug 30 17:49 /home/tfoerste/t3/trinity.log
Quoted 1 line

Because I updated both trinity and the UML kernel I'm unsure were to start

ah, I think I know what's up here. It's hanging just before it tries to create some 'perf' fds. I bet that either you have that config'd off in your uml kernel, or uml doesn't support perf.

Quoted 5 lines

I'll add some error handling later today.

Dave

Thx - in deed I do not have PERF in UML (enabled).

Signature · 3 lines
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3