Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT cygwin DOT com Delivered-To: mailing list cygwin-developers AT cygwin DOT com X-WM-Posted-At: avacado.atomice.net; Thu, 4 Jul 02 16:21:09 +0100 Message-ID: <003101c2236e$6cbdada0$0100a8c0@advent02> From: "Chris January" To: "Pavel Tsekov" Cc: References: <00b901c21df9$1c9e3df0$0100a8c0 AT advent02> <20020627163750 DOT GA27819 AT redhat DOT com> <010901c21dfa$de6d74e0$0100a8c0 AT advent02> <3D1B5A59 DOT 7090609 AT ece DOT gatech DOT edu> <3D1B92A6 DOT 4020707 AT ece DOT gatech < <001601c22365$9e42eb50$0100a8c0 AT advent02> <14716164963 DOT 20020704162722 AT syntrex DOT com> Subject: Re: Re[6]: vmstat Date: Thu, 4 Jul 2002 16:21:07 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 > CJ> uptime reads the /proc files regardless of what options you pass. > > int main(int argc, char *argv[]) { > if(argc == 1) print_uptime(); > if((argc == 2) && (!strcmp(argv[1], "-V"))) display_version(); > return 0; > } > > How ? Try re-compiling with print_uptime commented out. Notice how it works. Now put print_uptime back in. Notice how it doesn't work, regardless of what arguments you pass. Magic! Run it in gdb - notice how it doesn't reach the first line after main(). Notice how stepping assembly instructions the program wanders off into invalid memory. Sorry, but I have no idea why this happens. It does *not* happen with my own build of the Cygwin DLL. With this, all the procps utilities work fine. This would suggest something is seriously wrong with: a) the 1.3.12 DLL or b) my build environment or c) a combination of both It would be greatly appreciated if you could build the package yourself and see what happens. If you still see the same problem, this would suggest a problem with the DLL. If not, this would suggest a problem with my build environment. Chris