https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70394

            Bug ID: 70394
           Summary: HSA: kernel dispatch packet mechanism uses
                    uninitialized memory
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: hsa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: jamborm at gcc dot gnu.org
  Target Milestone: ---

As seen in PHSA runtime:

==7960== Thread 2:
==7960== Conditional jump or move depends on uninitialised value(s)
==7960==    at 0xCEA5714: __phsa_launch_wg_function (in
/home/visit0r/src/phsa-finalizer/build/rt/libphsa-rt.so)
==7960==    by 0xBA89C35: main__omp_fn_0 (in
/home/visit0r/temp/test_cases/phsa-temp/program-0.so)
==7960==    by 0x5EF1B32: CpuAgent::DoWork() (cpu_agent.cpp:155)
==7960==    by 0x5EF15ED: CpuKernelExecutorThread(CpuAgent*) (cpu_agent.cpp:68)
==7960==    by 0x5EFAE8A: void boost::_bi::list1<boost::_bi::value<CpuAgent*>
>::operator()<void (*)(CpuAgent*), boost::_bi::list0>(boost::_bi::type<void>,
void (*&)(CpuAgent*), boost::_bi::list0&, int) (bind.hpp:253)
==7960==    by 0x5EFAB24: boost::_bi::bind_t<void, void (*)(CpuAgent*),
boost::_bi::list1<boost::_bi::value<CpuAgent*> > >::operator()()
(bind_template.hpp:20)
==7960==    by 0x5EFA771: boost::detail::thread_data<boost::_bi::bind_t<void,
void (*)(CpuAgent*), boost::_bi::list1<boost::_bi::value<CpuAgent*> > >
>::run() (thread.hpp:117)
==7960==    by 0x6B11A49: ??? (in
/usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0)
==7960==    by 0x506D181: start_thread (pthread_create.c:312)
==7960==    by 0x537D47C: clone (clone.S:111)

Our current code does not properly set packet->header field.

Martin

Reply via email to