www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8377] New: Unexpected OPTLINK Termination at EIP=004106BE

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8377

           Summary: Unexpected OPTLINK Termination at EIP=004106BE
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Optlink
        AssignedTo: nobody puremagic.com
        ReportedBy: thecybershadow gmail.com



06:40:11 PDT ---
Trying to build DFeed using DMD git head results in an OPTLINK crash.

Steps to reproduce:

1) Build DMD/Druntime/Phobos from latest Git
2) Clone https://github.com/CyberShadow/DFeed and its submodules (ae)
3) rdmd --build-only -version=WindowsXP dfeed_web.d

I'm not going to even reduce this one unless there's an indication that someone
is going to look at it (it literally takes days, and my previous OPTLINK report
was ignored).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 11 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8377


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla digitalmars.com



11:35:50 PDT ---
Why is this a regression? The linker hasn't changed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 11 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8377


klickverbot <code klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code klickverbot.at



---
It is a regression if you consider Optlink to be just an internal component of
DMD "as a whole". Yes, it technically might not be a new bug, just a bug that
didn't show up before. But the point is that code which compiled fine in
previous versions would break if a new release was made right now.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 11 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8377




16:29:46 PDT ---
The problem still exists in the DMD 2.060 release. The problem seems to be
triggered by some code in a library. I can't build many of my projects with DMD
2.060 on Windows, which includes DFeed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 03 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8377


Sean Cavanaugh <WorksOnMyMachine gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |WorksOnMyMachine gmail.com



21:09:05 PDT ---
*** Issue 8501 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 03 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8377


zerg <Sergey.Chelombitko gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Sergey.Chelombitko gmail.co
                   |                            |m



---
I'm facing the same problem with DMD 2.060 when taking address of constant from
module that was compiled into static library. It seems to be directly related
to number (or total size, probably) of constants in that module. Looks like
having too many constants causes bad code generation.
DMD 2.059 - no such problem.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 04 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8377




18:54:25 PDT ---
Can someone please provide a zip with just the obj files and the linker
command? I don't need the source code.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 04 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8377




19:09:26 PDT ---
Created an attachment (id=1134)
A troublesome object file

Running either "dmd file.obj" or "link file.obj" triggers the error.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 04 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8377




20:17:50 PDT ---
ok, I can duplicate the problem with this .obj file.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 04 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8377




Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/a7c8c120e8b69651de6524d28006498eb4a2e2bd
attempt to narrow down Issue 8377

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 04 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8377




23:08:52 PDT ---
It looks like a corrupt .obj file. Can anyone add this diagnostic to cgobj.c,
build dmd, and then see if the source that causes it can be isolated?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 04 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8377




23:25:19 PDT ---
It's this file:
http://svn.dsource.org/projects/bindings/trunk/win32/winnt.d

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 04 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8377




00:43:44 PDT ---
Created an attachment (id=1135)
Reduced source

Here is the reduced file that triggers the new assert.

"dmd winnt.d" by itself triggers it.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 05 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8377




Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/fb0483e8a0d5492393b794e095e272f81b32ac89
fix Issue 8377 - Unexpected OPTLINK Termination at EIP=004106BE

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 05 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8377




Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/5446febb6b41b952eb93e24808ae3da03e6caab7
fix Issue 8377 - Unexpected OPTLINK Termination at EIP=004106BE

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 05 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8377


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



02:26:14 PDT ---
This is definitely a regression in the compiler, where it puts out a corrupted
.obj file when the align directive is used.

It's a disastrous bug, and affects all platforms.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 05 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8377




02:30:05 PDT ---
Confirming fix - all my projects now build correctly. Thank you!

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 05 2012