Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-26757

Potential crash of Agent2 related to PDH

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.0.40, 7.0.17, 7.2.11, 7.4.2rc1, 8.0.0alpha1 (master)
    • Agent2 (G)
    • None
    • windows
    • Sprint candidates
    • 1

      Steps to reproduce:

      There is no possibility to reproduce issue in a wild, but it can explain many "not reproducible" issues related to pdh
      The reason is in the code like: 

      elements.CounterName = uintptr(unsafe.Pointer(windows.StringToUTF16Ptr(counterName))) 

      Result:

      GC does not track memory after uintptr and as a result in some cases we can use pointer to GC freed memory 

      Expected:
      Introduce intermediate variable and make refactoring similar places

            MVekslers Michael Veksler
            MVekslers Michael Veksler
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified