This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Is this a bug in libffi testsuite on solaris2.8?
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: Bradley Lucier <lucier at math dot purdue dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 30 Oct 2003 13:16:43 -0800
- Subject: Re: Is this a bug in libffi testsuite on solaris2.8?
- References: <E0F025DA-0B19-11D8-8802-003065B239F6@math.purdue.edu>
Bradley Lucier <lucier@math.purdue.edu> writes:
> My systems administrators told me they are getting the following in in
> /var/adm/messages on the sparc-sun-solaris2.8 box I use to bootstrap
> and regression-test mainline every night:
>
> Oct 30 04:58:37 banach.math.purdue.edu genunix: [ID 533030
> kern.notice] NOTICE: unwindtest.exe[7957] attempt to execute code on
> stack by uid <xxx>
>
> and I happen to be the lucky owner of uid <xxx>. The unwindtest.cc
> tests pass on libffi, but is this a bug in the testsuite, a bogus
> warning, or something else?
Looking at libffi/src/sparc/ffi.c (ffi_prep_closure, in particular)
leads me to believe that libffi intentionally places code on the stack
and executes it. This is unfortunate but may be unavoidable.
zw