delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/10/14/02:02:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <001901c5d085$1ef33410$1600a8c0@toyon.corp>
From: "Peter J. Stieber" <developer AT toyon DOT com>
To: <cygwin AT cygwin DOT com>
References: <045001c5cd2c$657579e0$1600a8c0 AT toyon DOT corp> <diccd2$s2d$1 AT sea DOT gmane DOT org> <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> <20051014055247 DOT GA15887 AT trixie DOT casa DOT cgf DOT cx>
Subject: Re: 1.5.18: ld command generates stackdump
Date: Thu, 13 Oct 2005 23:04:21 -0700
MIME-Version: 1.0
X-IsSubscribed: yes

CGF> It is useless.  You probaby have to continue
CGF> after ld has been attached to see where the
CGF> SEGV really is coming from.

Thanks. Here is the result...

GNU gdb 6.3.50_2004-12-28-cvs (cygwin-special)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you 
are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for 
details.
This GDB was configured as "i686-pc-cygwin"...
Attaching to program `/bin/ld.exe', process 4060
[Switching to thread 4060.0x9f8]
(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  0x195dffd0 in ?? ()
#6  0x867810e8 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) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
[Switching to thread 4060.0xf60]
0x610c4914 in memcpy () from /bin/cygwin1.dll
(gdb) bt
#0  0x610c4914 in memcpy () from /bin/cygwin1.dll
#1  0x6100275e in toascii () from /bin/cygwin1.dll
#2  0x61050c8e in lsearch () from /bin/cygwin1.dll
#3  0x610516e4 in lsearch () from /bin/cygwin1.dll
#4  0x61051f79 in lsearch () from /bin/cygwin1.dll
#5  0x610ab36c in setstate () from /bin/cygwin1.dll
#6  0x6104ed0a in lsearch () from /bin/cygwin1.dll
#7  0x610844ff in cygwin1!aclcheck () from /bin/cygwin1.dll
#8  0x00428f50 in bfd_alloc (abfd=0x2c9aa418, size=320) at opncls.c:853
#9  0x00428f9e in bfd_zalloc (abfd=0x2c9aa418, size=320) at opncls.c:876
#10 0x00432e77 in coff_new_section_hook (abfd=0x2c9aa418, 
section=0x2c9fb7a0)
    at coffcode.h:1569
#11 0x0042288c in bfd_section_init (abfd=0x2c9aa418, newsect=0x2c9fb7a0)
    at section.c:773
#12 0x00422cee in bfd_make_section_anyway (abfd=0x2c9aa418,
    name=0x2c9fd8b8 ".rdata$_ZTV15TCMapProjection") at section.c:1084
#13 0x0042f375 in coff_object_p (abfd=0x2c9aa418) at coffgen.c:99
#14 0x004284a7 in bfd_check_format_matches (abfd=0x2c9aa418,
    format=bfd_object, matching=0x0) at format.c:167
#15 0x0042857e in bfd_check_format (abfd=0x2c9aa418, format=bfd_object)
    at format.c:91
#16 0x004239ba in _bfd_generic_link_add_archive_symbols 
(abfd=0x2c538620,
    info=0x4af0c0, checkfn=0x4455b0 <coff_link_check_archive_element>)
    at linker.c:1085
#17 0x00445566 in _bfd_coff_link_add_symbols (abfd=0x2c538620,
    info=<incomplete type>) at cofflink.c:166
#18 0x00409be4 in load_symbols (entry=0x2c538620, place=0x1) at 
ldlang.c:2275
#19 0x0040a5ed in open_input_bfds (s=0x4af0c0, force=1) at ldlang.c:2685
#20 0x0040f3a2 in lang_process () at ldlang.c:5288
#21 0x00411765 in main (argc=153, argv=0x61156a48) at 
.././ld/ldmain.c:460
(gdb)

Now we're getting somewhere. TCMapProjection is a class in one of my 
libraries. What next?

Sorry for being a pest.
Pete 



--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019