Linker errors (LNK1000: Internal error during Pass2)

J

Jonathan Payne

I am having some problems with the linker and I was wondering if anyone had
any suggestions. I am working on a large project (the main .exe file is
around 7 mb release, 14 mb debug) and after building a number of debug
builds I get a linker error (see below).

I do a complete clean and rebuild every evening so I have a fresh build by
the morning. By early afternoon (after perhaps 20 or so incremental
builds), I start seeing the linker errors and once they start occurring, I
get them roughtly every other time I build until I do a full rebuild.

The following knowledge base articles seem to detail similar problems but
for the 2002 edition of the compiler (I am using Visual Studio 2003):

http://support.microsoft.com/default.aspx?kbid=329593
http://support.microsoft.com/default.aspx?scid=kb;en-us;826326

As these have updated link.exe files from after the 2003 release, I was
wondering if the fix was discovered after the 2003 release and if so, if
Microsoft has an equivalent fix for Visual Studio 2003. Is there a hot fix
I could get from Microsoft support?

Alternatively, are there any work arounds? I was wondering if deleting some
of the intermediate files and letting it do a full relink at lunch time each
day would help but I think it is already doing a full relink after the
linker crashes as the previous link failed (although I am thinking of
experimenting with deleting the .ilk files at lunch time).

Of course the other solution would be not to use incremental linking but I
would like to carry on using it if possible (as a full link takes much
longer).

Jonathan

Here are the error messages. I have collected a few but as they are all
almost identical I will only post a selection:

14:46 09/03/2004
LINK : fatal error LNK1000: Internal error during Pass2

Version 7.10.3077

ExceptionCode = C0000005
ExceptionFlags = 00000000
ExceptionAddress = 0044A956 (00400000) "C:\Program Files\Microsoft
Visual Studio .NET 2003\Vc7\bin\link.exe"
NumberParameters = 00000002
ExceptionInformation[ 0] = 00000000
ExceptionInformation[ 1] = 010240E7
CONTEXT:
Eax = 000002FF Esp = 0012F2C8
Ebx = 3FFF0338 Ebp = 00000001
Ecx = 01023DE8 Esi = 00E25368
Edx = 0000028F Edi = 0000028F
Eip = 0044A956 EFlags = 00010206
SegCs = 0000001B SegDs = 00000023
SegSs = 00000023 SegEs = 00000023
SegFs = 00000038 SegGs = 00000000
Dr0 = 0012F2C8 Dr3 = 3FFF0338
Dr1 = 00000001 Dr6 = 01023DE8
Dr2 = 00000000 Dr7 = 00000000

14:54 09/03/2004
LINK : fatal error LNK1000: Internal error during Pass2

Version 7.10.3077

ExceptionCode = C0000005
ExceptionFlags = 00000000
ExceptionAddress = 0044A956 (00400000) "C:\Program Files\Microsoft
Visual Studio .NET 2003\Vc7\bin\link.exe"
NumberParameters = 00000002
ExceptionInformation[ 0] = 00000000
ExceptionInformation[ 1] = 010240E7
CONTEXT:
Eax = 000002FF Esp = 0012F2C8
Ebx = 3FFF0338 Ebp = 00000001
Ecx = 01023DE8 Esi = 00E25368
Edx = 0000028F Edi = 0000028F
Eip = 0044A956 EFlags = 00010206
SegCs = 0000001B SegDs = 00000023
SegSs = 00000023 SegEs = 00000023
SegFs = 00000038 SegGs = 00000000
Dr0 = 0012F2C8 Dr3 = 3FFF0338
Dr1 = 00000001 Dr6 = 01023DE8
Dr2 = 00000000 Dr7 = 00000000

14:27 11/03/2004
LINK : fatal error LNK1000: Internal error during Pass2

Version 7.10.3077

ExceptionCode = C0000005
ExceptionFlags = 00000000
ExceptionAddress = 0044A956 (00400000) "C:\Program Files\Microsoft
Visual Studio .NET 2003\Vc7\bin\link.exe"
NumberParameters = 00000002
ExceptionInformation[ 0] = 00000000
ExceptionInformation[ 1] = 00D970D7
CONTEXT:
Eax = 000002FF Esp = 0012F2C8
Ebx = 3FFF0338 Ebp = 00000008
Ecx = 00D96DD8 Esi = 00A0B080
Edx = 0000028F Edi = 0000028F
Eip = 0044A956 EFlags = 00010206
SegCs = 0000001B SegDs = 00000023
SegSs = 00000023 SegEs = 00000023
SegFs = 00000038 SegGs = 00000000
Dr0 = 0012F2C8 Dr3 = 3FFF0338
Dr1 = 00000008 Dr6 = 00D96DD8
Dr2 = 00000000 Dr7 = 00000000
 
G

Gabest

I also had this linker crash about a week ago. In my project there used to
be a large lib merged from many little libs and linked to the main exe, but
after trying to add one more recently (about the ~28th) I couldn't get rid
of this error and had to add each of them to the additional dependencies one
by one to make it link. Not sure if this info is going to be any useful for
you, probably not, but I thought I would mention it.

Jonathan Payne said:
I am having some problems with the linker and I was wondering if anyone had
any suggestions. I am working on a large project (the main .exe file is
around 7 mb release, 14 mb debug) and after building a number of debug
builds I get a linker error (see below).

I do a complete clean and rebuild every evening so I have a fresh build by
the morning. By early afternoon (after perhaps 20 or so incremental
builds), I start seeing the linker errors and once they start occurring, I
get them roughtly every other time I build until I do a full rebuild.

The following knowledge base articles seem to detail similar problems but
for the 2002 edition of the compiler (I am using Visual Studio 2003):

http://support.microsoft.com/default.aspx?kbid=329593
http://support.microsoft.com/default.aspx?scid=kb;en-us;826326

As these have updated link.exe files from after the 2003 release, I was
wondering if the fix was discovered after the 2003 release and if so, if
Microsoft has an equivalent fix for Visual Studio 2003. Is there a hot fix
I could get from Microsoft support?

Alternatively, are there any work arounds? I was wondering if deleting some
of the intermediate files and letting it do a full relink at lunch time each
day would help but I think it is already doing a full relink after the
linker crashes as the previous link failed (although I am thinking of
experimenting with deleting the .ilk files at lunch time).

Of course the other solution would be not to use incremental linking but I
would like to carry on using it if possible (as a full link takes much
longer).

Jonathan

Here are the error messages. I have collected a few but as they are all
almost identical I will only post a selection:

14:46 09/03/2004
LINK : fatal error LNK1000: Internal error during Pass2

Version 7.10.3077

ExceptionCode = C0000005
ExceptionFlags = 00000000
ExceptionAddress = 0044A956 (00400000) "C:\Program Files\Microsoft
Visual Studio .NET 2003\Vc7\bin\link.exe"
NumberParameters = 00000002
ExceptionInformation[ 0] = 00000000
ExceptionInformation[ 1] = 010240E7
CONTEXT:
Eax = 000002FF Esp = 0012F2C8
Ebx = 3FFF0338 Ebp = 00000001
Ecx = 01023DE8 Esi = 00E25368
Edx = 0000028F Edi = 0000028F
Eip = 0044A956 EFlags = 00010206
SegCs = 0000001B SegDs = 00000023
SegSs = 00000023 SegEs = 00000023
SegFs = 00000038 SegGs = 00000000
Dr0 = 0012F2C8 Dr3 = 3FFF0338
Dr1 = 00000001 Dr6 = 01023DE8
Dr2 = 00000000 Dr7 = 00000000

14:54 09/03/2004
LINK : fatal error LNK1000: Internal error during Pass2

Version 7.10.3077

ExceptionCode = C0000005
ExceptionFlags = 00000000
ExceptionAddress = 0044A956 (00400000) "C:\Program Files\Microsoft
Visual Studio .NET 2003\Vc7\bin\link.exe"
NumberParameters = 00000002
ExceptionInformation[ 0] = 00000000
ExceptionInformation[ 1] = 010240E7
CONTEXT:
Eax = 000002FF Esp = 0012F2C8
Ebx = 3FFF0338 Ebp = 00000001
Ecx = 01023DE8 Esi = 00E25368
Edx = 0000028F Edi = 0000028F
Eip = 0044A956 EFlags = 00010206
SegCs = 0000001B SegDs = 00000023
SegSs = 00000023 SegEs = 00000023
SegFs = 00000038 SegGs = 00000000
Dr0 = 0012F2C8 Dr3 = 3FFF0338
Dr1 = 00000001 Dr6 = 01023DE8
Dr2 = 00000000 Dr7 = 00000000

14:27 11/03/2004
LINK : fatal error LNK1000: Internal error during Pass2

Version 7.10.3077

ExceptionCode = C0000005
ExceptionFlags = 00000000
ExceptionAddress = 0044A956 (00400000) "C:\Program Files\Microsoft
Visual Studio .NET 2003\Vc7\bin\link.exe"
NumberParameters = 00000002
ExceptionInformation[ 0] = 00000000
ExceptionInformation[ 1] = 00D970D7
CONTEXT:
Eax = 000002FF Esp = 0012F2C8
Ebx = 3FFF0338 Ebp = 00000008
Ecx = 00D96DD8 Esi = 00A0B080
Edx = 0000028F Edi = 0000028F
Eip = 0044A956 EFlags = 00010206
SegCs = 0000001B SegDs = 00000023
SegSs = 00000023 SegEs = 00000023
SegFs = 00000038 SegGs = 00000000
Dr0 = 0012F2C8 Dr3 = 3FFF0338
Dr1 = 00000008 Dr6 = 00D96DD8
Dr2 = 00000000 Dr7 = 00000000
 
J

Jonathan Payne

Thank you - it is good to know that I am not the only person having this
problem. It does sound like there is some internal limit in the linker that
you and I are hitting. Unfortunatly I can't work out how to narrow down
what this limit it is and I am not sure how I would fix my problem if I
could find out!

Jonathan

Gabest said:
I also had this linker crash about a week ago. In my project there used to
be a large lib merged from many little libs and linked to the main exe, but
after trying to add one more recently (about the ~28th) I couldn't get rid
of this error and had to add each of them to the additional dependencies one
by one to make it link. Not sure if this info is going to be any useful for
you, probably not, but I thought I would mention it.

Jonathan Payne said:
I am having some problems with the linker and I was wondering if anyone had
any suggestions. I am working on a large project (the main .exe file is
around 7 mb release, 14 mb debug) and after building a number of debug
builds I get a linker error (see below).

I do a complete clean and rebuild every evening so I have a fresh build by
the morning. By early afternoon (after perhaps 20 or so incremental
builds), I start seeing the linker errors and once they start occurring, I
get them roughtly every other time I build until I do a full rebuild.

The following knowledge base articles seem to detail similar problems but
for the 2002 edition of the compiler (I am using Visual Studio 2003):

http://support.microsoft.com/default.aspx?kbid=329593
http://support.microsoft.com/default.aspx?scid=kb;en-us;826326

As these have updated link.exe files from after the 2003 release, I was
wondering if the fix was discovered after the 2003 release and if so, if
Microsoft has an equivalent fix for Visual Studio 2003. Is there a hot fix
I could get from Microsoft support?

Alternatively, are there any work arounds? I was wondering if deleting some
of the intermediate files and letting it do a full relink at lunch time each
day would help but I think it is already doing a full relink after the
linker crashes as the previous link failed (although I am thinking of
experimenting with deleting the .ilk files at lunch time).

Of course the other solution would be not to use incremental linking but I
would like to carry on using it if possible (as a full link takes much
longer).

Jonathan

Here are the error messages. I have collected a few but as they are all
almost identical I will only post a selection:

14:46 09/03/2004
LINK : fatal error LNK1000: Internal error during Pass2

Version 7.10.3077

ExceptionCode = C0000005
ExceptionFlags = 00000000
ExceptionAddress = 0044A956 (00400000) "C:\Program Files\Microsoft
Visual Studio .NET 2003\Vc7\bin\link.exe"
NumberParameters = 00000002
ExceptionInformation[ 0] = 00000000
ExceptionInformation[ 1] = 010240E7
CONTEXT:
Eax = 000002FF Esp = 0012F2C8
Ebx = 3FFF0338 Ebp = 00000001
Ecx = 01023DE8 Esi = 00E25368
Edx = 0000028F Edi = 0000028F
Eip = 0044A956 EFlags = 00010206
SegCs = 0000001B SegDs = 00000023
SegSs = 00000023 SegEs = 00000023
SegFs = 00000038 SegGs = 00000000
Dr0 = 0012F2C8 Dr3 = 3FFF0338
Dr1 = 00000001 Dr6 = 01023DE8
Dr2 = 00000000 Dr7 = 00000000

14:54 09/03/2004
LINK : fatal error LNK1000: Internal error during Pass2

Version 7.10.3077

ExceptionCode = C0000005
ExceptionFlags = 00000000
ExceptionAddress = 0044A956 (00400000) "C:\Program Files\Microsoft
Visual Studio .NET 2003\Vc7\bin\link.exe"
NumberParameters = 00000002
ExceptionInformation[ 0] = 00000000
ExceptionInformation[ 1] = 010240E7
CONTEXT:
Eax = 000002FF Esp = 0012F2C8
Ebx = 3FFF0338 Ebp = 00000001
Ecx = 01023DE8 Esi = 00E25368
Edx = 0000028F Edi = 0000028F
Eip = 0044A956 EFlags = 00010206
SegCs = 0000001B SegDs = 00000023
SegSs = 00000023 SegEs = 00000023
SegFs = 00000038 SegGs = 00000000
Dr0 = 0012F2C8 Dr3 = 3FFF0338
Dr1 = 00000001 Dr6 = 01023DE8
Dr2 = 00000000 Dr7 = 00000000

14:27 11/03/2004
LINK : fatal error LNK1000: Internal error during Pass2

Version 7.10.3077

ExceptionCode = C0000005
ExceptionFlags = 00000000
ExceptionAddress = 0044A956 (00400000) "C:\Program Files\Microsoft
Visual Studio .NET 2003\Vc7\bin\link.exe"
NumberParameters = 00000002
ExceptionInformation[ 0] = 00000000
ExceptionInformation[ 1] = 00D970D7
CONTEXT:
Eax = 000002FF Esp = 0012F2C8
Ebx = 3FFF0338 Ebp = 00000008
Ecx = 00D96DD8 Esi = 00A0B080
Edx = 0000028F Edi = 0000028F
Eip = 0044A956 EFlags = 00010206
SegCs = 0000001B SegDs = 00000023
SegSs = 00000023 SegEs = 00000023
SegFs = 00000038 SegGs = 00000000
Dr0 = 0012F2C8 Dr3 = 3FFF0338
Dr1 = 00000008 Dr6 = 00D96DD8
Dr2 = 00000000 Dr7 = 00000000
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top