Thread overview
[Issue 3601] New: Debug and Release builds of DMD produce different object files
Dec 08, 2009
Koroskin Denis
Dec 08, 2009
Koroskin Denis
Dec 12, 2009
Walter Bright
Dec 31, 2009
Walter Bright
December 08, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3601

           Summary: Debug and Release builds of DMD produce different
                    object files
           Product: D
           Version: 2.032
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: 2korden@gmail.com


--- Comment #0 from Koroskin Denis <2korden@gmail.com> 2009-12-08 07:46:08 PST ---
(Not to be confused with -debug and -release DMD options)

I finally managed to cut that sucker down (took me almost entire day to track it down and reduce to reasonable size)!

The test case is attached, compile it as follows:

dmd -c -d thread.d

Tested on DMD2.032, Windows only.

I believe Debug version produces corrupted binaries as linking sometimes fails giving me a "library is corrupted" message.

I should add that this one is very annoying as it prevents ddmd from working properly (it only works in debug mode ATM and debug version of backend produces odd binaries).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 08, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3601



--- Comment #1 from Koroskin Denis <2korden@gmail.com> 2009-12-08 07:47:32 PST ---
Created an attachment (id=523)
Test case that reproduces described behavior

Based off druntime/core/thread.d file

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 12, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3601


Walter Bright <bugzilla@digitalmars.com> changed:

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


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2009-12-12 01:49:46 PST ---
Changeset 293 gets them to produce the same .obj files, but both ways were within spec and I've never seen either produce a "library is corrupted" message. So I'll set this as fixed, and if the corruption message appears again, please file a new issue.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 31, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3601


Walter Bright <bugzilla@digitalmars.com> changed:

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


--- Comment #3 from Walter Bright <bugzilla@digitalmars.com> 2009-12-31 11:16:20 PST ---
Fixed dmd 1.054 and 2.038

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