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 Date: Fri, 14 Oct 2005 01:52:47 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: 1.5.18: ld command generates stackdump Message-ID: <20051014055247.GA15887@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com References: <045001c5cd2c$657579e0$1600a8c0 AT toyon DOT corp> <056901c5cd3e$3986d010$1600a8c0 AT toyon DOT corp> <434A5ADB DOT 2080602 AT byu DOT net> <20051010151806 DOT GC14608 AT trixie DOT casa DOT cgf DOT cx> <20051010153309 DOT GD14608 AT trixie DOT casa DOT cgf DOT cx> <036201c5d04a$7f485010$1600a8c0 AT toyon DOT corp> <434EF021 DOT 8C23A29 AT dessent DOT net> <20051014022412 DOT GC4476 AT trixie DOT casa DOT cgf DOT cx> <007101c5d078$a71a2a90$1600a8c0 AT toyon DOT corp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <007101c5d078$a71a2a90$1600a8c0@toyon.corp> User-Agent: Mutt/1.5.8i On Thu, Oct 13, 2005 at 09:35:06PM -0700, Peter J. Stieber wrote: >PS = Pete Stieber >PS>>> Do I also need to build a debug version of the cygwin DLL? > >BD = Brian Dessent >BD>>It would help, since otherwise backtraces will only have raw >BD>> addresses. Note that the cygwin configure script[*] has a >BD>> --enable-debugging switch, but this is for enabling lots of >BD>> runtime consistency checks and extra verbosity -- it is not >BD>> meant for enabling debug symbols, which you >BD>>should get by default. > >CF> Is this dying in the cygwin DLL? I suspect that it isn't. >CF> The stackdump file would show if it is, as would using >CF> CYGWIN error_start setting that I mentioned previously. >CF> >CF> I don't think there's any reason to build a debugging >CF> version of cygwin unless the problem points to the >CF> cygwin DLL. > >Keeping in mind that I am having problems building binutils (mentioned >in a recent reply to Brian's post), here is the back trace from a >stripped version of ld using the technique you suggested. > >Attaching to program `/bin/ld.exe', process 3248 > >[Switching to thread 3248.0x850] >(gdb) bt >#0 0x7c901231 in ntdll!DbgUiConnectToDbg () > from /cygdrive/c/WINDOWS/system32/ntdll.dll >#1 0x7c9507a8 in ntdll!KiIntSystemCall () > from /cygdrive/c/WINDOWS/system32/ntdll.dll >#2 0x00000005 in ?? () >#3 0x00000004 in ?? () >#4 0x00000001 in ?? () >#5 0x1941ffd0 in ?? () >#6 0x3531283a in ?? () >#7 0xffffffff in ?? () >#8 0x7c90ee18 in strchr () from /cygdrive/c/WINDOWS/system32/ntdll.dll >#9 0x7c9507c8 in ntdll!KiIntSystemCall () > from /cygdrive/c/WINDOWS/system32/ntdll.dll >#10 0x00000000 in ?? () from >(gdb) > >This is probably useless, but just wanted to indicate I'm not ignoring >your advice. It is greatly appreciated. It is useless. You probaby have to continue after ld has been attached to see where the SEGV really is coming from. cgf -- 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/