[OpenAFS-devel] Re: segfault in process.c:savecontext() during lwp init -- how to debug?

Russ Allbery rra@stanford.edu
Mon, 29 Jun 2009 22:56:12 -0700


Adam Megacz <megacz@hcoop.net> writes:
> Russ Allbery <rra@stanford.edu> writes:

>> What architecture?

> Oh, sorry -- i386.

>> The Debian packages are built with USE_UCONTEXT on every platform
>> that supports it and have been for quite a while.  I suspect that you
>> have a different problem.

> Thanks, Russ.

Yeah, on i386 this definitely shouldn't be the problem.  (If it were,
you'd find aklog segfaulting as well.)  I suspect the LWP vs. pthread
problem.  In general, you want to use the pthread libraries for code
outside of AFS itself on Linux.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>