Closed
Description
by ziutek@Lnet.pl:
What steps will reproduce the problem? Compile attached test code. Run it as root like this: # GOMAXPROCS=4 ./test 65534 65534 and note output: gorutine 1: uid=0 euid=0 gid=0 egid=0 gorutine 2: uid=0 euid=0 gid=0 egid=0 gorutine 3: uid=0 euid=0 gid=0 egid=0 gorutine 4: uid=0 euid=0 gid=0 egid=0 gorutine 5: uid=0 euid=0 gid=0 egid=0 gorutine 6: uid=0 euid=0 gid=0 egid=0 gorutine 7: uid=0 euid=0 gid=0 egid=0 gorutine 8: uid=0 euid=0 gid=0 egid=0 gorutine 9: uid=0 euid=0 gid=0 egid=0 gorutine 0: uid=65534 euid=65534 gid=65534 egid=65534 gorutine 1: uid=0 euid=0 gid=0 egid=0 gorutine 2: uid=0 euid=0 gid=0 egid=0 gorutine 3: uid=0 euid=0 gid=0 egid=0 gorutine 4: uid=0 euid=0 gid=0 egid=0 gorutine 5: uid=0 euid=0 gid=0 egid=0 gorutine 6: uid=0 euid=0 gid=0 egid=0 gorutine 7: uid=0 euid=0 gid=0 egid=0 gorutine 8: uid=0 euid=0 gid=0 egid=0 gorutine 9: uid=0 euid=0 gid=0 egid=0 gorutine 0: uid=65534 euid=65534 gid=65534 egid=65534 Use ps -efL during test execution and note output: UID PID PPID LWP C NLWP STIME TTY TIME CMD nobody 26088 25928 26088 0 10 11:56 pts/1 00:00:00 ./test 65534 65534 root 26088 25928 26089 0 10 11:56 pts/1 00:00:00 ./test 65534 65534 root 26088 25928 26090 0 10 11:56 pts/1 00:00:00 ./test 65534 65534 root 26088 25928 26091 0 10 11:56 pts/1 00:00:00 ./test 65534 65534 root 26088 25928 26092 0 10 11:56 pts/1 00:00:00 ./test 65534 65534 root 26088 25928 26093 0 10 11:56 pts/1 00:00:00 ./test 65534 65534 root 26088 25928 26094 0 10 11:56 pts/1 00:00:00 ./test 65534 65534 root 26088 25928 26095 0 10 11:56 pts/1 00:00:00 ./test 65534 65534 root 26088 25928 26096 0 10 11:56 pts/1 00:00:00 ./test 65534 65534 root 26088 25928 26097 0 10 11:56 pts/1 00:00:00 ./test 65534 65534 What is the expected output? All threads must have the same UID/GID: (65534, nobody user in my system). Which compiler are you using (5g, 6g, 8g, gccgo)? I tested this with 6g and 8g. Which operating system are you using? Linux (Debian 6.0 SID on i386, Ubuntu 10.10 on amd64) Which revision are you using? (hg identify) d8ba80011a98 release/release.2011-01-20 Please provide any additional information below. http://groups.google.com/group/golang-nuts/browse_thread/thread/59597aafdd84a0e
Attachments:
- test.go (1067 bytes)
Metadata
Metadata
Assignees
Labels
Type
Projects
Relationships
Development
No branches or pull requests
Activity
gopherbot commentedon Jan 21, 2011
Comment 1 by m@capitanio.org:
alberts commentedon Jan 21, 2011
Comment 2:
alberts commentedon Jan 21, 2011
Comment 3:
gopherbot commentedon Jan 21, 2011
Comment 4 by m@capitanio.org:
gopherbot commentedon Jan 21, 2011
Comment 5 by ziutek@Lnet.pl:
gopherbot commentedon Jan 21, 2011
Comment 6 by m@capitanio.org:
robpike commentedon Jan 21, 2011
Comment 7:
Owner changed to r...@golang.org.
Status changed to Accepted.
rsc commentedon Jan 21, 2011
Comment 8:
Status changed to LongTerm.
gopherbot commentedon Jan 21, 2011
Comment 9 by ziutek@Lnet.pl:
Attachments:
gopherbot commentedon Jan 21, 2011
Comment 10 by ziutek@Lnet.pl:
rsc commentedon Jan 21, 2011
Comment 11:
gopherbot commentedon Jan 21, 2011
Comment 12 by ziutek@Lnet.pl:
gopherbot commentedon Jan 21, 2011
Comment 13 by ziutek@Lnet.pl:
rsc commentedon Jan 21, 2011
Comment 14:
gopherbot commentedon Jan 21, 2011
Comment 15 by m@capitanio.org:
227 remaining items