delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Andrew DeFaria <Andrew DOT DeFaria AT tellabs DOT com> |
Subject: | Re: /proc/*/cmdline corrupted |
Date: | Thu, 13 Oct 2011 11:13:45 -0700 |
Lines: | 71 |
Message-ID: | <j779or$bp6$1@dough.gmane.org> |
References: | <CAG_2cT=rmeJpmZbYDo7RAwjNcTTDSTH1SMhuzzL9qi09ZJwGyA AT mail DOT gmail DOT com> <CAG_2cTmn8+ZQSyu2YAxW2vLJQ+MF-xuXw11sZen6otTCaKvyKw AT mail DOT gmail DOT com> |
Mime-Version: | 1.0 |
User-Agent: | Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 |
In-Reply-To: | <CAG_2cTmn8+ZQSyu2YAxW2vLJQ+MF-xuXw11sZen6otTCaKvyKw@mail.gmail.com> |
X-Stationery: | 0.7.5 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 10/13/2011 11:02 AM, Jon Clugston wrote: > On Wed, Oct 12, 2011 at 11:07 AM, Jon Clugston<jon DOT clugston AT gmail DOT com> wrote: >> Greetings, >> >> When I run "procps -ef" I get corrupted command line parameters: >> >> jc807j@~>procps -ef >> UID PID PPID C STIME TTY TIME CMD >> jc807j 5852 1 0 08:59 tty0 00:00:03 X :0 -multiwindow >> jc807j 2668 1 0 08:59 tty0 00:00:00 xterm -e ssh server >> 80x72+285+0 -e ssh server >> jc807j 3004 1 0 08:59 tty0 00:00:00 xterm -e ssh server >> 80x72-8+0 -e ssh server >> jc807j 3392 3004 0 08:59 tty0 00:00:00 ssh server >> jc807j 5960 2668 0 08:59 tty1 00:00:00 ssh server >> jc807j 2928 5852 0 09:12 ? 00:00:00 xterm 20000 +tb >> jc807j 4608 2928 0 09:12 tty2 00:00:00 bash >> jc807j 5800 4608 1 10:57 tty2 00:00:00 procps -ef >> >> The actual command lines for the 3 xterm processes are: >> >> C:\cygwin\bin\xterm.exe -sl 20000 +tb -geometry 80x72+285+0 -e ssh server >> C:\cygwin\bin\xterm.exe -sl 20000 +tb -geometry 80x72-8+0 -e ssh server >> C:\cygwin\bin\xterm.exe -sl 20000 +tb >> >> as reported by the "listdlls" tool. >> >> I have verified that the "/proc/*/cmdline" is the source of the >> corrupted information. "cmdline" from PID 2928 is: >> >> jc807j@~>od -c /proc/2928/cmdline >> 0000000 x t e r m \0 \0 2 0 0 0 0 \0 + t b >> 0000020 \0 >> 0000021 >> > I am able to reproduce the problem by simply executing the following > command line: > > xterm -sl 20000 +tb -geometry 80x72+285+0 -e ssh server > > (obviously w/ X running). I wrote a simple shell script which does > nothing except sleep and I called it with the same command line > parameters and it didn't have the problem. So, it appears that the > problem is related to "xterm" or something that "xterm" does. > > I also shortened/simplified the command line (to "xterm") and it was > still corrupted (the "-sl" was missing): > > xterm -sl 20000 +tb -geometry 80x72+285+0 > > I tried to reproduce by creating long command lines to other commands > and none were corrupted. > > Does "xterm" step on its command line? While not an answer to your question, why not just put the following in your ~/.Xdefaults: serverTerm*saveLines: 20000 serverTerm*toolBar: false serverTerm*geometry: 80x72+285+0 and invoke xterm with: $ xterm -name serverTerm -e ssh server and be done with it? -- Andrew DeFaria <http://defaria.com> You know how it is when you're walking up the stairs, and you get to the top, and you think there's one more step? I'm like that all the time. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |