Open steelbrain opened 8 years ago
Interesting, thanks for the report. I've seen some extra output that was presumably coming from helper processes bash was running, but I'm surprised to see none of the output from the shell here. ispy
makes the assumption that output on fds 1 and 2 are output we are interested in. I wonder if zsh
does something that would break that assumption.
I'm able to see both output of shell command of listening process and "Not a git repository" message.
➜ /tmp sudo ispy 17056
Attach process 17056
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
aclocal ed nano setfacl
aclocal-1.11 efibootmgr nc setfont
automake egrep nc.openbsd setupcon
automake-1.11 false netcat sh
bash fgconsole netstat sh.distrib
bunzip2 fgrep nisdomainname sleep
busybox findmnt ntfs-3g ss
bzcat fuser ntfs-3g.probe static-sh
bzcmp fusermount ntfs-3g.secaudit stty
bzdiff getfacl ntfs-3g.usermap su
bzegrep grep ntfscat sync
bzexe gunzip ntfsck tailf
bzfgrep gzexe ntfscluster tar
bzgrep gzip ntfscmp tempfile
bzip2 hostname ntfsdump_logfile touch
bzip2recover ip ntfsfix true
bzless kbd_mode ntfsinfo udevadm
bzmore kill ntfsls ulockmgr_server
cat kmod ntfsmftalloc umount
cgroups-mount less ntfsmove uname
cgroups-umount lessecho ntfstruncate uncompress
chacl lessfile ntfswipe unicode_start
chgrp lesskey open vdir
chmod lesspipe openvt vmmouse_detect
chown ln pidof which
chvt loadkeys ping whiptail
cp login ping6 ypdomainname
cpio loginctl plymouth zcat
dash lowntfs-3g plymouth-upstart-bridge zcmp
date ls ps zdiff
dbus-cleanup-sockets lsblk pwd zegrep
dbus-daemon lsmod rbash zfgrep
dbus-uuidgen mkdir readlink zforce
dd mknod red zgrep
df mktemp rm zless
dir more rmdir zmore
dmesg mount rnano znew
dnsdomainname mountpoint running-in-container zsh
domainname mt run-parts zsh5
dumpkeys mt-gnu rzsh
echo mv sed
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
Listening shell:
➜ /bin echo $$
17056
➜ /bin ls
aclocal ed nano setfacl
aclocal-1.11 efibootmgr nc setfont
automake egrep nc.openbsd setupcon
automake-1.11 false netcat sh
bash fgconsole netstat sh.distrib
bunzip2 fgrep nisdomainname sleep
busybox findmnt ntfs-3g ss
bzcat fuser ntfs-3g.probe static-sh
bzcmp fusermount ntfs-3g.secaudit stty
bzdiff getfacl ntfs-3g.usermap su
bzegrep grep ntfscat sync
bzexe gunzip ntfsck tailf
bzfgrep gzexe ntfscluster tar
bzgrep gzip ntfscmp tempfile
bzip2 hostname ntfsdump_logfile touch
bzip2recover ip ntfsfix true
bzless kbd_mode ntfsinfo udevadm
bzmore kill ntfsls ulockmgr_server
cat kmod ntfsmftalloc umount
cgroups-mount less ntfsmove uname
cgroups-umount lessecho ntfstruncate uncompress
chacl lessfile ntfswipe unicode_start
chgrp lesskey open vdir
chmod lesspipe openvt vmmouse_detect
chown ln pidof which
chvt loadkeys ping whiptail
cp login ping6 ypdomainname
cpio loginctl plymouth zcat
dash lowntfs-3g plymouth-upstart-bridge zcmp
date ls ps zdiff
dbus-cleanup-sockets lsblk pwd zegrep
dbus-daemon lsmod rbash zfgrep
dbus-uuidgen mkdir readlink zforce
dd mknod red zgrep
df mktemp rm zless
dir more rmdir zmore
dmesg mount rnano znew
dnsdomainname mountpoint running-in-container zsh
domainname mt run-parts zsh5
dumpkeys mt-gnu rzsh
echo mv sed
I have another error. This is tmux panes:
/tmp/zozo $ echo $$
11787
/tmp/zozo $ ls
test test_
/tmp/zozo $
──────────────────────────────────────────────────────────────────────────────────────────
Attach process 11787
test test_
Debugger error: [KeyError] 514L
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/ispy/ispy.py", line 185, in _main
self.runDebugger()
File "/usr/local/lib/python2.7/dist-packages/ispy/ispy.py", line 175, in runDebugger
self.syscallTrace(process)
File "/usr/local/lib/python2.7/dist-packages/ispy/ispy.py", line 126, in syscallTrace
self.syscall(process)
File "/usr/local/lib/python2.7/dist-packages/ispy/ispy.py", line 130, in syscall
syscall = state.event(self.syscall_options)
File "build/bdist.linux-x86_64/egg/ptrace/debugger/syscall_state.py", line 13, in event
return self.exit()
File "build/bdist.linux-x86_64/egg/ptrace/debugger/syscall_state.py", line 32, in exit
self.syscall.exit()
File "build/bdist.linux-x86_64/egg/ptrace/syscall/ptrace_syscall.py", line 129, in exit
self.result, errorcode[-self.result], strerror(-self.result))
KeyError: 514L
/tmp $
Here's the output of the shell it was listening on