<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/57536>57536</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[OpenMP][AMDGPU] no more works with rocprof
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
JonChesterfield
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ye-luo
</td>
</tr>
</table>
<pre>
rocprof an application using OpenMP offload to AMDGPU.
When exiting
```
double free or corruption (out)
Thread 1 "check_spo_batch" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007ffff6bb2859 in __GI_abort () at abort.c:79
#2 0x00007ffff6c1d26e in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff6d47298 "%s\n")
at ../sysdeps/posix/libc_fatal.c:155
#3 0x00007ffff6c252fc in malloc_printerr (str=str@entry=0x7ffff6d49670 "double free or corruption (out)") at malloc.c:5347
#4 0x00007ffff6c26fa0 in _int_free (av=0x7ffff6d7cb80 <main_arena>, p=0x555555829980, have_lock=<optimized out>) at malloc.c:4314
#5 0x00007fffe5a2c0be in ?? () from /opt/rocm-5.2.0/lib/librocprofiler64.so
#6 0x00007fffe68f88ad in RTLDeviceInfoTy::~RTLDeviceInfoTy() () from /soft/llvm/release-15.0.0-rc3/lib/libomptarget.rtl.amdgpu.so
#7 0x00007fffe68f9249 in __tgt_rtl_deinit_plugin () from /soft/llvm/release-15.0.0-rc3/lib/libomptarget.rtl.amdgpu.so
#8 0x00007ffff6dc9d03 in deinit() () from /soft/llvm/release-15.0.0-rc3/lib/libomptarget.so.15
#9 0x00007ffff7fe0f6b in _dl_fini () at dl-fini.c:138
#10 0x00007ffff6bd68a7 in __run_exit_handlers (status=0, listp=0x7ffff6d7c718 <__exit_funcs>,
run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:108
#11 0x00007ffff6bd6a60 in __GI_exit (status=<optimized out>) at exit.c:139
#12 0x00007ffff6bb408a in __libc_start_main (main=0x55555555e080 <main>, argc=1, argv=0x7fffffffbb58, init=<optimized out>,
fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffbb48) at ../csu/libc-start.c:342
#13 0x000055555555d55e in _start ()
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1Vllv4zYQ_jXyC2GBou4HP3jjTbBFt11sU_RRoETKZkOLAkllk_76zlCKrzZFC3QJgeIxnPnmJFsjXjfWdKM1PeED4eOoVce9MgOZnBr25OdRDp-_ENP32nBBvCHbz7uHL7_GEd1FdPvbQQ5EvigPtPNKVNDlC1NhplZL0lspibGkM9ZOY-AfscpMPmL1ci70jwcrQUwCu6w7yO6pcaNpWu67A6wQKzupnqUgTu0Hrskvnx62H74-RuyObFtjvRQLrqZ5-NRYrpxEOUAdpTvsMyoHb19hVoBkwj2J44jdu1cn5OhgNA3qZV54hp9Ww4TTwCnuonSbL3rhv_6PZ8lPhripO5Be6WANoUAhb-zrghqg7kWLwFr_tpJSQr67NiAmIYS-UGhlD61oW1blNVHDLJyjdVH4IifMA4uyPrFg1yy6RLBCziy0arvmKJ3j-6AD7zAGAPgyOGsizCwMfdofPaxgf96nLzN3kZWsrjBOIpa7KL8bwnBBQ6D91RyjccEeAU3PPddBhSTPTzqkNzqwnPUd6nDkWpuuGa0avLQ2OMJbdAT0fwevLkqK8P5NBgTkCHiWMvsmzcoTrOwWVtFzGkwLcJrAG636fImg7NoKEKR3R66Ghls58Cj9iHYdA1keWsXquqK4euDPsgHpT7ALpwyAPKo_INkQJB68RZilSXZCmF8ilDlnHW2D86P0Hr632OmtOcL4HrhjJJruuM5jFtPZK3O_FCRIEltksTMnGcWVjKLqqwqKBcj4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