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

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: <010201c5d08b$9a89f090$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> <001901c5d085$1ef33410$1600a8c0 AT toyon DOT corp>
Subject: Re: 1.5.18: ld command generates stackdump
Date: Thu, 13 Oct 2005 23:50:45 -0700
MIME-Version: 1.0
X-IsSubscribed: yes

One last post before calling it a night. I built a debug version of the 
cygwin DLL as well and installed it. Here is the latest gdb session:

Attaching to program `/bin/ld.exe', process 304

[Switching to thread 304.0x990]
(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  0x862a0968 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 304.0x76c]
0x610c4914 in memcpy ()
    at ../../../../cygwin-1.5.18-1/winsup/cygserver/client.cc:464
464           syscall_printf ("cygserver un-available");
Current language:  auto; currently c++
(gdb) bt
#0  0x610c4914 in memcpy ()
    at ../../../../cygwin-1.5.18-1/winsup/cygserver/client.cc:464
#1  0x6100275e in crealloc (s=0x611ad488, n=262360)
    at ../../../../cygwin-1.5.18-1/winsup/cygwin/cygheap.cc:242
#2  0x61050c8e in list::add_record (this=0x61159870, r=
        {fdesc_ = -1, mapping_handle_ = 0x4a3c, access_mode_ = 1, flags_ 
= 34, o
ffset_ = 0, size_to_map_ = 8192, base_address_ = 0x2c9fe000 "", 
page_map_ = 0x0,
 dev = {name = 0x2000 <Address 0x2000 out of bounds>, {devn = 0, {minor 
= 0, maj
or = 0}}, native = 0x22 <Address 0x22 out of bounds>, mode = 4294967295, 
dev_on_
fs = false}}, off=0, len=8192)
    at ../../../../cygwin-1.5.18-1/winsup/cygwin/mmap.cc:375
#3  0x610516e4 in mmap64 (addr=0x0, len=8192, prot=1, flags=34, fd=-1, 
off=0)
    at ../../../../cygwin-1.5.18-1/winsup/cygwin/mmap.cc:749
#4  0x61051f79 in mmap (addr=0x0, len=8192, prot=3, flags=34, fd=-1, 
off=0)
    at ../../../../cygwin-1.5.18-1/winsup/cygwin/mmap.cc:768
#5  0x610ab36c in dlmalloc (bytes=0)
    at ../../../../cygwin-1.5.18-1/winsup/cygwin/malloc.cc:3341
#6  0x6104ed0a in malloc (size=4064)
    at ../../../../cygwin-1.5.18-1/winsup/cygwin/malloc_wrapper.cc:69
#7  0x610844ff in _sigfe ()
    at ../../../../cygwin-1.5.18-1/winsup/cygwin/cygserver.h:82
#8  0x0022e968 in ?? ()
#9  0x004227f9 in bfd_section_hash_newfunc (entry=0x2c9aa4d8,
    table=<incomplete type>, string=0x22e9a8 "Oé\"") at section.c:738
#10 0x00428f50 in bfd_alloc (abfd=0x2c9aa418, size=320) at opncls.c:853
#11 0x00428f9e in bfd_zalloc (abfd=0x2c9aa418, size=320) at opncls.c:876
#12 0x00432e77 in coff_new_section_hook (abfd=0x2c9aa418, 
section=0x2c9fb7a0)
    at coffcode.h:1569
#13 0x0042288c in bfd_section_init (abfd=0x2c9aa418, newsect=0x2c9fb7a0)
    at section.c:773
#14 0x00422cee in bfd_make_section_anyway (abfd=0x2c9aa418,
    name=0x2c9fd8b8 ".rdata$_ZTV15TCMapProjection") at section.c:1084
#15 0x0042f375 in coff_object_p (abfd=0x2c9aa418) at coffgen.c:99
#16 0x004284a7 in bfd_check_format_matches (abfd=0x2c9aa418,
    format=bfd_object, matching=0x0) at format.c:167
#17 0x0042857e in bfd_check_format (abfd=0x2c9aa418, format=bfd_object)
    at format.c:91
#18 0x004239ba in _bfd_generic_link_add_archive_symbols 
(abfd=0x2c538620,
    info=0x4af0c0, checkfn=0x4455b0 <coff_link_check_archive_element>)
    at linker.c:1085
#19 0x00445566 in _bfd_coff_link_add_symbols (abfd=0x2c538620,
    info=<incomplete type>) at cofflink.c:166
#20 0x00409be4 in load_symbols (entry=0x2c538620, place=0x1) at 
ldlang.c:2275
#21 0x0040a5ed in open_input_bfds (s=0x4af0c0, force=1) at ldlang.c:2685
#22 0x0040f3a2 in lang_process () at ldlang.c:5288
#23 0x00411765 in main (argc=153, argv=0x61156a48) at 
.././ld/ldmain.c:460
(gdb)

Looks like it is craching on

464           syscall_printf ("cygserver un-available");

in memcpy. Make any sense?

Will check the list tomorrow. TIA.
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