This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libffi/31491] New: libffi: bug in example program
- From: "alexander dot belopolsky at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Apr 2007 01:59:49 -0000
- Subject: [Bug libffi/31491] New: libffi: bug in example program
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
In http://gcc.gnu.org/svn/gcc/trunk/libffi/README
/* Initialize the argument info vectors */
args[0] = &ffi_type_uint;
should be
/* Initialize the argument info vectors */
args[0] = &ffi_type_pointer;
The code happens to work stand-alone, but when included in a large
program on x86_64, you get a nasty segfault.
--
Summary: libffi: bug in example program
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libffi
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: alexander dot belopolsky at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31491