Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Apr 2012 19:16:54 GMT
From:      Hui Wang <hui.wang.ca@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   amd64/167128: 'ps -e' or 'pw -wwe' doesn't display the environment of 32-bit processes
Message-ID:  <201204201916.q3KJGsE6021417@red.freebsd.org>
Resent-Message-ID: <201204201920.q3KJKA4j015225@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204201916.q3KJGsE6021417>