On Fri, 13 Dec 2024 03:34:32 GMT, SendaoYan <s...@openjdk.org> wrote:

>> I saw this in another bug report too from the same submitter.
>> I don't know that I want to encourage this as a pattern, except in debug 
>> builds. better might be to just copy dlinfo.dli_fname into buf ..
>
> Hi @prrace,
>> I saw this in another bug report too from the same submitter.
> 
> I did create 3 clang17 compile waring issues, the compile warings occur in 
> different files, and maybe use should different solutions to solve the issue, 
> so I create the separate issues.

> better might be to just copy dlinfo.dli_fname into buf

"Something would be very, very broken if this were to fail.", So I think 
`perror` maybe better, it will print which file and the reason get realpath 
fail.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/22701#discussion_r1883212016

Reply via email to