[OpenAFS-devel] lwp vs modern Debian Linux on SPARC systems

Nathaniel W Filardo nwf@cs.jhu.edu
Thu, 30 Oct 2014 20:57:19 -0400


--sFDE4zCwgxz4NHeP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi all,

lwp uses longjmp() in the case where it defaults to using process.c and
USE_UCONTEXT is not defined.  Debian builds using a "hardening" compiler
that ultimately replaces longjmp with one that does some stack validity
checks that are apparently incompatible with lwp.

However, on the machine where this is a problem, libc has support for
USE_UCONTEXT, and so params.sparc_linux24.h's #undef USE_CONTEXT is wrong
(though might be correct for actual linux24 systems).  Patching it out by
hand results in working executables, which is nice, but..

Is the correct thing to do here to allocate a sysid for sparc_linux26 and
create a params.sparc_linux26.h, or should I try to find a distinguishing
preprocessor symbol and just conditionalize the #undef USE_CONTEXT in the
existing param file?

Cheers,
--nwf;

--sFDE4zCwgxz4NHeP
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlRS3m8ACgkQTeQabvr9Tc8YOgCfSx8famCAnkPPlzm6DXfBHOpZ
gTUAmgPDX/uKIbtJXWNB2lvzqzXSzuE7
=/YHn
-----END PGP SIGNATURE-----

--sFDE4zCwgxz4NHeP--