X-Spam-Check-By: sourceware.org From: "Dave Korn" To: References: <20070718100058 DOT 203680 AT gmx DOT net> <20070718105312 DOT 83940 AT gmx DOT net> <026a01c7c932$4cae0810$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <20070718121556 DOT 83920 AT gmx DOT net> <026e01c7c936$bad581c0$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <20070718133420 DOT 83920 AT gmx DOT net> <027901c7c941$c6e51e70$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <20070718140257 DOT 83920 AT gmx DOT net> Subject: RE: Own Compiled Program Immediately Crashes on Startup Date: Wed, 18 Jul 2007 15:23:21 +0100 Message-ID: <027e01c7c947$31c0d310$2e08a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20070718140257.83920@gmx.net> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Note-from-DJ: This may be spam Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l6IENVQu030531 On 18 July 2007 15:03, Hans Streibel wrote: > Hello Dave, > >> Hey, I've never seen it before. I guess it isn't the problem then. >> Trouble is, there's very little else goes on before main. > > Startup code, crt0.o Yep, but that's pretty much the same in every cygwin app, so I would expect any bugs in it to manifest more widely. > >> Hans, is there any C++ with static objects with constructors in >> this program? > > No, all is plain old C (K&R, pre ANSI C I guess). Fair enough, I was just thinking that the other main thing to happen before startup is .init c-tors running. >>> How can I link to a dll directly? It is a dynamic library so >>> as far as I know there is nothing the linker could do here. >> >> You specify "-l", and the compiler and linker find the import >> stub library (.dll.a) for you. That's all I meant by the phrase. > > I put a "-lcygwin" just in front of the "-lncurses". > No difference. Sorry, I haven't been clear; that was only relevant to the theoretical case that you were invoking the linker directly. Since you're using the gcc driver, nonoe of this should be necessary. >> Anyway, I guess the next thing to try is invoke the executable under >> gdb and see if that shows you any more useful information about where >> it's gotten to when it crashes. > > I already did so. Have a look at the "typescript1" attachment > in my original posting. gdb just issues an error that I cannot > understand. But I even get that same gdb error when I try to debug > my running "hello world" program. Thus I suppose it has something > to do with gdb. A different problem. Hmmm, or perhaps it's a real error that affects one of your target programs differently than the other. > gdb: unknown target exception 0xc0000135 at 0x7c974ed1 That's STATUS_DLL_NOT_FOUND. Interesting. I wonder if something's interfering with dll loading? > Program exited with code 030000000465. >~/private/src/jove/jove4.16.0.65 $ strace jjove.exe >--- Process 3076, exception C0000005 at 7C929994 >--- Process 3076, exception C0000005 at 7C974ED1 And those are STATUS_ACCESS_VIOLATION. Odd. Are you, by any chance, running any of: Sonic Solutions burning software containing DLA component Norton/MacAffee/Symantec antivirus or antispyware Logitech webcam software with "Logitech process monitor" service Kerio, Agnitum or ZoneAlarm Personal Firewall Iolo System Mechanic/AntiVirus/Firewall LanDesk Windows Defender Embassy Trust Suite fingerprint reader software wxvault.dll cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/