[Issue 11806] New: Freeze in in-contracts when multithreading is used

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 23 07:09:22 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11806

           Summary: Freeze in in-contracts when multithreading is used
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody at puremagic.com
        ReportedBy: christoph at nerdtools.de


--- Comment #0 from christoph at nerdtools.de <christoph at nerdtools.de> 2013-12-23 07:09:19 PST ---
Created an attachment (id=1304)
Sample program that reproduces the desribed error.

When an in-contract of an interface fails, the in-contract of the implementing
class is used. This works fine in single-threaded applications. In
multithreaded applications however, the program freezes after a while when
executing the in-contract of the interface. I attached a small program "main.d"
that shows the problem. The program should execute endlessly, but in fact it
freezes always at the same spot. The output is always:

...
foo 401
base in-contract
derived in-contract
foo 402
base in-contract
derived in-contract
foo 403
base in-contract
[freezes]

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


More information about the Digitalmars-d-bugs mailing list