LD error (cygwin dll related)

Max Bowsher maxb@ukf.net
Wed Dec 5 02:33:00 GMT 2001


I have the same problem sometimes, with tar. The solution for me is to
shorten the PATH to just /bin. Perhaps you could try this, to see if the
problems are linked?

----- Original Message -----
From: "Stephano Mariani" <sk.cygml@btinternet.com>
To: <cygwin@cygwin.com>
Sent: Tuesday, December 04, 2001 9:24 PM
Subject: LD error (cygwin dll related)


I have a problem with LD on my windows XP box...

Usually when LD is invoked by gcc, while trying to link a DLL, it terminates
with signal 11 and a segfault (stackdump appended). This however goes away
when I kill all cygwin related processes (i.e. those than depend on cygwin
dll) then try this, it works fine!

I discovered this by accident, when using make to build one of my larger
projects, I use "make -j5" usually, and found LD crashed when there were
other cygwin processes running, but not when it was the only one (except
collect2 and gcc of course). This happens even when I have only two consoles
open (not  bash, but cmd.exe) and one is running cygwin's telnet, and the
other runs ld, but goes away if I terminate telnet.

Is this a Windows XP problem or a cygwin problem or a binutils bug? Should I
post to the binutils mailing list?

I have included the stackdump and the output from cygcheck -vsr...

Charlie

Exception: STATUS_ACCESS_VIOLATION at eip=00472418
eax=00000002 ebx=0000000A ecx=0042ACB8 edx=00000000 esi=0000000A
edi=0A014C08
ebp=0023FD74 esp=0023FD50 program=D:\cygwin\bin\ld.exe
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame     Function  Args
0023FD74  00472418  (0000000A, 0A07F038, 0A014C08, 00413815)
0023FDD4  0042ED9C  (0A014A38, 004881DC, 0023FE34, 004265D7)
0023FE34  004265EA  (0041441C, 0000005A, 0023FE74, 00417ABD)
0023FE44  00420014  (61555568, 0040FEDD, 0023FE74, 004178D0)
0023FE74  00417ABD  (00000004, 61099368, 0000005A, 00000004)
0023FEB4  0041AF94  (0000005A, 61555568, 0A010278, 00000000)
0023FF10  61003FA2  (00000000, 00000027, 00000300, 0000C48E)
0023FF40  610041B9  (0041A75C, 00000027, 00000008, 833F4000)
0023FF60  610041F9  (00000000, 00000000, 0000001F, B4297C94)
0023FF90  00482457  (0041A75C, 00000001, 00000000, 80576C70)
0023FFC0  0040103D  (00000027, 7FFDEC00, 7FFDF000, B4297CF4)
0023FFF0  77E7EB69  (00401000, 00000000, 78746341, 00000020)
End of stack trace


Cygnus Win95/NT Configuration Diagnostics
Current System Time: Tue Dec 04 21:12:32 2001

Windows XP Professional Ver 5.1 Build 2600

Path: D:\cygwin\usr\local\bin
 D:\cygwin\bin
 D:\cygwin\bin
 c:\WINDOWS\system32
 c:\WINDOWS
 c:\WINDOWS\System32\Wbem

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS

HOME = `D:\cygwin\home\cmiller'
MAKE_MODE = `unix'
PWD = `/home/cmiller/skar/skz'
USER = `cmiller'

!:: = `::\'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\cmiller\Application Data'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `PPS-01'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
DISKEEPERICON = `D:\DiskeeperServer\'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\cmiller'
LOGONSERVER = `\\PPS-01'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/home/cmiller/skar'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 6 Stepping 2, AuthenticAMD'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0602'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `f:\cmiller'
TERM = `cygwin'
USERDOMAIN = `PPS-01'
USERNAME = `cmiller'
USERPROFILE = `C:\Documents and Settings\cmiller'
WINDIR = `C:\WINDOWS'
_ = `/usr/bin/cygcheck'
__COMPAT_LAYER = `DisableThemes '

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000022
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `E:/cygwin'
  flags = 0x00000002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts
v2\/home/cmiller/skar
  (default) = `G:\skar\skar'
  flags = 0x00000002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `E:/cygwin/bin'
  flags = 0x00000002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `E:/cygwin/lib'
  flags = 0x00000002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrd
er\Start Menu2\Programs\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd           N/A    N/A
b:  net NTFS    4996Mb  40% CP CS UN PA FC     HARDDISK
c:  hd  NTFS    5004Mb  49% CP CS UN PA FC     WINXP_BOOT
d:  hd  NTFS    3004Mb  16% CP CS UN PA FC     WINXP_APP
e:  hd  NTFS    5004Mb   9% CP CS UN PA FC     WINXP_DEV
f:  hd  NTFS     753Mb  14% CP CS UN PA FC     TMP
g:  hd  NTFS    3012Mb   8% CP CS UN PA FC     PRGM
h:  hd  NTFS    1004Mb   1% CP CS UN PA FC     PRGMBK
i:  hd  NTFS    3004Mb   3% CP CS UN PA FC     SCRATCH
j:  hd  NTFS    2000Mb  13% CP CS UN PA FC     G_DEV
k:  hd  NTFS    2368Mb   1% CP CS UN PA FC     C_DEV
l:  hd  NTFS    8001Mb  28% CP CS UN PA FC     MEWZAK
m:  hd  NTFS    5004Mb  49% CP CS UN PA FC     BIG_SHIT
n:  hd  NTFS    4102Mb  98% CP CS UN PA FC     SWAP_PAGE
o:  hd  NTFS    2000Mb   1% CP CS UN PA FC     MISCDLZ
p:  hd  NTFS    2000Mb   1% CP CS UN PA FC     EXPMTL
q:  hd  NTFS    3004Mb   1% CP CS UN PA FC     SK_STUFF
r:  hd  NTFS    6628Mb  24% CP CS UN PA FC     MISC
s:  hd  NTFS    1506Mb  86% CP CS UN PA FC     HK
t:  hd  NTFS    5004Mb   1% CP CS UN PA FC     BACKUP
u:  hd  NTFS   15005Mb   7% CP CS UN PA FC     DLZ
v:  cd           N/A    N/A
w:  cd           N/A    N/A
z:  net NTFS   10574Mb  75% CP CS UN PA FC     SK_DATA

E:/cygwin      /                    user    binmode
G:\skar\skar   /home/cmiller/skar  user    binmode
E:/cygwin/bin  /usr/bin             user    binmode
E:/cygwin/lib  /usr/lib             user    binmode
.              /cygdrive            user    binmode,noumount

Found: D:\cygwin\bin\bash.exe
Found: D:\cygwin\bin\cat.exe
Found: D:\cygwin\bin\cpp.exe
Found: D:\cygwin\bin\find.exe
Found: D:\cygwin\bin\gcc.exe
Found: D:\cygwin\bin\gdb.exe
Found: D:\cygwin\bin\ld.exe
Found: D:\cygwin\bin\ls.exe
Found: D:\cygwin\bin\make.exe
Found: D:\cygwin\bin\sh.exe

   74k 2001/12/02 D:\cygwin\usr\local\bin\cygltdl-3.dll - os=4.0 img=1.0
sys=4.0
                  "cygltdl-3.dll" v0.0 ts=2001/12/2 14:22
   56k 2000/12/03 D:\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz21.0.dll" v0.0 ts=2000/11/20 23:53
  821k 2001/11/19 D:\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto.dll" v0.0 ts=2001/11/19 23:42
   99k 2001/11/20 D:\cygwin\bin\cygcurl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygcurl-2.dll" v0.0 ts=2001/11/20 16:45
   45k 2001/04/25 D:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2001/4/25 6:28
   34k 2001/09/30 D:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
                  "cygform6.dll" v0.0 ts=2001/9/30 3:43
   18k 2000/10/23 D:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2000/10/23 3:26
   17k 2001/06/28 D:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory4.dll" v0.0 ts=2001/1/7 4:34
   21k 2001/06/28 D:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory5.dll" v0.0 ts=2001/6/28 3:27
   21k 2001/06/20 D:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl.dll" v0.0 ts=2001/6/20 18:09
   81k 2000/12/05 D:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitcl30.dll" v0.0 ts=2000/11/26 1:43
   35k 2000/12/05 D:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitk30.dll" v0.0 ts=2000/11/26 1:43
   45k 2001/07/04 D:\cygwin\bin\cygjbig1.dll - os=4.0 img=1.0 sys=4.0
                  "cygjbig1.dll" v0.0 ts=2001/7/4 4:25
  119k 2001/06/06 D:\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0
                  "cygjpeg6b.dll" v0.0 ts=2001/6/6 5:27
   26k 2001/04/25 D:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2001/4/25 6:27
   19k 2001/09/30 D:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu6.dll" v0.0 ts=2001/9/30 3:43
  156k 2001/04/25 D:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2001/4/25 6:29
  175k 2001/09/30 D:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++6.dll" v0.0 ts=2001/9/30 3:45
  226k 2001/04/25 D:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2001/4/25 6:17
  201k 2001/09/30 D:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses6.dll" v0.0 ts=2001/9/30 3:42
   15k 2001/04/25 D:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2001/4/25 6:27
   12k 2001/09/30 D:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel6.dll" v0.0 ts=2001/9/30 3:43
   40k 2001/11/21 D:\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre.dll" v0.0 ts=2001/11/21 22:15
   39k 2001/11/21 D:\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix.dll" v0.0 ts=2001/11/21 22:15
  163k 2001/05/06 D:\cygwin\bin\cygpng2.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng2.dll" v0.0 ts=2001/5/6 5:05
  108k 2001/06/28 D:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline4.dll" v0.0 ts=2001/1/7 4:34
  135k 2001/06/28 D:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline5.dll" v0.0 ts=2001/6/28 3:27
   66k 2001/11/20 D:\cygwin\bin\cygregex.dll - os=4.0 img=1.0 sys=4.0
                  "cygregex.dll" v0.0 ts=2001/11/20 14:44
  231k 2001/11/19 D:\cygwin\bin\cygssl.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl.dll" v0.0 ts=2001/11/19 23:42
  390k 2000/12/05 D:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtcl80.dll" v0.0 ts=2000/11/26 1:39
    5k 2000/12/05 D:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
   10k 2000/12/05 D:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtclreg80.dll" v0.0 ts=2000/11/26 1:39
  245k 2001/06/12 D:\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0
                  "cygtiff3.dll" v0.0 ts=2001/6/12 18:25
  623k 2000/12/05 D:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtk80.dll" v0.0 ts=2000/11/26 1:43
   41k 2001/07/04 D:\cygwin\bin\cygXpm-noX4.dll - os=4.0 img=1.0 sys=4.0
                  "cygXpm-noX4.dll" v0.0 ts=2001/7/4 2:21
   45k 2001/07/04 D:\cygwin\bin\cygXpm-X4.dll - os=4.0 img=1.0 sys=4.0
                  "cygXpm-X4.dll" v0.0 ts=2000/11/20 2:45
   49k 2001/02/03 D:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2001/2/3 20:35
  720k 2001/12/03 D:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2001/12/3 20:41
    Cygwin DLL version info:
        DLL version: 1.3.6
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 47
        Shared data: 3
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix:
        Build date: Mon Dec 3 15:41:51 EST 2001
        CVS tag: cygwin-1-3-6-1
        Shared id: cygwin1S3


Cygwin Package Information
Last downloaded files to: U:\dlz\cygwin
Last downloaded files from:
ftp://mirrors.rcn.net/mirrors/sources.redhat.com/cygwin

Package             Version
ash                 20011018-1
autoconf            2.52-5
autoconf-devel      2.52-4
autoconf-devel-src  2.52-4
autoconf-src        2.52-5
autoconf-stable     2.13-4
autoconf-stable-src 2.13-4
automake            1.5a-1
automake-devel      1.5-5
automake-stable     1.4p5-5
bash                2.05a-2
binutils            20011002-1
binutils-src        20011002-1
bison               1.28-1
byacc               0.0
bzip2               1.0.1-6
bzip2-src           1.0.1-6
clear               1.0
cpio                2.4.2
cron                3.0.1-5
crypt               1.0-1
ctags               5.0.1-1
curl                7.9.1-2
cvs                 1.11.0-1
cvs-src             1.11.0-1
cygrunsrv           0.94-2
cygwin              1.3.6-2
cygwin-src          1.3.6-2
dejagnu             20010117-1
diff                0.0
expect              20010117-1
file                3.33-1
fileutils           4.1-1
findutils           0.0
flex                2.5.4-1
gawk                3.0.4-1
gcc                 2.95.3-5
gdb                 20010428-3
gdbm                1.8.0-3
gettext             0.10.38-2
ghostscript         6.51-1
gperf               0.0
grep                2.4.2-1
groff               1.17.2-1
gzip                1.3.2-1
gzip-src            1.3.2-1
indent              2.2.6-2
indent-src          2.2.6-2
inetutils           1.3.2-15
irc                 20010101-1
jbigkit             1.2-4
jpeg                6b-4
less                358-3
libncurses5         5.2-1
libncurses6         5.2-2
libpng              1.0.11-1
login               1.4-2
lynx                2.8.4-1
m4                  0.0
make                3.79.1-5
make-src            3.79.1-5
man                 1.5g-2
mingw               20010917-1
mingw-runtime       1.1-1
mktemp              1.4-1
mt                  2.0.1-1
mutt                1.2.5i-5
nano                1.0.6-1
ncftp               3.0.2-2
ncurses             5.2-7
newlib-man          20001118-1
opengl              1.1.0-5
openssh             3.0.1p1-2
openssl             0.9.6b-2
patch               2.5-2
pcre                3.7-1
perl                5.6.1-2
popt                1.6.2-1
popt-src            1.6.2-1
postgresql          7.1.3-1
python              2.1.1-2
readline            4.2-3
regex               4.4-2
rsync               2.4.6-3
rxvt                2.7.2-6
rxvt-src            2.7.2-6
sed                 3.02-1
sed-src             3.02-1
sh-utils            2.0-2
sharutils           4.2.1-1
shutdown            1.2-2
squid               2.4-STABLE20010508
ssmtp               2.38.7-3
tar                 1.13.19-1
tar-src             1.13.19-1
tcltk               20001125-1
tcsh                6.10.00-3
termcap             20010825-1
terminfo            5.2-1
tetex-beta          20001218-1
texinfo             4.0-4
textutils           2.0.16-1
tiff                3.5.6beta-2
time                1.7-1
unzip               5.41-1
vim                 6.0.93-1
w32api              1.1-1
w32api-src          1.1-1
wget                1.7-1
which               1.5-1
xpm-nox             4.1.0-1
zip                 2.3-1
zlib                1.1.3-6
zlib-src            1.1.3-6

Use -h to see help about each section



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list