Professional Web Applications Themes

Building GNU libsigsegv-2.1: configure gets stuck - Mac Programming

I'm trying to compile a recomended library for CLISP, libsigsegv. ftp://ftp.gnu.org/pub/gnu/libsigsegv/ Configure locks up on this line: checking whether a fault handler according to MacOSX PowerPC works... I have Panther 10.3 installed with the dev tools (GCC 3.3), etc. No Fink and no Debian Ports yet. Ctrl-C breaks out of it. Activity Monitor indicates CPU is being chewed up, so it looks like something is just spinning its wheels, but I don't know how to see what. Any way around this? -- One Emacs to rule them all. One Emacs to find them, One Emacs to take commands and to ...

  1. #1

    Default Building GNU libsigsegv-2.1: configure gets stuck

    I'm trying to compile a recomended library for CLISP, libsigsegv.

    ftp://ftp.gnu.org/pub/gnu/libsigsegv/

    Configure locks up on this line:

    checking whether a fault handler according to MacOSX PowerPC works...

    I have Panther 10.3 installed with the dev tools (GCC 3.3), etc. No
    Fink and no Debian Ports yet. Ctrl-C breaks out of it. Activity
    Monitor indicates CPU is being chewed up, so it looks like something
    is just spinning its wheels, but I don't know how to see what.

    Any way around this?

    --
    One Emacs to rule them all. One Emacs to find them,
    One Emacs to take commands and to the keystrokes bind them,

    All other programming languages wish they were Lisp.
    David Guest

  2. #2

    Default Re: Building GNU libsigsegv-2.1: configure gets stuck

    In article <net>,
    David Steuber <net> wrote:
     

    Not without some serious rewriting of the libsigsegv code. The code is
    bogus. It's expecting a three-argument non-SA_SIGINFO variant of a
    signal handler to work, when Mac OS X doesn't support any such
    construct, and neither do many other systems. I don't know why they
    expect it to work.

    The code should change to use a proper three-argument SA_SIGINFO signal
    handler which receives a code, a struct siginfo *, and a ucontext_t *.

    It's hanging, by the way, because their signal handler is reading
    invalid memory (a nonexistent argument) in trying to find the faulting
    instruction and raising another signal, which then re-enters the signal
    handler and repeats the whole process.

    -Eric

    --
    Eric Albert edu
    http://rescomp.stanford.edu/~ejalbert/
    Eric Guest

  3. #3

    Default Re: Building GNU libsigsegv-2.1: configure gets stuck

    Eric Albert <edu> writes:
     

    That sounds like my old DOS programming days when you absolutely had
    to disable interrupts as the first instruction in a non-reentrant
    interrupt handler.

    OK, I guess this means I need to live without this library. Maybe
    someday I will learn about signals and such.

    Thanks.

    --
    One Emacs to rule them all. One Emacs to find them,
    One Emacs to take commands and to the keystrokes bind them,

    All other programming languages wish they were Lisp.
    David Guest

  4. #4

    Default Re: Building GNU libsigsegv-2.1: configure gets stuck

    In article <net>,
    David Steuber <net> wrote:
     
    >
    > That sounds like my old DOS programming days when you absolutely had
    > to disable interrupts as the first instruction in a non-reentrant
    > interrupt handler.[/ref]

    In general you don't have to do this in a SIGSEGV or SIGBUS handler if
    you're careful to avoid doing things which can crash. Of course, one of
    the things you can do to crash a signal handler is to set it up so it
    doesn't get called with the arguments it expects....

    -Eric

    --
    Eric Albert edu
    http://rescomp.stanford.edu/~ejalbert/
    Eric Guest

Similar Threads

  1. CFC Query - stuck, stuck, stuck
    By Howard Perlman in forum Coldfusion - Advanced Techniques
    Replies: 0
    Last Post: July 7th, 02:56 PM
  2. Replies: 0
    Last Post: October 10th, 05:14 PM
  3. Replies: 0
    Last Post: October 10th, 03:39 PM
  4. Replies: 0
    Last Post: October 10th, 03:39 PM
  5. Replies: 0
    Last Post: October 9th, 05:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139