Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Thu, 24 Jun 2004 09:48:55 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Alan Larkin cc: cygwin AT cygwin DOT com Subject: Re: Old Cygwin Versions -or- Elusive Compatability Problem In-Reply-To: <005301c459e6$1eeec090$5f8401c1@elmoii> Message-ID: References: <005301c459e6$1eeec090$5f8401c1 AT elmoii> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Thu, 24 Jun 2004, Alan Larkin wrote: > I posted on this subject quite some time ago, but the problem has reared > its ugly head once again. > > I have a C/C++ project which I compile using the Autotools via Cygwin. > The project is a Java profiler built upon the Java Virtual Machine > Profiling Interface (JVMPI). The problem is that although the build > passes off okay, any attempt to run the program (which is plugged into > the JVM using the -Xrun flag) causes a completely silent crash ... not a > hint of an error message or error log. FWIW, I didn't find a -Xrun flag in the Sun JDK. I did find a -Xrunhprof flag, which doesn't seem to allow running an external program... You should let the list know if you're using another JDK. BTW, from your description above, it's unclear whether you actually run an executable, or dynamically load a DLL. If the latter, you should know that the Cygwin DLL is not amenable to dynamic loading, and there are no plans to fix it ATM. If the former, you did try running the Cygwin process under strace, right? I would ask whether the program even *finds* the necessary DLLs, but the fact that it worked with 1.5.5 is a good indication that it does. Does the program run when invoked from the command line separately? > Before, I (*eventually*) discovered that the problem was caused by the > Cygwin dll. I was then probably using version 1.5.9-1. I rolled this back to > 1.5.5-1, which necessitated the rolling back of ash to version 20031007-1. > This did the trick and everything worked as it should. > > I have not updated my Cygwin since, for fear it would cause the crash again. > However another member of our group is now attempting to use my software. He > downloaded the latest Cygwin files and sure enough there was the silent > crash. He attempted to roll back from Cygwin 1.5.10-3 to 1.5.9ish (Im not > sure exactly which version it was but it was the oldest one available) but > still no joy. > > So the question is either what could be causing this problem, OR how do we > get older versions of the Cygwin dll? I can send a tar.gz of the project to > anyone who really wants to try investigate this problem, although it does > involve some configury. Preferably, if there is any information that could > help to diagnose it, ask and ye shall receive. > > Many thanks, > Al. See above. It would help to know exactly what you're doing, at least the exact version of Java you're running and the command line for the java invocation. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/