Bug 358241 - untruncated environment strings are printed with ellipsis anyway
Summary: untruncated environment strings are printed with ellipsis anyway
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: strace
Version: 8
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Roland McGrath
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: bzcl34nup
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-10-30 14:29 UTC by John Reiser
Modified: 2008-04-04 15:29 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-04 15:29:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Reiser 2007-10-30 14:29:51 UTC
Description of problem: When strace -v prints environment strings, then most
short ones get printed with ellipsis ("...") even though they are not truncated,
and are less than the length of a "long string".


Version-Release number of selected component (if applicable):
strace-4.5.16-2.fc8


How reproducible: always


Steps to Reproduce:
1. strace -e trace=execve -v date
2.
3.
  
Actual results:
execve("/bin/date", ["date"], ["SSH_AGENT_PID=3133",
"HOSTNAME=f8test3-32.localdomain"..., "SHELL=/bin/bash"..., "TERM=xterm"...,
"DESKTOP_STARTUP_ID="..., "HISTSIZE=1000"...,
"XDG_SESSION_COOKIE=47e96c94f225b"..., "GTK_RC_FILES=/etc/gtk/gtkrc:/hom"...,
"WINDOWID=56712498"..., "GTK_MODULES=gnomebreakpad"..., "USER=jreiser"...,
"LS_COLORS=no=00:fi=00:di=00;34:l"..., "GNOME_KEYRING_SOCKET=/tmp/keyrin"...,
"SSH_AUTH_SOCK=/tmp/ssh-NZRqOH303"..., "SESSION_MANAGER=local/unix:@/tmp"...,
"USERNAME=jreiser"..., "MAIL=/var/spool/mail/jreiser"...,
"PATH=/usr/kerberos/bin:/usr/lib/"..., "DESKTOP_SESSION=default"...,
"GDM_XSERVER_LOCATION=local"..., "INPUTRC=/etc/inputrc"..., "PWD=/tmp"...,
"XMODIFIERS=@im=none"..., "LANG=en_US.UTF-8"..., "GNOME_KEYRING_PID=3030"...,
"GDM_LANG=en_US.UTF-8"..., "GDMSESSION=default"...,
"SSH_ASKPASS=/usr/libexec/openssh"..., "SHLVL=2"..., "HOME=/home/jreiser"...,
"GNOME_DESKTOP_SESSION_ID=Default", "LOGNAME=jreiser", "CVS_RSH=ssh",
"DBUS_SESSION_BUS_ADDRESS=unix:ab"..., "XDG_DATA_DIRS=/usr/local/share/:"...,
"LESSOPEN=|/usr/bin/lesspipe.sh %"..., "WINDOWPATH=7"..., "DISPLAY=:0.0"...,
"G_BROKEN_FILENAMES=1"..., "COLORTERM=gnome-terminal"...,
"XAUTHORITY=/tmp/.gdmQRKR0T"..., "_=/usr/bin/strace"...,
"OLDPWD=/data/Fedora8/logs"...]) = 0

Note the cases "SHELL=/bin/bash"..., "TERM=xterm"..., (etc.).  Nothing has been
truncated, so there should be no ellipsis.

Expected results: ellipsis ["..."] only when each individual name=value pair
exceeds the long-string threshhold, and so will have been truncated for printing.


Additional info: Possibly: some counter or flag is not being reset to zero for
each environment string.

Comment 1 Roland McGrath 2007-11-01 20:25:39 UTC
Consistent reproducer independent of user's env:

env -i LONG=12345678901234567890 FOO=1 ./strace -e trace=execve -v /bin/date

Comment 2 Roland McGrath 2007-11-01 23:54:14 UTC
Fixed upstream.

Comment 3 Bug Zapper 2008-04-04 14:20:50 UTC
Based on the date this bug was created, it appears to have been reported
during the development of Fedora 8. In order to refocus our efforts as
a project we are changing the version of this bug to '8'.

If this bug still exists in rawhide, please change the version back to
rawhide.
(If you're unable to change the bug's version, add a comment to the bug
and someone will change it for you.)

Thanks for your help and we apologize for the interruption.

The process we're following is outlined here:
http://fedoraproject.org/wiki/BugZappers/F9CleanUp

We will be following the process here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this
doesn't happen again.

Comment 4 John Reiser 2008-04-04 15:29:51 UTC
Fixed in strace.x86_64 0:4.5.16-5.fc9.




Note You need to log in before you can comment on or make changes to this bug.