<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/54111>54111</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            program crash when run clang static analyzer
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          hyxl1017
      </td>
    </tr>
</table>

<pre>
    Hi, I am using CSA framework to implement a checker which is used to check the circular reference of share_ptr, so in the implementation I want to get the return value of the constructor of share_ptr as the key of map and update its point relation afterwards. And finally check for circular dependencies in the checkDeadSymbols callback function.
Here is the line of code that causes the program to crash
Because in the subsequent code when SymbolReaper runs isDead() it will execute the function getKind() and then it will crash, so I wanted to print it in advance on line 120 to see if there would be any problem. The command line crash message shows that there is a problem with getKind()

Translated with www.DeepL.com/Translator (free version)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxVU8tunEAQ_Bq4tIIAs172wGHtVeQoOcW-R83QwMTDQOaxePP16RmMI0uIV3dXVVdBO3e35kkm5SN8A5zAW6kHeHw-Q29wonU2r-BmkNOiaCLtAEGMJF7JwDpKMYK0PENdaIoFcCOBkEZ4hQYM9WRIC4K5BzuioV-LM4HNMqiOzR_Y6OSsWcaKzMN4A7nYYMh5o-GKykecyDBr64wXbjafoAFtrL_SLbyfcAHUHfilQ8dUzsIyS4Y3pDY67B2ZFU1nMzhzZy81KnV7X6Zn-I9lOlpId7yNJLuLj20Xwu75NrWzsiB4usUw6rUIDFmSX5L8_MQ-BLPCkJI6LiLmjvgFOp5iE7fiYuaBrY-GGrTjNv5AsWWntb619MeHQCLIOpKGTcJPwoXTMV6zSBukJWWdlCdeHlapFNAbCe8o4uwig9ffpd5bg2UuQO4zm5Itti2gLfLFBDO5i3Vhd8WYtN4WLMo8tFhi1TE0NmCdveqgJWa4hU1bTj6DlxjoNAXaOBrpYCJrceBlx3m1m08bCtuI-zTrc-Nn-Ztj2_nFoLYcNcuNjeu6Zhei5UfGhEn5da9zzjzcGxZ7JWPZEgZKu-auO92dMHXSKWr2aDZ50XO2GYRC_mds-H4FL4bq9pdM6o1qRucWm9ydmYiPgQX49p1Yqet--cK4v0k4fpTWerJ8c6iKokjHRqCoRMHKRH0q6dhXRX1fVf3xiPeH9kQiVdiSsk1yeEjKUtMKEYLvk8MllU2Zl-Goi6I8HvKsrkReHzAvuworquukymlCqbKgI5vNkJomSmr9YLmopHX2fxGtlYMminSMj96Ns2nG25sq8uKYRu4mav8HCPKCNQ">