Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-726

[HP aCC 6.16] many cadvise warnings

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.2
    • Component/s: Build and Installation
    • Labels:
      None
    • Environment:

      $ uname -sr && aCC -V
      HP-UX B.11.31
      aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]

    • Severity:
      Compiler Warning

      Description

      The HP aCC 6.15 and 6.16 builds are full of cadvise (static analysis tool) warnings:

      $ W=`  gunzip -c hpux-11.31-ia64-acc-6.15-15S-620132-log.gz \
           | sed -n "s/.*: warning #\(2[0-9][0-9][0-9][0-9]\)-.:.*/\1/p" \
           | sort | uniq`; \
        for w in $W; do \
          n=`gunzip -c hpux-11.31-ia64-acc-6.15-15S-620132-log.gz | grep ": warning #$w-.:" | wc -l`; \
          echo "$w $n"; \
        done
      20200 110
      20201 13
      20203 5
      20206 8
      20210 2
      

      The warnings are:

      Warning Description
      20200 Potential null pointer dereference is detected
      20201 Memory leak is detected
      20203 Potential out of scope use of local variable
      20206 Out of bound access
      20210 Mismatch in allocation and deallocation

        Attachments

          Issue Links

          1.
          [HP aCC 6.15] warning #20200-D: potential null pointer dereference in _money_put.cc Sub-task Closed Martin Sebor

          100%

          Original Estimate - 1h Original Estimate - 1h
          Time Spent - 2h
          2.
          [HP aCC 6.15] potential null dererefence and out of bound access in iso2022.cpp Sub-task Resolved Martin Sebor

          50%

          Original Estimate - 2h
          Time Spent - 1h Remaining Estimate - 1h
          3.
          [HP aCC 6.16] Potential null pointer dereference in locale_body.cpp Sub-task Closed Martin Sebor

          100%

          Original Estimate - 2h Original Estimate - 2h
          Time Spent - 3h
          4.
          [HP aCC 6.16] Potential null pointer dereference in locale_combine.cpp Sub-task Closed Martin Sebor

          100%

          Original Estimate - 2h
          Time Spent - 2h
          5.
          [HP aCC 6.16] Potential null pointer dereference in locale_name.cpp Sub-task Closed Martin Sebor

          100%

          Original Estimate - 1h Original Estimate - 1h
          Time Spent - 2h
          6.
          [HP aCC 6.16] Potential null pointer dereference in <valarray> Sub-task Resolved Martin Sebor

          100%

          Original Estimate - 2h Original Estimate - 2h
          Time Spent - 4h
          7.
          [HP aCC 6.16] Potential null pointer dereference in time.cpp Sub-task Resolved Martin Sebor

          50%

          Original Estimate - 2h
          Time Spent - 1h Remaining Estimate - 1h
          8.
          [HP aCC 6.16] Potential null pointer dereference in aliases.cpp Sub-task Resolved Martin Sebor

          50%

          Original Estimate - 2h
          Time Spent - 1h Remaining Estimate - 1h
          9.
          [HP aCC 6.16] Potential null pointer dereference in locale_stub.cpp Sub-task Closed Travis Vitek

          100%

          Original Estimate - 2h Original Estimate - 2h
          Time Spent - 2h 1m
          10.
          [HP aCC 6.16] Potential null pointer dereference in gencat.cpp Sub-task Closed Farid Zaripov

          100%

          Original Estimate - 2h
          Time Spent - 2h
          11.
          [HP aCC 6.16] Forming out of bound address in charmap.cpp Sub-task Resolved Martin Sebor

          50%

          Original Estimate - 2h
          Time Spent - 1h Remaining Estimate - 1h
          12.
          [HP aCC 6.16] Potential null pointer dereference in cmdopt.cpp Sub-task Open Martin Sebor

          50%

          Original Estimate - 2h
          Time Spent - 1h Remaining Estimate - 1h
          13.
          [HP aCC 6.16] Potential null pointer dereference in locale.cpp Sub-task Closed Travis Vitek

          100%

          Original Estimate - 2h
          Time Spent - 2h
          14.
          [HP aCC 6.16] Potential null pointer dereference in printf.cpp Sub-task Resolved Martin Sebor

          50%

          Original Estimate - 2h
          Time Spent - 1h Remaining Estimate - 1h
          15.
          [HP aCC 6.16] Potential null pointer dereference in value.cpp Sub-task Closed Martin Sebor

          50%

          Original Estimate - 2h
          Time Spent - 1h Remaining Estimate - 1h
          16.
          [HP aCC 6.16] Memory leak is detected in alloc.cpp Sub-task Open Unassigned

          0%

          Original Estimate - 2h
          Remaining Estimate - 2h
          17.
          [HP aCC 6.16] Out of bound access in 21.strings.cpp Sub-task Closed Martin Sebor

          100%

          Original Estimate - 2h
          Time Spent - 2h
          18.
          [HP aCC 6.16] Out of bound access in 23.containers.cpp Sub-task Resolved Martin Sebor

          50%

          Original Estimate - 2h
          Time Spent - 1h Remaining Estimate - 1h
          19.
          [HP aCC 6.16] Out of bound access in new.cpp Sub-task Resolved Eric Lemings

          100%

          Original Estimate - 2h
          Time Spent - 2h
          20.
          [HP aCC 6.16] Out of bound access and Forming out of bound address in opt_diags.cpp Sub-task Resolved Martin Sebor

          50%

          Original Estimate - 2h
          Time Spent - 1h Remaining Estimate - 1h
          21.
          [HP aCC 6.16] multiple cadvise warnings in money tests Sub-task Open Martin Sebor

          50%

          Original Estimate - 2h
          Time Spent - 1h Remaining Estimate - 1h
          22.
          [HP aCC 6.16] warning #20035-D: variable is used before its value is set in functional Sub-task Resolved Travis Vitek

          100%

          Original Estimate - 2h Original Estimate - 2h
          Time Spent - 3.5h
          23.
          [HP aCC 6.16] warning #20200-D: Potential null pointer dereference in 21.string.erase.cpp Sub-task Resolved Martin Sebor

          50%

          Original Estimate - 2h
          Time Spent - 1h Remaining Estimate - 1h
          24.
          [HP aCC 6.16] warning #20200-D: Potential null pointer dereference in 21.string.iterators.cpp Sub-task Closed Travis Vitek

          50%

          Original Estimate - 2h
          Time Spent - 1h Remaining Estimate - 1h
          25.
          [HP aCC 6.16] warning #20200-D: Potential null pointer dereference in 22.locale.time.get.cpp Sub-task Closed Martin Sebor

          50%

          Original Estimate - 2h
          Time Spent - 1h Remaining Estimate - 1h
          26.
          [HP aCC 6.16] warning #20200-D: Potential null pointer dereference in 23.list.erase.cpp Sub-task Resolved Travis Vitek

          100%

          Original Estimate - 2h
          Time Spent - 2h
          27.
          [HP aCC 6.16] Memory leak is detected in 0.new.cpp Sub-task Open Unassigned

          0%

          Original Estimate - 2h
          Remaining Estimate - 2h
          28.
          [HP aCC 6.16] Memory leak is detected in 18.exception.cpp Sub-task Open Unassigned

          0%

          Original Estimate - 2h
          Remaining Estimate - 2h
          29.
          [HP aCC 6.16] warning #20203-D: Potential out of scope use of local variable in 22.locale.num.get.cpp Sub-task Closed Travis Vitek

          100%

          Original Estimate - 2h
          Time Spent - 2h
          30.
          [HP aCC 6.16] warning #20206-D: Out of bound access in rw_streambuf.h Sub-task Resolved Martin Sebor

          50%

          Original Estimate - 2h
          Time Spent - 1h Remaining Estimate - 1h
          31.
          [HP aCC 6.16] out of bound warnings 20206 and 20208 in 23.bitset.cons.stdcxx-297.cpp Sub-task Open Martin Sebor

          0%

          Original Estimate - 2h
          Remaining Estimate - 2h
          32.
          [HP aCC 6.16] warning #20206-D: Out of bound access in 23.bitset.cpp Sub-task Open Unassigned

          100%

          Original Estimate - 2h Original Estimate - 2h
          Time Spent - 3h
          33.
          [HP aCC 6.16] warning #20206-D: Out of bound access in 25.random.shuffle.cpp Sub-task Resolved Travis Vitek

          100%

          Original Estimate - 2h Original Estimate - 2h
          Time Spent - 2.5h
          34.
          [HP aCC 6.16] warning #20200-D: potential null pointer dereference in collate.cpp Sub-task Closed Martin Sebor

          100%

          Original Estimate - 1h
          Time Spent - 1h
          35.
          [HP aCC 6.15] warning #20200-D: potential null pointer dereference in locale_combine.cpp Sub-task Closed Martin Sebor

          100%

          Original Estimate - 1h Original Estimate - 1h
          Time Spent - 2h

            Activity

              People

              • Assignee:
                sebor Martin Sebor
                Reporter:
                sebor Martin Sebor
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 74h Original Estimate - 74h
                  74h
                  Remaining:
                  Time Spent - 53h 1m Remaining Estimate - 30h
                  30h
                  Logged:
                  Time Spent - 53h 1m Remaining Estimate - 30h
                  53h 1m