Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 594724 Details for
Bug 835838
Process does not exist, but "/bin/kill -0" and "kill -0" return 0
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Bash session
Invisible process session.txt (text/plain), 7.47 KB, created by
David Tonhofer
on 2012-06-27 09:13:14 UTC
(
hide
)
Description:
Bash session
Filename:
MIME Type:
Creator:
David Tonhofer
Created:
2012-06-27 09:13:14 UTC
Size:
7.47 KB
patch
obsolete
>....Process has been terminated, but a script inists it still exists; investigate. > The first "kill" I use here is the bash builtin (I suppose), switching to /bin/kill later. > ># kill -0 6156 ># echo $? >0 > >....So that process is apparently there. > "kill -0" is supposed to send signal 0, but the recommended syntax would be "kill -s 0" > This is confusing. > ># /bin/kill -0 6156 ># echo $? >0 > >....Same effect. Check whether process exists: > ># ps faux | grep 6156 >root 6858 0.0 0.0 103240 828 pts/1 S+ 10:45 0:00 | \_ grep 6156 > >....More check: > ># ls /proc/ >Display all 328 possibilities? (y or n) >1/ 1129/ 13/ 23878/ 29278/ 348/ 4253/ 4648/ 4916/ 59/ 940/ interrupts self/ >10/ 1130/ 14/ 23879/ 29279/ 3497/ 428/ 4662/ 4922/ 6/ 943/ iomem slabinfo >1082/ 1131/ 15/ 23880/ 29280/ 35/ 429/ 4666/ 4924/ 60/ 946/ ioports softirqs >1083/ 1132/ 1564/ 23881/ 29281/ 3515/ 4296/ 47/ 4926/ 61/ 950/ irq/ stat >1085/ 1133/ 1587/ 23882/ 29282/ 3518/ 43/ 4717/ 4934/ 62/ 954/ kallsyms swaps >1086/ 1134/ 1588/ 23986/ 29283/ 3519/ 430/ 4720/ 4936/ 63/ 957/ kcore sys/ >11/ 1135/ 1589/ 23987/ 29284/ 3521/ 431/ 4728/ 4938/ 6390/ 960/ keys sysrq-trigger >111/ 1136/ 1590/ 23988/ 29285/ 3541/ 4311/ 4730/ 4943/ 64/ 963/ key-users sysvipc/ >1111/ 1137/ 16/ 23989/ 298/ 3557/ 432/ 4732/ 4966/ 65/ 969/ kmsg timer_list >1112/ 1138/ 1601/ 23990/ 299/ 3566/ 4320/ 4733/ 5/ 6522/ 974/ kpagecount timer_stats >1113/ 1139/ 1620/ 24/ 3/ 3578/ 4328/ 4734/ 50/ 66/ acpi/ kpageflags tty/ >1114/ 1140/ 1638/ 24008/ 30/ 3594/ 4340/ 4736/ 51/ 67/ buddyinfo loadavg uptime >1115/ 1141/ 1666/ 24009/ 3038/ 36/ 4350/ 4738/ 519/ 68/ bus/ locks version >1116/ 1142/ 1667/ 24010/ 31/ 37/ 4370/ 475/ 52/ 6938/ cgroups mdstat vmallocinfo >1117/ 1143/ 1668/ 24011/ 32/ 38/ 44/ 4785/ 53/ 7/ cmdline meminfo vmstat >1118/ 1144/ 1669/ 24012/ 33/ 39/ 4425/ 4787/ 5317/ 700/ cpuinfo misc zoneinfo >1119/ 1145/ 1673/ 25/ 331/ 391/ 4427/ 48/ 5368/ 73/ crypto modules >1120/ 1146/ 17/ 26/ 332/ 3926/ 4437/ 4816/ 54/ 74/ devices mounts >1121/ 1147/ 18/ 26533/ 3394/ 393/ 4448/ 4886/ 55/ 75/ diskstats mtd >1122/ 1148/ 19/ 26534/ 34/ 3945/ 4462/ 4887/ 56/ 76/ dma mtrr >1123/ 1149/ 2/ 26536/ 3405/ 4/ 4490/ 4888/ 57/ 79/ dri/ net/ >1124/ 1150/ 20/ 27/ 3406/ 40/ 45/ 4891/ 5754/ 8/ driver/ pagetypeinfo >1125/ 1175/ 21/ 28/ 3423/ 41/ 4538/ 4895/ 58/ 80/ execdomains partitions >1126/ 1176/ 22/ 2805/ 3465/ 4142/ 4545/ 49/ 5823/ 9/ fb sched_debug >1127/ 1177/ 23/ 2823/ 3474/ 42/ 4597/ 4913/ 5840/ 919/ filesystems schedstat >1128/ 12/ 23701/ 29/ 3475/ 4219/ 46/ 4914/ 5874/ 937/ fs/ scsi/ > >....No 6156. Check with /bin/kill to make sure. > ># strace /bin/kill -0 6156 >execve("/bin/kill", ["/bin/kill", "-0", "6156"], [/* 36 vars */]) = 0 >brk(0) = 0xc8e000 >mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe99ac53000 >access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) >open("/etc/ld.so.cache", O_RDONLY) = 3 >fstat(3, {st_mode=S_IFREG|0644, st_size=90299, ...}) = 0 >mmap(NULL, 90299, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fe99ac3c000 >close(3) = 0 >open("/lib64/libc.so.6", O_RDONLY) = 3 >read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\355\341a4\0\0\0"..., 832) = 832 >fstat(3, {st_mode=S_IFREG|0755, st_size=1918016, ...}) = 0 >mmap(0x3461e00000, 3741864, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3461e00000 >mprotect(0x3461f89000, 2093056, PROT_NONE) = 0 >mmap(0x3462188000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x188000) = 0x3462188000 >mmap(0x346218d000, 18600, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x346218d000 >close(3) = 0 >mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe99ac3b000 >mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe99ac3a000 >mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe99ac39000 >arch_prctl(ARCH_SET_FS, 0x7fe99ac3a700) = 0 >mprotect(0x3462188000, 16384, PROT_READ) = 0 >mprotect(0x3461c1f000, 4096, PROT_READ) = 0 >munmap(0x7fe99ac3c000, 90299) = 0 >brk(0) = 0xc8e000 >brk(0xcaf000) = 0xcaf000 >open("/usr/lib/locale/locale-archive", O_RDONLY) = 3 >fstat(3, {st_mode=S_IFREG|0644, st_size=99158576, ...}) = 0 >mmap(NULL, 99158576, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fe994da8000 >close(3) = 0 >kill(6156, SIG_0) = 0 >exit_group(0) = ? > >....So we really signal 6156 with 0. But where is it? > ># /bin/kill 6156 > >....It responds to SIGTERM! > ># /bin/kill -0 6156 >kill 6156: No such process > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 835838
: 594724