Bug 13286 – -inline and a library results in application failing to launch

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2014-08-12T02:46:18Z
Last change time
2024-12-13T18:23:51Z
Assigned to
No Owner
Creator
Ricky C
Moved to GitHub: dmd#18866 →

Comments

Comment #0 by kf6kjg+dlang — 2014-08-12T02:46:18Z
DMD v2.065 Win7, compiling 64bit with 64bit libs (compiled them myself). New to D, took some gracious handholding from Mike Wey author of DMagick, an interface to the ImageMagick library, to get me headed down the correct road. After getting his example code working, I found that in my code: rdmd -od. --build-only -m64 -Dddoc -cov -unittest -Ilib lib\CORE_RL_magick_.lib lib\curl.lib src\anaximander.d Compiles the code and the resulting executable runs. rdmd -od. --build-only -m64 -Dddoc -cov -unittest -inline -Ilib lib\CORE_RL_magick_.lib lib\curl.lib src\anaximander.d Compiles the code and the resulting executable crashes on launch with a Windows dialog and the following pretty useless information: Problem signature: Problem Event Name: APPCRASH Application Name: anaximander.exe Application Version: 0.0.0.0 Application Timestamp: 53e6f199 Fault Module Name: ntdll.dll Fault Module Version: 6.1.7601.18247 Fault Module Timestamp: 521eaf24 Exception Code: c0000005 Exception Offset: 00000000000508c5 OS Version: 6.1.7601.2.1.0.256.48 Locale ID: 1033 Additional Information 1: 349b Additional Information 2: 349bdc2afb09d13b9277201f995053a0 Additional Information 3: 782c Additional Information 4: 782c172310adbc84bab0e7b51b784a6a Looks like a null-access to me, but my code is simple... I'll be posting a link to my code's repository as soon as the commit I've been working on is ready enough to push so that others can try it - unless the reason is obvious to those here.. Hopefully a test case can be built.
Comment #1 by kf6kjg+dlang — 2014-08-14T04:48:03Z
My source is at https://github.com/kf6kjg/Anaximander/tree/develop Like I said, simply adding -inline to the options gives a bad executable.
Comment #2 by verylonglogin.reg — 2014-09-02T08:02:34Z
Probably a duplicate of Issue 13083.
Comment #3 by robert.schadek — 2024-12-13T18:23:51Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18866 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB