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

    <tr>
        <th>Summary</th>
        <td>
            Out-of-bounds tracking in unknown regions during user library optimization reached 98.4%. Is this related to Address Space Layout Randomization (ASLR)?
        </td>
    </tr>

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

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

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

<pre>
    When processing profile data from user libraries using the perf2bolt tool, a warning _"PERF2BOLT: out of range traces involving unknown regions: 15765671 (98.4%) "_ occurred, causing the profile data to fail to take effect. When ASLR is disabled in the data collection scenario, this metric decreases. Is this coincidental? Has anyone else encountered a similar issue?

The specific process is as follows:
perf2bolt --pa -p=libxx.profdata" -o libxx.fdata -w libxx.yaml libxx.symbol"
BOLT-INFO: shared object or position-independent executable detected
BOLT-INFO: shared object or position-independent executable detected
PERF2BOLT: Starting data aggregation job for libxx.profdata
BOLT-INFO: Target architecture: aarch64
BOLT-INFO: BOLT version: e03a7c124d50fa9449a81fe21cc958a18919a4ea
BOLT-INFO: first alloc address is 0x0
BOLT-INFO: creating new program header table at address 0x200000, offset 0x200000
BOLT-INFO: enabling relocation mode
BOLT-INFO: enabling strict relocation mode for aggregation purposes
BOLT-INFO: pre-processing profile using perf data aggregator
PERF2BOLT: parsing pre-aggregated profile...
PERF2BOLT: read 2116 aggregated LBR entries
PERF2BOLT: processing branch events...
PERF2BOLT: traces mismatching disassembled function contents: 0 (0.0%)
PERF2BOLT: **out of range traces involving unknown regions: 15765671 (98.4%)**
PERF2BOLT: wrote 70 objects and 0 memory objects to libxx.fdata
BOLT-INFO: 0 out of 381 functions in the binary (0.0%) have non-empty execution profile
BOLT-WARNING: the output profile is empty or the --profile-density-cutoff-hot option is set too low. Please check your command.
BOLT-INFO: Functions with density >= 0.0 account for 99.00% total sample counts.
 - Result: SUCCESS (took 0 seconds)
 - Output size: 4.0K

Out-of-bounds tracking in unknown regions during user library optimization reached 98.4%. Is this related to Address Space Layout Randomization (ASLR)?
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzMVkuP2zoP_TXOhrAhy3kuskgf-b7iDjrFTC-6LGiJjtWRRUOSk0l__YXszCvt3XVxs4ktUaR4eHhoDMEcHNE2W7zLFh9mOMSW_faH4WMzq1mft99actB7VhSCcYf02BhLoDEiNJ47GAJ5sKb26A0FGEaz2BL05BtZs40QmW0m3wPCCb1L-98zKb98vNvLd7c3X7NqBzxE4AY8ugNB9KgogHFHtsdkPrgHxycHng6GXUgHysVquViuSsjkerMu5plcZHIDmZTfgZUavCedYip8daPXl48MDRqb_iM-EFDTkIoFjBnv7m_uwATQJmBtSYNxo4fxpGJrSUXDDoIih95wihRbE6Cj6I0CTcoTBgoFfArTjmLjlNHkItqs2sP_MQC6MzsCsoGAnOLBRfKkASGYzlj0YEIYKKv2mdhlYve1JQg9KdMY9VSVdE0M0LC1fErQZGL3An2e9wh5n1UfrKkfH4sEQUoikxJyhmlxXIH8dHk9Y2cvj-Hc1al2MhO7VKr80-f9bYI_tJguyvUPUhHYQ8_BJEhy4zT15FKiQI-khpgQBE2RVCT9Jx29YdB9RB9Tpcdk8HDwdMCxSD-4hoY9XCFwdZGv6A8UAb1qTYoweErLmBaW82vr9AJH8sGwS-8kKlypUs71QjS4mc83uC4bkqVSm8Uay_Wm3OCcfonaGB8ioLWsALX2l4KKR3FtmQg15ufolGp_8NhBS6jJw4QMxmcX4lGK9Eu85KYJFF-WrvySw9omv54sqwmxjjX9q11IDI_X5iPCr1HvB99zoHDtp_eU_0ZQpi5NxH1bQPbXhe7RX05S_mRF-slRURTXBzyhBlmWS3hlfvPuDsjFpFm_BHi5Xe3RqRboSC6G37i-KFVnQodRtSP9TMAQqBtloxncJBSKXUw-0iGRNEsUYpKsa5eZ3GVy94f0cHJ2HeLkORKsxKXrkg5pENB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