Bug 3747 – (D1 only) D application fails with error code "c0000096 privileged instruction" under Win 7 64 bit

Status
RESOLVED
Resolution
WONTFIX
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2010-01-28T02:56:57Z
Last change time
2018-10-19T04:44:44Z
Assigned to
No Owner
Creator
Stefan Liebig

Comments

Comment #0 by StefanLiebig — 2010-01-28T02:56:57Z
The D application running under Win7 64 bit fails when exiting. The error details are: Problemsignatur: Problemereignisname: APPCRASH Anwendungsname: smartclient.exe Anwendungsversion: 0.0.0.0 Anwendungszeitstempel: 00000000 Fehlermodulname: smartclient.exe Fehlermodulversion: 0.0.0.0 Fehlermodulzeitstempel: 00000000 Ausnahmecode: c0000096 Ausnahmeoffset: 00016564 Betriebsystemversion: 6.1.7600.2.0.0.256.4 Gebietsschema-ID: 1031 Zusatzinformation 1: 896c Zusatzinformation 2: 896c99b20f8de3f360d5bf94d04c29ea Zusatzinformation 3: 9b53 Zusatzinformation 4: 9b53c73b99497297547530e8345d3867 (Sorry, for the German!) I tried to narrow the location of the failure and I suppose that the error occurs within gc_term(). If I omit this call the application ends without problems.
Comment #1 by witold.baryluk+d — 2010-01-28T21:18:12Z
Why are you calling gc_term? It is function which shutdowns garbage collector (and deallocate everyobject). Doing it manually is really really wrong.
Comment #2 by StefanLiebig — 2010-01-28T21:59:16Z
Hmm, but in the documentation (http://www.digitalmars.com/d/1.0/windows.html) they do a call to gc_term() just before returning from WinMain().
Comment #3 by StefanLiebig — 2010-01-28T23:30:56Z
BTW, this crash only happens on Win 7 64-bit - not on Win 7 32-bit.
Comment #4 by braddr — 2011-02-06T15:39:17Z
Mass migration of bugs marked as x86-64 to just x86. The platform run on isn't what's relevant, it's if the app is a 32 or 64 bit app.
Comment #5 by yao.gomez — 2012-02-05T13:49:51Z
Marking this bug as D1 only, as the OP used the example from the D1 Windows page (http://www.digitalmars.com/d/1.0/windows.html). This example doesn't even compile with D2. On a semi-related note, the example in the D2 Windows page (http://dlang.org/windows.html) compiles and links just fine. I'm using Windows 7 64-bit.
Comment #6 by pro.mathias.lang — 2018-10-19T04:44:44Z
Since this is Windows and D1 only, it's 100% unsupported and unused nowadays. Closing.