viele Programme bringen >killed by SIGKILL<

Du hast Probleme mit Deinem eMail-Programm, Webbrowser oder Textprogramm? Dein Lieblingsprogramm streikt?
Antworten
Cae
Beiträge: 6349
Registriert: 17.07.2011 23:36:39
Wohnort: 2130706433

Re: viele Programme bringen >killed by SIGKILL<

Beitrag von Cae » 01.07.2016 20:12:42

Mach' mal zwei Sessions auf, einmal user, einmal root:

Code: Alles auswählen

user$ tail -f /usr/bin/pstree >/dev/null &
(da sollte eine Job-ID und eine Process ID, im folgenden $PID, rausfallen)

Code: Alles auswählen

root# for f in /proc/$PID/fd/*; do readlink -f "$f"; done
Was kommt raus? (Der Output von lsof -np $PID waere genauso aufschluessig, aber ich mag mich auf moeglichst wenig Drittprogramme verlassen.)

Gruss Cae
If universal surveillance were the answer, lots of us would have moved to the former East Germany. If surveillance cameras were the answer, camera-happy London, with something like 500,000 of them at a cost of $700 million, would be the safest city on the planet.

—Bruce Schneier

Benutzeravatar
heinz
Beiträge: 535
Registriert: 20.12.2007 01:43:49

Re: viele Programme bringen >killed by SIGKILL<

Beitrag von heinz » 04.07.2016 12:03:25

Hallo Cae,
Danke für Deine Antwort.
Cae hat geschrieben:Mach' mal zwei Sessions auf...

Code: Alles auswählen

user$ tail -f /usr/bin/pstree >/dev/null &
[1] 24345

Code: Alles auswählen

root# for f in /proc/24345/fd/*; do readlink -f "$f"; done
/dev/pts/0
/dev/null
/dev/pts/0
/usr/bin/pstree
/proc/24345/fd/anon_inode:inotify
Sieht für mich normal aus...

Gruß heinz

Cae
Beiträge: 6349
Registriert: 17.07.2011 23:36:39
Wohnort: 2130706433

Re: viele Programme bringen >killed by SIGKILL<

Beitrag von Cae » 04.07.2016 21:13:47

Schade, das sieht unerwartet normal aus. Anhand des Ergebnisses laesst sich a) ein chroot ausschliessen und ebenso b) eventuelle $PATH- oder sonstige Verrenkungen.

Bleibt das Verhalten, wenn du einen neuen Benutzer anlegst und es dort probierst? Falls nein, wird's interessant, dann wuerde ich vergleichen, was da anders ist:

Code: Alles auswählen

root# strace -fo userA su -c /usr/bin/pstree userA
Das Ganze fuer userB wiederholen und anschliessend die beiden Logs vergleichen.

Gruss Cae
If universal surveillance were the answer, lots of us would have moved to the former East Germany. If surveillance cameras were the answer, camera-happy London, with something like 500,000 of them at a cost of $700 million, would be the safest city on the planet.

—Bruce Schneier

Antworten