This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug dyninst/14490] Enable stapdyn in multiarch environments
- From: "dsmith at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Thu, 27 Jun 2013 21:10:22 +0000
- Subject: [Bug dyninst/14490] Enable stapdyn in multiarch environments
- Auto-submitted: auto-generated
- References: <bug-14490-6586 at http dot sourceware dot org/bugzilla/>
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.