[dmd-internals] Struct initialization in nested functions

Brad Roberts braddr at puremagic.com
Thu Jan 17 23:22:16 PST 2013


On 1/17/2013 2:13 PM, Maxim Fomin wrote:
> Are you debugging this on OSX?
> 
> In linux these three runs fine and throws exceptions because of absent URL.
> However after adding "dlang.org <http://dlang.org>" argument in each of three cases to watch performance,
> valgrind shows memory errors which are finally detected in druntime (gc.gcx.mark, gc.gcx.findpool, etc.),
> so there is something wrong with curl module or druntime.
> 
> Does valgrind detect errors in your installation for #1 and #3?

It's been a while since I looked at valgrind + the gc but when I did, the only 'issues' that I saw were when the stack
walk touched portions of the stack that had never been written to (which is perfectly valid behavior).



More information about the dmd-internals mailing list