• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
getcontext() -> Bus error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getcontext() -> Bus error?


  • Subject: getcontext() -> Bus error?
  • From: Edd Dawson <email@hidden>
  • Date: Fri, 01 Feb 2008 00:52:18 +0000

Hello,

I sincerely hope this is the correct list for this question.

I'm running leopard 10.5.1 on a MacBook with the standard apple developer tools.



edd:guff developer$ gcc -dumpversion
4.0.1
edd:guff developer$ cat getcontext.c
#include <ucontext.h>

int main(void)
{
    ucontext_t ctx;
    getcontext(&ctx);
    return 0;
}
edd:guff developer$ gcc getcontext.c -o getcontext -W -Wall -ansi -pedantic
edd:guff developer$ ./getcontext
Bus error
edd:guff developer$



Why the bus error? What am I doing wrong?

Kind regards,

Edd

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: getcontext() -> Bus error?
      • From: Anton Rang <email@hidden>
  • Prev by Date: Re: Darwin 8.11 and 9.1 Source
  • Next by Date: Re: getcontext() -> Bus error?
  • Previous by thread: Re: screen clobbers PATH
  • Next by thread: Re: getcontext() -> Bus error?
  • Index(es):
    • Date
    • Thread