D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 14926 - Programs compiled using dmd 2.068 are generating dummy profilegc.log files
Summary: Programs compiled using dmd 2.068 are generating dummy profilegc.log files
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Linux
: P1 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-17 07:50 UTC by deadalnix
Modified: 2015-10-04 18:19 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description deadalnix 2015-08-17 07:50:18 UTC
It looks like every run of whatever I compiled generate a profilegc.log file, that only contains :

bytes allocated, type, function, file:line

And that's it. Flag used to compile are -w -debug -gc -unittest . I'm using the .deb package on debian.
Comment 1 Martin Nowak 2015-08-26 01:10:57 UTC
Can't reproduce this on my linux distribution.
What version of debian are you using?
On which of the flags does it depend?

Why are you using -gc instead of -g btw?
Comment 2 Martin Nowak 2015-08-28 15:18:15 UTC
Ping, any update on this?
Comment 3 Rainer Schuetze 2015-08-28 22:36:41 UTC
I see it generated by the druntime unittests.

I guess that hints at the problem: if you link to a shared phobos/druntime library, the latter contains rt.profilegc. It's static destructors will run at program termination and write the log file.
Comment 4 deadalnix 2015-08-28 22:42:18 UTC
Ok first about the -gc

SDC was already using it when I started working on it. Not sure what is the difference with -g and never investigated the question that much. I have debug infos, that is this most important.

I'm using debian testing, and installed dmd via the .deb present on the download page. The setup is completely vanilla. I can provide you the versions of the softwares I'm using upon request.

I'm also using D on a OSX machine and the problem does not happen, so it seems to be linux specific (or even debian/ubuntu specific ?).

Rainer may have a point. I can do more testing over the weekend to find exactly what flags do or do not produce the file.
Comment 6 github-bugzilla 2015-08-29 03:57:49 UTC
Commits pushed to master at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/146469cf3e0781e9199e4ddd5d3f11cf99f684b9
fix
Issue 14926 - Programs compiled using dmd 2.068 are generating dummy profilegc.log files

https://github.com/D-Programming-Language/druntime/commit/5db735222f7751dfc7a4e4490906e1c89d667cc5
Merge pull request #1364 from WalterBright/fix14926

fix Issue 14926 - Programs compiled using dmd 2.068 are generating dummy profilegc.log files
Comment 7 github-bugzilla 2015-08-29 05:07:53 UTC
Commit pushed to stable at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/281bf608c07b0acdfc5ff97e1699057896082155
Merge pull request #1364 from WalterBright/fix14926

fix Issue 14926 - Programs compiled using dmd 2.068 are generating dummy profilegc.log files
Comment 8 github-bugzilla 2015-09-07 18:52:07 UTC
Commit pushed to master at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/281bf608c07b0acdfc5ff97e1699057896082155
Merge pull request #1364 from WalterBright/fix14926