[OpenAFS] Linux PPC: aklog crashes with LWP

Russ Allbery rra@stanford.edu
Wed, 18 Apr 2007 11:20:09 -0700


Derrick J Brashear <shadow@dementia.org> writes:

> Offhand guess, switching to ucontext for linux ppc will fix this with a
> minimum of fuss

I'm giving Thomas the following patch and asking him to try it.  Will we
need a similar patch on all other Linux architectures?  I see that
currently only i386 and amd64 are using it.

--- src/config/param.ppc_linux26.h      (revision 2485)
+++ src/config/param.ppc_linux26.h      (local)
@@ -74,6 +74,11 @@
 #endif
 #endif /* KERNEL */
 
+#ifdef __GLIBC__
+#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
+#define USE_UCONTEXT
+#endif
+#endif
 #endif /* AFS_PARAM_H */
 
 #else /* !defined(UKERNEL) */

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