amd64/167128: 'ps -e' or 'pw -wwe' doesn't display the environment of 32-bit processes

Hui Wang hui.wang.ca at gmail.com
Fri Apr 20 19:20:12 UTC 2012


>Number:         167128
>Category:       amd64
>Synopsis:       'ps -e' or 'pw -wwe' doesn't display the environment of 32-bit processes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-amd64
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 20 19:20:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Hui Wang
>Release:        FreeBSD 9.0
>Organization:
Juniper Networks
>Environment:
FreeBSD freebsd9 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64

>Description:
ps -e doesn't display the environment of a 32-bit process. 

test program:
cat t.c
int main() {
  printf("long int size is %i bytes long!\n", sizeof(long));
  sleep(3600);
}

gcc -m32 t.c

./a.out &

freebsd9# ps -e
PID  TT STAT TIME COMMAND
985  v0 Is   0:00.01 TERM=xterm login [pam] (login)
993  v0 S    0:00.08 USER=root LOGNAME=root HOME=/root SHELL=/bin/csh FTP_PA
1169 v0 S    0:00.00 ./a.out
 986 v1 Is+  0:00.00 USER=xterm /usr/libexec/getty Pc ttyv1

If I compile t.c without the -m32 option, the output looks file.


>How-To-Repeat:
1. compile the test program in 32-bit mode
2. run 'ps -e'
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-amd64 mailing list