D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 12192 - Wrong interface file content generated that crashes compiler
Summary: Wrong interface file content generated that crashes compiler
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P2 normal
Assignee: No Owner
URL:
Keywords: ice
Depends on:
Blocks:
 
Reported: 2014-02-18 08:09 UTC by tcak
Modified: 2020-03-21 03:56 UTC (History)
1 user (show)

See Also:


Attachments
Programme source code (26 bytes, text/x-dsrc)
2014-02-18 08:09 UTC, tcak
Details
Library source code (49 bytes, text/x-dsrc)
2014-02-18 08:10 UTC, tcak
Details
Generated interface file (73 bytes, text/x-dsrc)
2014-02-18 08:11 UTC, tcak
Details
Used makefile (145 bytes, application/octet-stream)
2014-02-18 08:11 UTC, tcak
Details
Output of make (237 bytes, text/plain)
2014-02-18 08:11 UTC, tcak
Details

Note You need to log in before you can comment on or make changes to this issue.
Description tcak 2014-02-18 08:09:53 UTC
Created attachment 1326 [details]
Programme source code

I have written a shared library and a programme to use it. While compiling the
library file, "-H" flag is used to generate interface file. Compiler generates
wrong content, eats some of the codes. After this, while the programme is being
compiled, compiler crashes with a segmentation error.

Version: 2.064.2
OS: Ubuntu 13.10

Source codes are: lib.d, app.d
Generated Interface file: lib.di
Used makefile: makefile
Output of make: makeresult.txt

Source codes are reduced to make it as clear as possible. No matter where I put
that static destructor, compiler eats it all the time.
Comment 1 tcak 2014-02-18 08:10:35 UTC
Created attachment 1327 [details]
Library source code
Comment 2 tcak 2014-02-18 08:11:04 UTC
Created attachment 1328 [details]
Generated interface file
Comment 3 tcak 2014-02-18 08:11:31 UTC
Created attachment 1329 [details]
Used makefile
Comment 4 tcak 2014-02-18 08:11:55 UTC
Created attachment 1330 [details]
Output of make
Comment 5 basile-z 2019-06-29 16:47:20 UTC
no crash anymore