[dmd-internals] Struct initialization in nested functions

Maxim Fomin maxim at maxim-fomin.ru
Fri Jan 18 01:22:53 PST 2013


2013/1/18 Brad Roberts <braddr at puremagic.com>

> 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).
>
>
Error messages are: "Conditional jump or move depends on uninitialised
value(s)" and "Use of uninitialised value of size 8",
so this invalid behavior. BTW, curl sample written in C does not cause
these errors.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/dmd-internals/attachments/20130118/7a35148c/attachment.html>


More information about the dmd-internals mailing list