https://bugs.kde.org/show_bug.cgi?id=434849

pedro...@linux.ibm.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pedro...@linux.ibm.com

--- Comment #3 from pedro...@linux.ibm.com ---
(In reply to Mark Wielaard from comment #2)
> This is done deliberately, see coregrind/m_initimg/initimg-linux.c
> (setup_client_stack):
> 
>          case AT_SYSINFO_EHDR: { 
>             /* Trash this, because we don't reproduce it */ 
>             const NSegment* ehdrseg =
> VG_(am_find_nsegment)((Addr)auxv->u.a_ptr); 
>             vg_assert(ehdrseg); 
>             VG_(am_munmap_valgrind)(ehdrseg->start, ehdrseg->end -
> ehdrseg->start); 
>             auxv->a_type = AT_IGNORE; 
>             break; 
>          } 
> 

It seems that this case statement is #ifdefed out for ppc, and some other
arches, correct? So shouldn't AT_SYSINFO_EHDR, and the vDSO, be available for
these arches?

> Is there a reason you need AT_SYSINFO_EHDR?

It's used in glibc for ppc for the backtrace function that prints out return
addresses for all frames in a stack. The symbol from the vDSO for the signal
trampoline is used to handle the backtrace when there's a signal, which doesn't
work when it's run under Valgrind, due to the missing vDSO.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to