This is the mail archive of the libc-help@sourceware.org mailing list for the glibc 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]

*** SPAM LEVEL 4.447 *** Re: Dynamic linker behaviour difference between Linux, Hurd and FreeBSD


Hi,

On 03.05.2013 17:17, Carlos O'Donell wrote:

> Can you produce a small self-contained test case that shows the
> expected versus observed behaviour?

Sure, attached.

I'm not entirely confident about expected behaviour -- the behaviour
observed on Hurd and BSD can be correct, and Linux the outlier.

When libdl calls back into pthread_mutex_lock when looking up the
pthread_mutex_lock function, the abort() is triggered.

I'd be interested if there is a way around the problem, ideally more
portable than doing ELF symbol lookups on hands and knees, or whether it
is indeed wrong to use pthread_mutex_lock from libdl while the program
is still being initialized.

   Simon

Attachment: bad.bz2
Description: Binary data

Attachment: good.bz2
Description: Binary data

Attachment: preload.tar.gz
Description: application/gzip

Attachment: signature.asc
Description: OpenPGP digital signature


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