[OpenAFS-devel] LWP and clang

Marc Dionne marc.c.dionne@gmail.com
Wed, 16 Oct 2013 13:53:40 -0400


On Wed, Oct 16, 2013 at 1:26 PM, Benjamin Kaduk <kaduk@mit.edu> wrote:
> Hi all,
>
> I've been seeing lots of runtime crashes when running clang-compiled
> LWP-using binaries, for several months now at least.  My experiences have

Anything interesting about where the crashes occur - in the lwp
functions themselves (savecontext, etc.) ?  and does it crash every
time it is switching lwps or are these sporadic?

One thing that might be worth trying is to see if switching to
setcontext/getcontext helps (see platforms that define USE_UCONTEXT),
if available, since it avoids the ugly manipulation of stack pointers
where maybe clang is doing something different..

Marc