www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20817] New: parseJSON() generates errors relating to


          Issue ID: 20817
           Summary: parseJSON() generates errors relating to uninitialised
           Product: D
           Version: D2
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: alex.braunegg gmail.com

Created attachment 1784
  --> https://issues.dlang.org/attachment.cgi?id=1784&action=edit

* Trying to determine if a memory leak exists in trying to diagnose
* Valgrind is showing some interesting data re uninitialised values and
possibly lost blocks

Valgrind errors:
* Use of uninitialised value of size X
* Conditional jump or move depends on uninitialised value(s)
* Uninitialised value was created by a stack allocation

Files Attached:
* main.d (reproducer)
* valgrind-out-202005101049.txt (valgrind output)
* make_with_dmd.sh (compile & test with valgrind)

Is this a valid bug? I have looked through json.d and to me, everything looks
like it gets initialised correctly.

May 09 2020