This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dyninst/14490] Enable stapdyn in multiarch environments


http://sourceware.org/bugzilla/show_bug.cgi?id=14490

--- Comment #6 from David Smith <dsmith at redhat dot com> ---
(In reply to Josh Stone from comment #5)
> (In reply to David Smith from comment #4)
> > OK, so here's my understanding of what you're thinking here.
> > 
> > - the shared memory segment created by the shared library needs to be bit
> > size agnostic, using arch neutral types and padding

I'm wondering if 32-bit and 64-bit processes can share a pthread mutexes. In a
64-bit exe, sizeof(pthread_mutex_t) is 40 bytes. In a 32-bit exe,
sizeof(pthread_mutex_t) is 24 bytes.

This can be clearly seen in /usr/include/bits/pthreadtypes.h (and confirmed by
a test program):

====
...
#ifdef __x86_64__
# if __WORDSIZE == 64
#  define __SIZEOF_PTHREAD_MUTEX_T 40
...
#else
# define __SIZEOF_PTHREAD_MUTEX_T 24
...
#endif
...
====

-- 
You are receiving this mail because:
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]