From: Bruce Korb <bruce.korb@gmail.com>
To: Richard Henderson <rth@redhat.com>
Cc: libffi-discuss@sourceware.org
Subject: Re: pass by value and also snprintf()
Date: Mon, 27 Apr 2015 17:48:00 -0000 [thread overview]
Message-ID: <CAKRnqN+bNsRvSghdF5trX14SdhmZSh1jOR_eu0bhw5tS9vzpVQ@mail.gmail.com> (raw)
In-Reply-To: <CAKRnqNL8L77vGkzZrA8Tbcrv8Y3u2J-LCu=r5=bppOVgWSve4A@mail.gmail.com>
The GDB result (using snprintf this time):
(gdb)
37 if (ffi_prep_cif_var(&cif, FFI_DEFAULT_ABI, 3, 5,
(gdb)
41 ffi_call(&cif, fn, &ret_val, values);
(gdb)
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff787f562 in vsnprintf () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0 0x00007ffff787f562 in vsnprintf () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff7861532 in snprintf () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff7bd7adc in ffi_call_unix64 () from
/usr/lib/x86_64-linux-gnu/libffi.so.6
#3 0x00007ffff7bd740c in ffi_call () from /usr/lib/x86_64-linux-gnu/libffi.so.6
#4 0x0000000000400ac0 in main (argc=1, argv=0x7fffffffe488) at ffi-test.c:41
If I link against the -O0 -ggdb3 version of libffi, what can I do to
help diagnose?
next prev parent reply other threads:[~2015-04-27 17:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-27 16:59 Bruce Korb
2015-04-27 17:09 ` Richard Henderson
2015-04-27 17:37 ` Bruce Korb
2015-04-27 17:45 ` Bruce Korb
2015-04-27 17:48 ` Bruce Korb [this message]
2015-04-27 18:02 ` Richard Henderson
2015-04-27 18:54 ` Bruce Korb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKRnqN+bNsRvSghdF5trX14SdhmZSh1jOR_eu0bhw5tS9vzpVQ@mail.gmail.com \
--to=bruce.korb@gmail.com \
--cc=libffi-discuss@sourceware.org \
--cc=rth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).