This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.5.18: ld command generates stackdump


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]