public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Nathan Rajlich <nathan@tootallnate.net>
To: libffi-discuss <libffi-discuss@sourceware.org>
Subject: Bus Error while trying to run the ffi_closure example in the documentation...
Date: Fri, 06 Jan 2012 20:18:00 -0000	[thread overview]
Message-ID: <CAN5MXoc7CUHwbS-kU_yaKFcTD-Rw27iZPUvJB51cVOZPqSLkJg@mail.gmail.com> (raw)

Hey all,

So I'm trying to run the ffi_closure example from the libffi
documentation (the one that wraps fputs() ). When trying to run the
program, I get a "Bus Error: 10" and the program crashes.

This is on OS X 64-bit (Lion). Put through gdb, this is what I get:

∞ ~/node-ffi/deps (gyp) $ gdb --args ./out/Debug/test
GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul  1 10:50:06 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for
shared libraries ... done

(gdb) run
Starting program: /Users/nrajlich/node-ffi/deps/out/Debug/test
Reading symbols for shared libraries ++......................... done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x0000000100100a20
0x0000000100100a20 in ?? ()
(gdb) bt
#0  0x0000000100100a20 in ?? ()
#1  0x0000000100001424 in start ()


Thanks for looking, any thoughts would be appreciated! Cheers!

             reply	other threads:[~2012-01-06 20:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-06 20:18 Nathan Rajlich [this message]
2012-01-07 20:14 ` Nathan Rajlich
2012-01-07 20:29   ` Nathan Rajlich
2012-01-07 20:53     ` Timothy Wall
2012-01-08  6:28       ` Bobby Holley
2012-01-08  8:58         ` Nathan Rajlich
2012-01-09  2:37           ` Bobby Holley
2012-01-23 18:51             ` Anthony Green
2012-01-09  3:06 Anthony Green

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=CAN5MXoc7CUHwbS-kU_yaKFcTD-Rw27iZPUvJB51cVOZPqSLkJg@mail.gmail.com \
    --to=nathan@tootallnate.net \
    --cc=libffi-discuss@sourceware.org \
    /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).