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

Reply via email to