|
From: | Simon Richter |
Subject: | *** SPAM LEVEL 4.447 *** Re: Dynamic linker behaviour difference between Linux, Hurd and FreeBSD |
Date: | Fri, 03 May 2013 18:12:27 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 |
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
bad.bz2
Description: Binary data
good.bz2
Description: Binary data
preload.tar.gz
Description: application/gzip
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] | Current Thread | [Next in Thread] |